author | harlekin <harlekin> | 2003-02-10 21:17:33 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-02-10 21:17:33 (UTC) |
commit | de272b8c47c3960a3fe574317fe2e6fb0c32e4af (patch) (unidiff) | |
tree | 43903d05e5e517d31f4d64d541af66ea3e609de9 | |
parent | 2bc5aaa5c480c2b8924593f1010c7efd3bd50693 (diff) | |
download | opie-de272b8c47c3960a3fe574317fe2e6fb0c32e4af.zip opie-de272b8c47c3960a3fe574317fe2e6fb0c32e4af.tar.gz opie-de272b8c47c3960a3fe574317fe2e6fb0c32e4af.tar.bz2 |
added a virtual refresh to the interface, in future each plugin decides how much happens during refresh call
-rw-r--r-- | libopie/todayplugininterface.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie/todayplugininterface.h b/libopie/todayplugininterface.h index 5bf5564..6ee2a06 100644 --- a/libopie/todayplugininterface.h +++ b/libopie/todayplugininterface.h | |||
@@ -1,83 +1,89 @@ | |||
1 | 1 | ||
2 | #ifndef TODAY_PLUGIN_INTERFACE | 2 | #ifndef TODAY_PLUGIN_INTERFACE |
3 | #define TODAY_PLUGIN_INTERFACE | 3 | #define TODAY_PLUGIN_INTERFACE |
4 | 4 | ||
5 | #include <qpe/qcom.h> | 5 | #include <qpe/qcom.h> |
6 | #include "todayconfigwidget.h" | 6 | #include "todayconfigwidget.h" |
7 | 7 | ||
8 | class QString; | 8 | class QString; |
9 | class QWidget; | 9 | class QWidget; |
10 | 10 | ||
11 | #ifndef IID_TodayPluginInterface | 11 | #ifndef IID_TodayPluginInterface |
12 | #define IID_TodayPluginInterface QUuid( 0x70481804, 0x2b50, 0x4fba, 0x80, 0xbb, 0x0b, 0xf8, 0xdc, 0x72, 0x04, 0x14) | 12 | #define IID_TodayPluginInterface QUuid( 0x70481804, 0x2b50, 0x4fba, 0x80, 0xbb, 0x0b, 0xf8, 0xdc, 0x72, 0x04, 0x14) |
13 | #endif | 13 | #endif |
14 | 14 | ||
15 | /** | 15 | /** |
16 | * | 16 | * |
17 | * | 17 | * |
18 | * | 18 | * |
19 | */ | 19 | */ |
20 | class TodayPluginObject { | 20 | class TodayPluginObject { |
21 | 21 | ||
22 | public: | 22 | public: |
23 | 23 | ||
24 | virtual ~TodayPluginObject() {}; | 24 | virtual ~TodayPluginObject() {}; |
25 | 25 | ||
26 | /** | 26 | /** |
27 | * The name if the plugin | 27 | * The name if the plugin |
28 | */ | 28 | */ |
29 | virtual QString pluginName() const = 0; | 29 | virtual QString pluginName() const = 0; |
30 | 30 | ||
31 | /** | 31 | /** |
32 | * Version numbering | 32 | * Version numbering |
33 | */ | 33 | */ |
34 | virtual double versionNumber() const = 0; | 34 | virtual double versionNumber() const = 0; |
35 | 35 | ||
36 | 36 | ||
37 | virtual QString pixmapNameWidget() const = 0; | 37 | virtual QString pixmapNameWidget() const = 0; |
38 | 38 | ||
39 | /** widget for the today view | 39 | /** widget for the today view |
40 | * It _needs_ a parent here. | 40 | * It _needs_ a parent here. |
41 | */ | 41 | */ |
42 | virtual QWidget* widget( QWidget * ) = 0; | 42 | virtual QWidget* widget( QWidget * ) = 0; |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * Pixmap used in the config widget | 45 | * Pixmap used in the config widget |
46 | */ | 46 | */ |
47 | virtual QString pixmapNameConfig() const = 0; | 47 | virtual QString pixmapNameConfig() const = 0; |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * Config plugin widget - optional | 50 | * Config plugin widget - optional |
51 | * If the plugin has a config widget, it _needs_ a parent here. | 51 | * If the plugin has a config widget, it _needs_ a parent here. |
52 | */ | 52 | */ |
53 | virtual TodayConfigWidget* configWidget( QWidget * ) = 0; | 53 | virtual TodayConfigWidget* configWidget( QWidget * ) = 0; |
54 | 54 | ||
55 | /** | 55 | /** |
56 | * The application that should be assigned to the button (pixmap) | 56 | * The application that should be assigned to the button (pixmap) |
57 | */ | 57 | */ |
58 | virtual QString appName() const = 0; | 58 | virtual QString appName() const = 0; |
59 | 59 | ||
60 | 60 | ||
61 | /** | 61 | /** |
62 | * If the plugin should take part in the periodic refresh | 62 | * If the plugin should take part in the periodic refresh |
63 | */ | 63 | */ |
64 | virtual bool excludeFromRefresh() const = 0; | 64 | virtual bool excludeFromRefresh() const = 0; |
65 | 65 | ||
66 | /** | 66 | /** |
67 | * Refresh that plugins view. For updating the plugins | ||
68 | * | ||
69 | */ | ||
70 | virtual void refresh() {}; | ||
71 | |||
72 | /** | ||
67 | * minimum height the plugin at least should have | 73 | * minimum height the plugin at least should have |
68 | */ | 74 | */ |
69 | // virtual int minHeight() const = 0; | 75 | // virtual int minHeight() const = 0; |
70 | 76 | ||
71 | /** | 77 | /** |
72 | * maximum height that should be used before starting scrolling | 78 | * maximum height that should be used before starting scrolling |
73 | */ | 79 | */ |
74 | // virtual int maxHeight() const = 0; | 80 | // virtual int maxHeight() const = 0; |
75 | 81 | ||
76 | }; | 82 | }; |
77 | 83 | ||
78 | 84 | ||
79 | struct TodayPluginInterface : public QUnknownInterface { | 85 | struct TodayPluginInterface : public QUnknownInterface { |
80 | virtual TodayPluginObject *guiPart() = 0; | 86 | virtual TodayPluginObject *guiPart() = 0; |
81 | }; | 87 | }; |
82 | 88 | ||
83 | #endif | 89 | #endif |