Diffstat (limited to 'examples/todayplugin/exampleplugin.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/todayplugin/exampleplugin.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/todayplugin/exampleplugin.h b/examples/todayplugin/exampleplugin.h index 94f5b37..90d3485 100644 --- a/examples/todayplugin/exampleplugin.h +++ b/examples/todayplugin/exampleplugin.h | |||
@@ -1,42 +1,38 @@ | |||
1 | /* | 1 | /* |
2 | * exampleplugin.h | 2 | * exampleplugin.h |
3 | * | 3 | * |
4 | * email : harlekin@handhelds.org | 4 | * email : harlekin@handhelds.org |
5 | * | 5 | * |
6 | */ | 6 | */ |
7 | 7 | ||
8 | 8 | ||
9 | #ifndef EXAMPLE_PLUGIN_H | 9 | #ifndef EXAMPLE_PLUGIN_H |
10 | #define EXAMPLE_PLUGIN_H | 10 | #define EXAMPLE_PLUGIN_H |
11 | 11 | ||
12 | #include <qwidget.h> | ||
13 | #include <qguardedptr.h> | ||
14 | |||
15 | #include <opie2/todayplugininterface.h> | 12 | #include <opie2/todayplugininterface.h> |
16 | #include <opie2/todayconfigwidget.h> | 13 | #include <opie2/todayconfigwidget.h> |
17 | 14 | ||
18 | #include "examplepluginwidget.h" | 15 | #include "examplepluginwidget.h" |
19 | 16 | ||
20 | // implementation of the today plugin interface | 17 | // implementation of the today plugin interface |
21 | class ExamplePlugin : public TodayPluginObject { | 18 | class ExamplePlugin : public TodayPluginObject { |
22 | 19 | ||
23 | public: | 20 | public: |
24 | ExamplePlugin(); | 21 | ExamplePlugin(); |
25 | ~ExamplePlugin(); | 22 | ~ExamplePlugin(); |
26 | 23 | ||
27 | QString pluginName() const; | 24 | QString pluginName() const; |
28 | double versionNumber() const; | 25 | double versionNumber() const; |
29 | QString pixmapNameWidget() const; | 26 | QString pixmapNameWidget() const; |
30 | QWidget* widget(QWidget *); | 27 | QWidget* widget(QWidget *); |
31 | QString pixmapNameConfig() const; | 28 | QString pixmapNameConfig() const; |
32 | TodayConfigWidget* configWidget(QWidget *); | 29 | TodayConfigWidget* configWidget(QWidget *); |
33 | QString appName() const; | 30 | QString appName() const; |
34 | bool excludeFromRefresh() const; | 31 | bool excludeFromRefresh() const; |
35 | void refresh(); | 32 | void refresh(); |
36 | void reinitialize(); | 33 | void reinitialize(); |
37 | 34 | private: | |
38 | private: | 35 | ExamplePluginWidget *m_widget; |
39 | QGuardedPtr<ExamplePluginWidget> m_widget; | ||
40 | }; | 36 | }; |
41 | 37 | ||
42 | #endif | 38 | #endif |