summaryrefslogtreecommitdiff
path: root/examples/menuapplet/example.h
authorzecke <zecke>2004-02-05 15:51:34 (UTC)
committer zecke <zecke>2004-02-05 15:51:34 (UTC)
commit58bd1952241a733e90dfaabc7515af03c969b214 (patch) (side-by-side diff)
treec4ac00dfa71cc3d4eada7b23cd857f25ccbe9134 /examples/menuapplet/example.h
parentcc0045d01be5368365059567764efc8f94c4bc0c (diff)
downloadopie-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.h33
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 @@
+#ifndef OPIE_EXAMPLE_MENU_APPLET_H
+#define OPIE_EXAMPLE_MENU_APPLET_H
+
+#include <qpe/menuappletinterface.h>
+#include <qobject.h>
+
+#include <qobject.h>
+
+class MenuAppletExample : public QObject, public MenuAppletInterface
+{
+
+ Q_OBJECT
+
+public:
+ MenuAppletExample ( );
+ virtual ~MenuAppletExample ( );
+
+ QRESULT queryInterface( const QUuid&, QUnknownInterface** );
+ Q_REFCOUNT
+
+ virtual int position() const;
+
+ virtual QString name ( ) const;
+ virtual QIconSet icon ( ) const;
+ virtual QString text ( ) const;
+ /* virtual QString tr( const char* ) const;
+ virtual QString tr( const char*, const char* ) const;
+ */
+ virtual QPopupMenu *popup ( QWidget *parent ) const;
+ virtual void activated ( );
+};
+
+#endif