author | zecke <zecke> | 2002-07-12 17:14:58 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-07-12 17:14:58 (UTC) |
commit | 89dce758480cc90502ad14b6c4cf80774e6c1845 (patch) (unidiff) | |
tree | 2ff4e635c8aa86385dfd896084f5cd419efd0840 /noncore/net/opietooth/manager/bluebase.h | |
parent | 716211b5e06bb25145cfbcf62a11a7c52c79dde5 (diff) | |
download | opie-89dce758480cc90502ad14b6c4cf80774e6c1845.zip opie-89dce758480cc90502ad14b6c4cf80774e6c1845.tar.gz opie-89dce758480cc90502ad14b6c4cf80774e6c1845.tar.bz2 |
- Connection -> ConnectionState
- Factory adjustments
- Factory function
- Refactoring the QListViewItem derived class
BTListItem
|
- BTDeviceItem for RemoteDevices
|
- BTServiceItem for Services
|
- BTConnectionItem for ConnectionState
- misc bug fixes
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, 7 insertions, 4 deletions
diff --git a/noncore/net/opietooth/manager/bluebase.h b/noncore/net/opietooth/manager/bluebase.h index 73fac97..a8f4fe4 100644 --- a/noncore/net/opietooth/manager/bluebase.h +++ b/noncore/net/opietooth/manager/bluebase.h | |||
@@ -1,25 +1,28 @@ | |||
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 | #include "btlistitem.h" | 13 | |
14 | #include "btserviceitem.h" | ||
15 | #include "btdeviceitem.h" | ||
16 | |||
14 | #include "bticonloader.h" | 17 | #include "bticonloader.h" |
15 | 18 | ||
16 | #include <remotedevice.h> | 19 | #include <remotedevice.h> |
17 | #include <manager.h> | 20 | #include <manager.h> |
18 | 21 | ||
19 | class QVBox; | 22 | class QVBox; |
20 | class QHBoxLayout; | 23 | class QHBoxLayout; |
21 | class QGridLayout; | 24 | class QGridLayout; |
22 | class QFrame; | 25 | class QFrame; |
23 | class QLabel; | 26 | class QLabel; |
24 | class QPushButton; | 27 | class QPushButton; |
25 | class QTabWidget; | 28 | class QTabWidget; |
@@ -42,44 +45,44 @@ namespace OpieTooth { | |||
42 | void startScan(); | 45 | void startScan(); |
43 | 46 | ||
44 | private: | 47 | private: |
45 | void readConfig(); | 48 | void readConfig(); |
46 | void writeConfig(); | 49 | void writeConfig(); |
47 | void readSavedDevices(); | 50 | void readSavedDevices(); |
48 | void writeSavedDevices(); | 51 | void writeSavedDevices(); |
49 | void writeToHciConfig(); | 52 | void writeToHciConfig(); |
50 | QString status()const; | 53 | QString status()const; |
51 | void initGui(); | 54 | void initGui(); |
52 | void setInfo(); | 55 | void setInfo(); |
53 | Manager *m_localDevice; | 56 | Manager *m_localDevice; |
54 | QMap<QString,BTListItem*> m_deviceList; | 57 | QMap<QString,BTDeviceItem*> m_deviceList; |
55 | 58 | ||
56 | void deviceActive( const RemoteDevice &device ); | 59 | void deviceActive( const RemoteDevice &device ); |
57 | 60 | ||
58 | QString m_deviceName; | 61 | QString m_deviceName; |
59 | QString m_defaultPasskey; | 62 | QString m_defaultPasskey; |
60 | bool m_useEncryption; | 63 | bool m_useEncryption; |
61 | bool m_enableAuthentification; | 64 | bool m_enableAuthentification; |
62 | bool m_enablePagescan; | 65 | bool m_enablePagescan; |
63 | bool m_enableInquiryscan; | 66 | bool m_enableInquiryscan; |
64 | 67 | ||
65 | QPixmap m_offPix; | 68 | QPixmap m_offPix; |
66 | QPixmap m_onPix; | 69 | QPixmap m_onPix; |
67 | 70 | ||
68 | BTIconLoader *m_iconLoader; | 71 | BTIconLoader *m_iconLoader; |
69 | 72 | ||
70 | private slots: | 73 | private slots: |
71 | void addSearchedDevices( const QValueList<RemoteDevice> &newDevices ); | 74 | void addSearchedDevices( const QValueList<RemoteDevice> &newDevices ); |
72 | void addServicesToDevice( BTListItem *item ); | 75 | void addServicesToDevice( BTDeviceItem *item ); |
73 | void addServicesToDevice( const QString& device, Services::ValueList ); | 76 | void addServicesToDevice( const QString& device, Services::ValueList ); |
74 | void addConnectedDevices(); | 77 | void addConnectedDevices(); |
75 | void addConnectedDevices( Connection::ValueList ); | 78 | void addConnectedDevices( ConnectionState::ValueList ); |
76 | void startServiceActionClicked( QListViewItem *item ); | 79 | void startServiceActionClicked( QListViewItem *item ); |
77 | void startServiceActionHold( QListViewItem *, const QPoint &, int ); | 80 | void startServiceActionHold( QListViewItem *, const QPoint &, int ); |
78 | void deviceActive( const QString& mac, bool connected ); | 81 | void deviceActive( const QString& mac, bool connected ); |
79 | void applyConfigChanges(); | 82 | void applyConfigChanges(); |
80 | 83 | ||
81 | }; | 84 | }; |
82 | 85 | ||
83 | } | 86 | } |
84 | 87 | ||
85 | #endif | 88 | #endif |