author | zecke <zecke> | 2004-02-05 15:51:34 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-05 15:51:34 (UTC) |
commit | 58bd1952241a733e90dfaabc7515af03c969b214 (patch) (unidiff) | |
tree | c4ac00dfa71cc3d4eada7b23cd857f25ccbe9134 /examples/menuapplet/example.h | |
parent | cc0045d01be5368365059567764efc8f94c4bc0c (diff) | |
download | opie-58bd1952241a733e90dfaabc7515af03c969b214.zip opie-58bd1952241a733e90dfaabc7515af03c969b214.tar.gz opie-58bd1952241a733e90dfaabc7515af03c969b214.tar.bz2 |
Initial revision
Diffstat (limited to 'examples/menuapplet/example.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | examples/menuapplet/example.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/examples/menuapplet/example.h b/examples/menuapplet/example.h new file mode 100644 index 0000000..ec507dd --- a/dev/null +++ b/examples/menuapplet/example.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef OPIE_EXAMPLE_MENU_APPLET_H | ||
2 | #define OPIE_EXAMPLE_MENU_APPLET_H | ||
3 | |||
4 | #include <qpe/menuappletinterface.h> | ||
5 | #include <qobject.h> | ||
6 | |||
7 | #include <qobject.h> | ||
8 | |||
9 | class MenuAppletExample : public QObject, public MenuAppletInterface | ||
10 | { | ||
11 | |||
12 | Q_OBJECT | ||
13 | |||
14 | public: | ||
15 | MenuAppletExample ( ); | ||
16 | virtual ~MenuAppletExample ( ); | ||
17 | |||
18 | QRESULT queryInterface( const QUuid&, QUnknownInterface** ); | ||
19 | Q_REFCOUNT | ||
20 | |||
21 | virtual int position() const; | ||
22 | |||
23 | virtual QString name ( ) const; | ||
24 | virtual QIconSet icon ( ) const; | ||
25 | virtual QString text ( ) const; | ||
26 | /* virtual QString tr( const char* ) const; | ||
27 | virtual QString tr( const char*, const char* ) const; | ||
28 | */ | ||
29 | virtual QPopupMenu *popup ( QWidget *parent ) const; | ||
30 | virtual void activated ( ); | ||
31 | }; | ||
32 | |||
33 | #endif | ||