project
projectkcmodule.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef PROJECTKCMODULE_H
00022 #define PROJECTKCMODULE_H
00023
00024 #include <kcmodule.h>
00025 #include <QtCore/QVariant>
00026
00027 class KComponentData;
00028 class QWidget;
00029 class QStringList;
00030
00031 template <typename T> class ProjectKCModule : public KCModule
00032 {
00033 public:
00034 ProjectKCModule( const KComponentData& componentData, QWidget* parent, const QVariantList& args = QVariantList() )
00035 : KCModule( componentData, parent, args )
00036 {
00037 Q_ASSERT( args.count() > 3 );
00038 T::instance( args.at(0).toString() );
00039 T::self()->setDeveloperTempFile( args.at(0).toString() );
00040 T::self()->setProjectTempFile( args.at(1).toString() );
00041 T::self()->setProjectFileUrl( args.at(2).toString() );
00042 T::self()->setDeveloperFileUrl( args.at(3).toString() );
00043 }
00044 virtual ~ProjectKCModule() {}
00045 };
00046
00047 #endif
00048