diff options
Diffstat (limited to 'languages/cpp/app_templates/kcmodule/module.h')
-rw-r--r-- | languages/cpp/app_templates/kcmodule/module.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/languages/cpp/app_templates/kcmodule/module.h b/languages/cpp/app_templates/kcmodule/module.h new file mode 100644 index 00000000..cebf0f48 --- /dev/null +++ b/languages/cpp/app_templates/kcmodule/module.h @@ -0,0 +1,32 @@ +%{H_TEMPLATE} + +#ifndef _%{APPNAMEUC}_H_ +#define _%{APPNAMEUC}_H_ + +#include <kcmodule.h> +#include <kaboutdata.h> + +class %{APPNAME}: public KCModule +{ + Q_OBJECT + +public: + %{APPNAME}( QWidget *parent=0, const char *name=0, const QStringList& = QStringList() ); + ~%{APPNAME}(); + + virtual void load(); + virtual void save(); + virtual void defaults(); + virtual int buttons(); + virtual QString quickHelp() const; + virtual const KAboutData *aboutData()const + { return myAboutData; }; + +public slots: + void configChanged(); + +private: + KAboutData *myAboutData; +}; + +#endif |