parts/closer/closer_part.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Jens Dagerbo * 00003 * jens.dagerbo@swipnet.se * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef __KDEVPART_CLOSER_H__ 00013 #define __KDEVPART_CLOSER_H__ 00014 00015 00016 #include <kdevplugin.h> 00017 #include <kparts/part.h> 00018 #include <kurl.h> 00019 00020 00021 class CloserPart : public KDevPlugin 00022 { 00023 Q_OBJECT 00024 00025 public: 00026 CloserPart(QObject *parent, const char *name, const QStringList &); 00027 ~CloserPart(); 00028 00029 public slots: 00030 void openDialog(); 00031 00032 private: 00033 KURL::List openFiles(); 00034 void closeFiles( KURL::List const & fileList ); 00035 KParts::ReadOnlyPart * partForURL( KURL const & url ); 00036 }; 00037 00038 00039 #endif