blob: a67e41e01fdd7bc0068915cc3bb79cf221e96eb5 (
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
40
|
#ifndef RFCPOPUP_H
#define RFCPOPUP_H
#include <qpopupmenu.h>
#include <qaction.h>
#include <services.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(const OpieTooth::Services&, OpieTooth::BTDeviceItem*);
~RfcCommPopup();
private:
QAction* m_con;
QAction* m_dis;
QAction* m_bind;
QAction* m_bar;
OpieTooth::BTDeviceItem *m_item;
Services m_service;
int procId; //Connection process number
private slots:
void slotConnect();
void slotDisconnect();
void slotBind();
void slotBar();
};
};
#endif
|