Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h index c8ceed2..7b03f82 100644 --- a/noncore/net/opietooth/manager/bluebase.h +++ b/noncore/net/opietooth/manager/bluebase.h | |||
@@ -4,12 +4,13 @@ | |||
4 | 4 | ||
5 | #include <qvariant.h> | 5 | #include <qvariant.h> |
6 | #include <qwidget.h> | 6 | #include <qwidget.h> |
7 | #include <qscrollview.h> | 7 | #include <qscrollview.h> |
8 | #include <qsplitter.h> | 8 | #include <qsplitter.h> |
9 | #include <qlist.h> | 9 | #include <qlist.h> |
10 | #include <qpixmap.h> | ||
10 | 11 | ||
11 | #include "bluetoothbase.h" | 12 | #include "bluetoothbase.h" |
12 | 13 | ||
13 | #include <remotedevice.h> | 14 | #include <remotedevice.h> |
14 | 15 | ||
15 | class QVBox; | 16 | class QVBox; |
@@ -18,12 +19,13 @@ class QGridLayout; | |||
18 | class QFrame; | 19 | class QFrame; |
19 | class QLabel; | 20 | class QLabel; |
20 | class QPushButton; | 21 | class QPushButton; |
21 | class QTabWidget; | 22 | class QTabWidget; |
22 | class QCheckBox; | 23 | class QCheckBox; |
23 | 24 | ||
25 | |||
24 | namespace OpieTooth { | 26 | namespace OpieTooth { |
25 | 27 | ||
26 | 28 | ||
27 | 29 | ||
28 | class BlueBase : public BluetoothBase { | 30 | class BlueBase : public BluetoothBase { |
29 | Q_OBJECT | 31 | Q_OBJECT |
@@ -38,25 +40,35 @@ namespace OpieTooth { | |||
38 | private slots: | 40 | private slots: |
39 | void startScan(); | 41 | void startScan(); |
40 | 42 | ||
41 | private: | 43 | private: |
42 | void readConfig(); | 44 | void readConfig(); |
43 | void writeConfig(); | 45 | void writeConfig(); |
46 | void readSavedDevices(); | ||
47 | void writeSavedDevices(); | ||
44 | QString getStatus(); | 48 | QString getStatus(); |
45 | void initGui(); | 49 | void initGui(); |
50 | void setInfo(); | ||
46 | 51 | ||
52 | bool deviceActive( RemoteDevice *device ); | ||
47 | 53 | ||
48 | QString deviceName; | 54 | QString deviceName; |
49 | QString defaultPasskey; | 55 | QString defaultPasskey; |
50 | int useEncryption; | 56 | int useEncryption; |
51 | int enableAuthentification; | 57 | int enableAuthentification; |
52 | int enablePagescan; | 58 | int enablePagescan; |
53 | int enableInquiryscan; | 59 | int enableInquiryscan; |
54 | 60 | ||
61 | QPixmap offPix; | ||
62 | QPixmap onPix; | ||
63 | |||
55 | private slots: | 64 | private slots: |
56 | void addSearchedDevices( QList<RemoteDevice> &newDevices ); | 65 | void addSearchedDevices( QList<RemoteDevice> &newDevices ); |
66 | void addServicesToDevice( QListViewItem * item ); | ||
67 | void startServiceActionClicked( QListViewItem * item ); | ||
68 | void startServiceActionHold( QListViewItem * item, const QPoint & point, int column); | ||
57 | void applyConfigChanges(); | 69 | void applyConfigChanges(); |
58 | 70 | ||
59 | }; | 71 | }; |
60 | 72 | ||
61 | } | 73 | } |
62 | 74 | ||