summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/opietooth2/Opietooth.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/opietooth2/Opietooth.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/opietooth2/Opietooth.h194
1 files changed, 194 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/opietooth2/Opietooth.h b/noncore/settings/networksettings2/opietooth2/Opietooth.h
new file mode 100644
index 0000000..9e53fcb
--- a/dev/null
+++ b/noncore/settings/networksettings2/opietooth2/Opietooth.h
@@ -0,0 +1,194 @@
1#ifndef OPIETOOTH_H
2#define OPIETOOTH_H
3
4#include <OTIcons.h>
5
6#include <OTPairingGUI.h>
7class OLedBox;
8
9namespace Opietooth2 {
10
11class OTGateway;
12class OTDriver;
13class OTInquiry;
14class OTPeer;
15class PeerLVI;
16
17class OTPairing : public OTPairingGUI {
18
19 Q_OBJECT
20
21public :
22
23 OTPairing( QWidget * parent,
24 OTIcons * _Ic = 0 );
25 ~OTPairing();
26
27private slots :
28
29 void SLOT_Unpair( void );
30
31signals :
32
33protected :
34
35private :
36
37 bool MyIcons;
38 OTIcons * Icons;
39 OTGateway * OT;
40};
41};
42
43#include <OTScanGUI.h>
44
45namespace Opietooth2 {
46
47class OTGateway;
48class OTDriver;
49class OTInquiry;
50class OTPeer;
51
52class OTScan : public OTScanGUI {
53
54 Q_OBJECT
55
56public :
57
58 OTScan( QWidget * parent,
59 OTIcons * _Ic = 0 );
60 ~OTScan();
61
62 // static function to return a device and a channel
63 static int getDevice( OTPeer *& Peer,
64 int & Channel,
65 OTGateway * OT,
66 const UUIDVector & Filter = 0,
67 QWidget* Parent = 0);
68
69 // show only services that match any of the filter
70 void setScanFilter( const UUIDVector & Filter );
71 void resetScanFilter( void );
72
73 inline OTPeer * selectedPeer( void )
74 { return SelectedPeer; }
75 inline int selectedChannel( void )
76 { return SelectedChannel; }
77
78public slots :
79
80private slots :
81
82 void SLOT_DoScan( bool );
83 void SLOT_NewPeer( OTPeer *, bool );
84 void SLOT_FinishedDetecting();
85 void SLOT_Show( QListViewItem *);
86 void SLOT_RefreshServices( void );
87 void SLOT_RefreshState( void );
88 void SLOT_CleanupOld( void );
89 void SLOT_UpdateStrength( void );
90 void SLOT_PeerState( OTPeer * );
91 void SLOT_Selected( QListViewItem * );
92
93signals :
94
95 void selected( void );
96
97protected :
98
99private :
100
101 void refreshState( PeerLVI *, bool );
102 void scanMode( bool );
103
104 // load scanned devices
105
106 bool MyIcons;
107 OTIcons * Icons;
108 OTGateway * OT;
109 OTInquiry * Scanning;
110 UUIDVector Filter;
111
112 OLedBox * Paired_Led;
113 QTimer * StrengthTimer;
114 PeerLVI * Current;
115
116 OTPeer * SelectedPeer;
117 int SelectedChannel;
118};
119};
120
121#include <OTManageGUI.h>
122namespace Opietooth2 {
123
124class OTManage : public OTManageGUI {
125
126 Q_OBJECT
127
128public :
129
130 OTManage( QWidget * parent,
131 OTIcons * _IC = 0 );
132 ~OTManage();
133
134public slots :
135
136private slots :
137
138 void SLOT_ShowDriver( QListViewItem * );
139 void SLOT_UpDriver( bool );
140 void SLOT_StateChange( OTDriver * , bool );
141 void SLOT_DriverListChanged();
142 void SLOT_SetRefreshTimer( int );
143
144signals :
145
146protected :
147
148private :
149
150 // load scanned devices
151
152 bool MyIcons;
153 OTIcons * Icons;
154 OTGateway * OT;
155 OTInquiry * Scanning;
156};
157};
158
159#include <OTMainGUI.h>
160
161namespace Opietooth2 {
162class OTMain : public OTMainGUI {
163
164 Q_OBJECT
165
166public :
167
168 OTMain( QWidget * parent );
169 ~OTMain();
170
171public slots :
172
173private slots :
174
175 void SLOT_Pairing( void );
176 void SLOT_Manage( void );
177 void SLOT_Scan( void );
178 void SLOT_EnableBluetooth( bool );
179 void SLOT_DriverListChanged();
180 void SLOT_DeviceIsEnabled( bool );
181 void SLOT_StateChange( OTDriver * , bool );
182
183signals :
184
185protected :
186
187private :
188
189 // load scanned devices
190 OTIcons * Icons;
191 OTGateway * OT;
192};
193};
194#endif