Diffstat (limited to 'examples/todayplugin/exampleplugin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/todayplugin/exampleplugin.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/examples/todayplugin/exampleplugin.h b/examples/todayplugin/exampleplugin.h new file mode 100644 index 0000000..0d9f11d --- a/dev/null +++ b/examples/todayplugin/exampleplugin.h | |||
@@ -0,0 +1,51 @@ | |||
1 | /* | ||
2 | * exampleplugin.h | ||
3 | * | ||
4 | * copyright : (c) 2004 by Maximilian Reiß | ||
5 | * email : harlekin@handhelds.org | ||
6 | * | ||
7 | */ | ||
8 | /*************************************************************************** | ||
9 | * * | ||
10 | * This program is free software; you can redistribute it and/or modify * | ||
11 | * it under the terms of the GNU General Public License as published by * | ||
12 | * the Free Software Foundation; either version 2 of the License, or * | ||
13 | * (at your option) any later version. * | ||
14 | * * | ||
15 | ***************************************************************************/ | ||
16 | |||
17 | |||
18 | #ifndef EXAMPLE_PLUGIN_H | ||
19 | #define EXAMPLE_PLUGIN_H | ||
20 | |||
21 | #include <qwidget.h> | ||
22 | #include <qguardedptr.h> | ||
23 | |||
24 | #include <opie/todayplugininterface.h> | ||
25 | #include <opie/todayconfigwidget.h> | ||
26 | |||
27 | #include "examplepluginwidget.h" | ||
28 | |||
29 | // implementation of the today plugin interface | ||
30 | class ExamplePlugin : public TodayPluginObject { | ||
31 | |||
32 | public: | ||
33 | ExamplePlugin(); | ||
34 | ~ExamplePlugin(); | ||
35 | |||
36 | QString pluginName() const; | ||
37 | double versionNumber() const; | ||
38 | QString pixmapNameWidget() const; | ||
39 | QWidget* widget(QWidget *); | ||
40 | QString pixmapNameConfig() const; | ||
41 | TodayConfigWidget* configWidget(QWidget *); | ||
42 | QString appName() const; | ||
43 | bool excludeFromRefresh() const; | ||
44 | void refresh(); | ||
45 | void reinitialize(); | ||
46 | |||
47 | private: | ||
48 | QGuardedPtr<ExamplePluginWidget> m_widget; | ||
49 | }; | ||
50 | |||
51 | #endif | ||