Diffstat (limited to 'noncore/net/opietooth/manager/rfcpopup.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/rfcpopup.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/rfcpopup.h b/noncore/net/opietooth/manager/rfcpopup.h new file mode 100644 index 0000000..c388f65 --- a/dev/null +++ b/noncore/net/opietooth/manager/rfcpopup.h | |||
@@ -0,0 +1,36 @@ | |||
1 | #ifndef RFCPOPUP_H | ||
2 | #define RFCPOPUP_H | ||
3 | |||
4 | #include <qpopupmenu.h> | ||
5 | #include <qaction.h> | ||
6 | |||
7 | namespace OpieTooth { | ||
8 | /** | ||
9 | * A simple reference implementation for | ||
10 | * the popup helper factory. | ||
11 | * This class derives from QPopupMenu and uses | ||
12 | * plugged QActions to do all the nasty in it's | ||
13 | * slots. After the work is done everything must | ||
14 | * be deleted. | ||
15 | */ | ||
16 | class RfcCommPopup : public QPopupMenu { | ||
17 | Q_OBJECT | ||
18 | public: | ||
19 | RfcCommPopup(); | ||
20 | ~RfcCommPopup(); | ||
21 | |||
22 | |||
23 | private: | ||
24 | QAction* m_con; | ||
25 | QAction* m_dis; | ||
26 | QAction* m_foo; | ||
27 | QAction* m_bar; | ||
28 | private slots: | ||
29 | void slotConnect(); | ||
30 | void slotDisconnect(); | ||
31 | void slotFoo(); | ||
32 | void slotBar(); | ||
33 | }; | ||
34 | }; | ||
35 | |||
36 | #endif | ||