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