Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h index dee721d..481f0c9 100644 --- a/noncore/net/opietooth/manager/bluebase.h +++ b/noncore/net/opietooth/manager/bluebase.h | |||
@@ -1,25 +1,25 @@ | |||
1 | 1 | ||
2 | #ifndef BLUEBASE_H | 2 | #ifndef BLUEBASE_H |
3 | #define BLUEBASE_H | 3 | #define BLUEBASE_H |
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 | #include <qpixmap.h> |
11 | 11 | ||
12 | #include "bluetoothbase.h" | 12 | #include "bluetoothbase.h" |
13 | 13 | #include "btlistitem.h" | |
14 | 14 | ||
15 | #include <remotedevice.h> | 15 | #include <remotedevice.h> |
16 | #include <manager.h> | 16 | #include <manager.h> |
17 | 17 | ||
18 | class QVBox; | 18 | class QVBox; |
19 | class QHBoxLayout; | 19 | class QHBoxLayout; |
20 | class QGridLayout; | 20 | class QGridLayout; |
21 | class QFrame; | 21 | class QFrame; |
22 | class QLabel; | 22 | class QLabel; |
23 | class QPushButton; | 23 | class QPushButton; |
24 | class QTabWidget; | 24 | class QTabWidget; |
25 | class QCheckBox; | 25 | class QCheckBox; |
@@ -40,40 +40,41 @@ namespace OpieTooth { | |||
40 | private slots: | 40 | private slots: |
41 | void startScan(); | 41 | void startScan(); |
42 | 42 | ||
43 | private: | 43 | private: |
44 | void readConfig(); | 44 | void readConfig(); |
45 | void writeConfig(); | 45 | void writeConfig(); |
46 | void readSavedDevices(); | 46 | void readSavedDevices(); |
47 | void writeSavedDevices(); | 47 | void writeSavedDevices(); |
48 | QString getStatus(); | 48 | QString getStatus(); |
49 | void initGui(); | 49 | void initGui(); |
50 | void setInfo(); | 50 | void setInfo(); |
51 | Manager *localDevice; | 51 | Manager *localDevice; |
52 | QMap<QString,QListViewItem*> deviceList; | 52 | QMap<QString,BTListItem*> deviceList; |
53 | 53 | ||
54 | bool deviceActive( RemoteDevice *device ); | 54 | void deviceActive( RemoteDevice *device ); |
55 | 55 | ||
56 | QString deviceName; | 56 | QString deviceName; |
57 | QString defaultPasskey; | 57 | QString defaultPasskey; |
58 | int useEncryption; | 58 | int useEncryption; |
59 | int enableAuthentification; | 59 | int enableAuthentification; |
60 | int enablePagescan; | 60 | int enablePagescan; |
61 | int enableInquiryscan; | 61 | int enableInquiryscan; |
62 | 62 | ||
63 | QPixmap offPix; | 63 | QPixmap offPix; |
64 | QPixmap onPix; | 64 | QPixmap onPix; |
65 | 65 | ||
66 | private slots: | 66 | private slots: |
67 | void addSearchedDevices( QList<RemoteDevice> &newDevices ); | 67 | void addSearchedDevices( QList<RemoteDevice> &newDevices ); |
68 | void addServicesToDevice( QListViewItem *item ); | 68 | void addServicesToDevice( BTListItem *item ); |
69 | void addServicesToDevice( const QString& device, Services::ValueList ); | 69 | void addServicesToDevice( const QString& device, Services::ValueList ); |
70 | void addConnectedDevices(); | 70 | void addConnectedDevices(); |
71 | void startServiceActionClicked( QListViewItem *item ); | 71 | void startServiceActionClicked( QListViewItem *item ); |
72 | void startServiceActionHold( QListViewItem *, const QPoint &, int ); | 72 | void startServiceActionHold( BTListItem *, const QPoint &, int ); |
73 | void deviceActive( const QString& mac, bool connected ); | ||
73 | void applyConfigChanges(); | 74 | void applyConfigChanges(); |
74 | 75 | ||
75 | }; | 76 | }; |
76 | 77 | ||
77 | } | 78 | } |
78 | 79 | ||
79 | #endif | 80 | #endif |