Diffstat (limited to 'noncore/net/opietooth/manager/bluebase.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opietooth/manager/bluebase.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h index 0326daf..743062c 100644 --- a/noncore/net/opietooth/manager/bluebase.h +++ b/noncore/net/opietooth/manager/bluebase.h | |||
@@ -4,39 +4,41 @@ | |||
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 | ||
14 | #include "btserviceitem.h" | 14 | #include "btserviceitem.h" |
15 | #include "btdeviceitem.h" | 15 | #include "btdeviceitem.h" |
16 | |||
16 | #include "popuphelper.h" | 17 | #include "popuphelper.h" |
17 | 18 | ||
18 | #include "bticonloader.h" | 19 | #include "bticonloader.h" |
19 | 20 | ||
20 | #include <remotedevice.h> | 21 | #include <remotedevice.h> |
21 | #include <manager.h> | 22 | #include <manager.h> |
22 | 23 | ||
23 | class QVBox; | 24 | class QVBox; |
24 | class QHBoxLayout; | 25 | class QHBoxLayout; |
25 | class QGridLayout; | 26 | class QGridLayout; |
26 | class QFrame; | 27 | class QFrame; |
27 | class QLabel; | 28 | class QLabel; |
28 | class QPushButton; | 29 | class QPushButton; |
29 | class QTabWidget; | 30 | class QTabWidget; |
30 | class QCheckBox; | 31 | class QCheckBox; |
32 | class BTConnectionItem; | ||
31 | 33 | ||
32 | 34 | ||
33 | namespace OpieTooth { | 35 | namespace OpieTooth { |
34 | 36 | ||
35 | class BlueBase : public BluetoothBase { | 37 | class BlueBase : public BluetoothBase { |
36 | Q_OBJECT | 38 | Q_OBJECT |
37 | 39 | ||
38 | public: | 40 | public: |
39 | BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 41 | BlueBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
40 | ~BlueBase(); | 42 | ~BlueBase(); |
41 | 43 | ||
42 | protected: | 44 | protected: |
@@ -46,24 +48,25 @@ namespace OpieTooth { | |||
46 | void startScan(); | 48 | void startScan(); |
47 | 49 | ||
48 | private: | 50 | private: |
49 | bool find( const RemoteDevice& device ); | 51 | bool find( const RemoteDevice& device ); |
50 | void readConfig(); | 52 | void readConfig(); |
51 | void writeConfig(); | 53 | void writeConfig(); |
52 | void readSavedDevices(); | 54 | void readSavedDevices(); |
53 | void writeSavedDevices(); | 55 | void writeSavedDevices(); |
54 | void writeToHciConfig(); | 56 | void writeToHciConfig(); |
55 | QString status()const; | 57 | QString status()const; |
56 | void initGui(); | 58 | void initGui(); |
57 | void setInfo(); | 59 | void setInfo(); |
60 | |||
58 | PopupHelper m_popHelper; | 61 | PopupHelper m_popHelper; |
59 | Manager *m_localDevice; | 62 | Manager *m_localDevice; |
60 | QMap<QString,BTDeviceItem*> m_deviceList; | 63 | QMap<QString,BTDeviceItem*> m_deviceList; |
61 | 64 | ||
62 | void deviceActive( const RemoteDevice &device ); | 65 | void deviceActive( const RemoteDevice &device ); |
63 | 66 | ||
64 | QString m_deviceName; | 67 | QString m_deviceName; |
65 | QString m_defaultPasskey; | 68 | QString m_defaultPasskey; |
66 | bool m_useEncryption; | 69 | bool m_useEncryption; |
67 | bool m_enableAuthentification; | 70 | bool m_enableAuthentification; |
68 | bool m_enablePagescan; | 71 | bool m_enablePagescan; |
69 | bool m_enableInquiryscan; | 72 | bool m_enableInquiryscan; |
@@ -75,18 +78,20 @@ namespace OpieTooth { | |||
75 | BTIconLoader *m_iconLoader; | 78 | BTIconLoader *m_iconLoader; |
76 | 79 | ||
77 | private slots: | 80 | private slots: |
78 | void addSearchedDevices( const QValueList<RemoteDevice> &newDevices ); | 81 | void addSearchedDevices( const QValueList<RemoteDevice> &newDevices ); |
79 | void addServicesToDevice( BTDeviceItem *item ); | 82 | void addServicesToDevice( BTDeviceItem *item ); |
80 | void addServicesToDevice( const QString& device, Services::ValueList ); | 83 | void addServicesToDevice( const QString& device, Services::ValueList ); |
81 | void addConnectedDevices(); | 84 | void addConnectedDevices(); |
82 | void addConnectedDevices( ConnectionState::ValueList ); | 85 | void addConnectedDevices( ConnectionState::ValueList ); |
83 | void startServiceActionClicked( QListViewItem *item ); | 86 | void startServiceActionClicked( QListViewItem *item ); |
84 | void startServiceActionHold( QListViewItem *, const QPoint &, int ); | 87 | void startServiceActionHold( QListViewItem *, const QPoint &, int ); |
85 | void deviceActive( const QString& mac, bool connected ); | 88 | void deviceActive( const QString& mac, bool connected ); |
86 | void applyConfigChanges(); | 89 | void applyConfigChanges(); |
90 | void addSignalStrength(); | ||
91 | void addSignalStrength( const QString& mac, const QString& strengh ); | ||
87 | 92 | ||
88 | }; | 93 | }; |
89 | 94 | ||
90 | } | 95 | } |
91 | 96 | ||
92 | #endif | 97 | #endif |