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