blob: 74b91172104a1d822b5b3a34cddaa1de024c32c5 (
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
37
38
39
|
#ifndef RFCPOPUP_H
#define RFCPOPUP_H
#include <qpopupmenu.h>
#include <qaction.h>
#include "btdeviceitem.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( OpieTooth::BTDeviceItem* );
~RfcCommPopup();
private:
QAction* m_con;
QAction* m_dis;
QAction* m_bind;
QAction* m_bar;
OpieTooth::BTDeviceItem *m_item;
private slots:
void slotConnect();
void slotDisconnect();
void slotBind();
void slotBar();
};
};
#endif
|