summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-02-10 21:17:33 (UTC)
committer harlekin <harlekin>2003-02-10 21:17:33 (UTC)
commitde272b8c47c3960a3fe574317fe2e6fb0c32e4af (patch) (unidiff)
tree43903d05e5e517d31f4d64d541af66ea3e609de9
parent2bc5aaa5c480c2b8924593f1010c7efd3bd50693 (diff)
downloadopie-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
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
@@ -43,41 +43,47 @@ public:
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