summaryrefslogtreecommitdiff
path: root/libopie/todayplugininterface.h
Unidiff
Diffstat (limited to 'libopie/todayplugininterface.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/todayplugininterface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libopie/todayplugininterface.h b/libopie/todayplugininterface.h
index becb79c..b37a3ab 100644
--- a/libopie/todayplugininterface.h
+++ b/libopie/todayplugininterface.h
@@ -1,79 +1,85 @@
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
8class QString; 8class QString;
9class QWidget; 9class 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 */
20class TodayPluginObject { 20class TodayPluginObject {
21 21
22 Q_OBJECT 22 Q_OBJECT
23 23
24public: 24public:
25 25
26 virtual ~TodayPluginObject() {}; 26 virtual ~TodayPluginObject() {};
27 27
28 /** 28 /**
29 * The name if the plugin 29 * The name if the plugin
30 */ 30 */
31 virtual QString pluginName() const = 0; 31 virtual QString pluginName() const = 0;
32 32
33 /** 33 /**
34 * Version numbering 34 * Version numbering
35 */ 35 */
36 virtual double versionNumber() const = 0; 36 virtual double versionNumber() const = 0;
37 37
38 38
39 virtual QString pixmapNameWidget() const = 0; 39 virtual QString pixmapNameWidget() const = 0;
40 40
41 /** widget for the today view 41 /** widget for the today view
42 * It _needs_ a parent here. 42 * It _needs_ a parent here.
43 */ 43 */
44 virtual QWidget* widget( QWidget * ) = 0; 44 virtual QWidget* widget( QWidget * ) = 0;
45 45
46 /** 46 /**
47 * Pixmap used in the config widget 47 * Pixmap used in the config widget
48 */ 48 */
49 virtual QString pixmapNameConfig() const = 0; 49 virtual QString pixmapNameConfig() const = 0;
50 50
51 /** 51 /**
52 * Config plugin widget - optional 52 * Config plugin widget - optional
53 * If the plugin has a config widget, it _needs_ a parent here. 53 * If the plugin has a config widget, it _needs_ a parent here.
54 */ 54 */
55 virtual TodayConfigWidget* configWidget( QWidget * ) = 0; 55 virtual TodayConfigWidget* configWidget( QWidget * ) = 0;
56 56
57 /** 57 /**
58 * The application that should be assigned to the button (pixmap) 58 * The application that should be assigned to the button (pixmap)
59 */ 59 */
60 virtual QString appName() const = 0; 60 virtual QString appName() const = 0;
61 61
62
63 /**
64 * If the plugin should take part in the periodic refresh
65 */
66 virtual bool excludeFromRefresh() const = 0;
67
62 /** 68 /**
63 * minimum height the plugin at least should have 69 * minimum height the plugin at least should have
64 */ 70 */
65 // virtual int minHeight() const = 0; 71 // virtual int minHeight() const = 0;
66 72
67 /** 73 /**
68 * maximum height that should be used before starting scrolling 74 * maximum height that should be used before starting scrolling
69 */ 75 */
70 // virtual int maxHeight() const = 0; 76 // virtual int maxHeight() const = 0;
71 77
72}; 78};
73 79
74 80
75struct TodayPluginInterface : public QUnknownInterface { 81struct TodayPluginInterface : public QUnknownInterface {
76 virtual TodayPluginObject *guiPart() = 0; 82 virtual TodayPluginObject *guiPart() = 0;
77}; 83};
78 84
79#endif 85#endif