summaryrefslogtreecommitdiff
Unidiff
Diffstat (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 5bf5564..6ee2a06 100644
--- a/libopie/todayplugininterface.h
+++ b/libopie/todayplugininterface.h
@@ -19,65 +19,71 @@ class QWidget;
19 */ 19 */
20class TodayPluginObject { 20class TodayPluginObject {
21 21
22public: 22public:
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
79struct TodayPluginInterface : public QUnknownInterface { 85struct TodayPluginInterface : public QUnknownInterface {
80 virtual TodayPluginObject *guiPart() = 0; 86 virtual TodayPluginObject *guiPart() = 0;
81}; 87};
82 88
83#endif 89#endif