author | harlekin <harlekin> | 2002-09-15 21:03:47 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-15 21:03:47 (UTC) |
commit | 251fd5b1687994c30e8bea1091e893468086223f (patch) (unidiff) | |
tree | 3df0ba1775f2c0e7862e9995324d4869ef4b936f /core/pim/today/todayplugininterface.h | |
parent | f79126f5ba0b1d1520e5fb07716ffe9e2479aedf (diff) | |
download | opie-251fd5b1687994c30e8bea1091e893468086223f.zip opie-251fd5b1687994c30e8bea1091e893468086223f.tar.gz opie-251fd5b1687994c30e8bea1091e893468086223f.tar.bz2 |
new today version, now plugin bases
Diffstat (limited to 'core/pim/today/todayplugininterface.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/today/todayplugininterface.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/core/pim/today/todayplugininterface.h b/core/pim/today/todayplugininterface.h new file mode 100644 index 0000000..01e7d58 --- a/dev/null +++ b/core/pim/today/todayplugininterface.h | |||
@@ -0,0 +1,82 @@ | |||
1 | |||
2 | #ifndef TODAY_PLUGIN_INTERFACE | ||
3 | #define TODAY_PLUGIN_INTERFACE | ||
4 | |||
5 | #include <qpe/qcom.h> | ||
6 | #include "configwidget.h" | ||
7 | |||
8 | class QString; | ||
9 | class QWidget; | ||
10 | |||
11 | #ifndef IID_TodayPluginInterface | ||
12 | #define IID_TodayPluginInterface QUuid( 0x70481804, 0x2b50, 0x4fba, 0x80, 0xbb, 0x0b, 0xf8, 0xdc, 0x72, 0x04, 0x14) | ||
13 | #endif | ||
14 | |||
15 | /** | ||
16 | * | ||
17 | * | ||
18 | * | ||
19 | */ | ||
20 | class TodayPluginObject { | ||
21 | |||
22 | Q_OBJECT | ||
23 | |||
24 | public: | ||
25 | |||
26 | virtual ~TodayPluginObject() {}; | ||
27 | |||
28 | /** | ||
29 | * The name if the plugin | ||
30 | */ | ||
31 | virtual QString pluginName() const = 0; | ||
32 | |||
33 | /** | ||
34 | * Version numbering | ||
35 | */ | ||
36 | virtual double versionNumber() const = 0; | ||
37 | |||
38 | /** | ||
39 | * the path and name of the identifer icon that should be shown | ||
40 | * in "Resource" notation, that means only subdir/picname form $QPEDIR/pics | ||
41 | */ | ||
42 | virtual QString pixmapNameWidget() const = 0; | ||
43 | |||
44 | /** widget for the today view | ||
45 | * It _needs_ a parent here. | ||
46 | */ | ||
47 | virtual QWidget* widget( QWidget * ) = 0; | ||
48 | |||
49 | /** | ||
50 | * Pixmap used in the config widget | ||
51 | */ | ||
52 | virtual QString pixmapNameConfig() const = 0; | ||
53 | |||
54 | /** | ||
55 | * Config plugin widget - optional | ||
56 | * If the plugin has a config widget, it _needs_ a parent here. | ||
57 | */ | ||
58 | virtual ConfigWidget* configWidget( QWidget * ) = 0; | ||
59 | |||
60 | /** | ||
61 | * The application that should be assigned to the button (pixmap) | ||
62 | */ | ||
63 | virtual QString appName() const = 0; | ||
64 | |||
65 | /** | ||
66 | * minimum height the plugin at least should have | ||
67 | */ | ||
68 | virtual int minHeight() const = 0; | ||
69 | |||
70 | /** | ||
71 | * maximum height that should be used before starting scrolling | ||
72 | */ | ||
73 | virtual int maxHeight() const = 0; | ||
74 | |||
75 | }; | ||
76 | |||
77 | |||
78 | struct TodayPluginInterface : public QUnknownInterface { | ||
79 | virtual TodayPluginObject *guiPart() = 0; | ||
80 | }; | ||
81 | |||
82 | #endif | ||