summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/rfcpopup.h
blob: c388f65a784fe4e7d6d8ecdc4f47abfea86e6c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef RFCPOPUP_H
#define RFCPOPUP_H

#include <qpopupmenu.h>
#include <qaction.h>

namespace OpieTooth {
    /**
     * A simple reference implementation for
     * the popup helper factory.
     * This class derives from QPopupMenu and uses
     * plugged QActions to do all the nasty in it's
     * slots. After the work is done everything must
     * be deleted.
     */
    class RfcCommPopup : public QPopupMenu {
        Q_OBJECT
    public:
        RfcCommPopup();
        ~RfcCommPopup();


    private:
        QAction* m_con;
        QAction* m_dis;
        QAction* m_foo;
        QAction* m_bar;
    private slots:
        void slotConnect();
        void slotDisconnect();
        void slotFoo();
        void slotBar();
    };
};

#endif