summaryrefslogtreecommitdiff
path: root/examples/menuapplet/example.h
Side-by-side diff
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