Diffstat (limited to 'noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h index ce03cbb..a05a7a2 100644 --- a/noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h +++ b/noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h | |||
@@ -1,34 +1,35 @@ | |||
1 | #include <asdevice.h> | 1 | #include <netnode.h> |
2 | #include "bluetoothBNEPdata.h" | 2 | #include "bluetoothBNEPdata.h" |
3 | 3 | ||
4 | class BluetoothBNEPRun : public AsDevice { | 4 | #include <OTGateway.h> |
5 | using namespace Opietooth2; | ||
6 | |||
7 | class BluetoothBNEPRun : public RuntimeInfo { | ||
5 | 8 | ||
6 | public : | 9 | public : |
7 | 10 | ||
8 | BluetoothBNEPRun( ANetNodeInstance * NNI, | 11 | BluetoothBNEPRun( ANetNodeInstance * NNI, |
9 | BluetoothBNEPData & D ) : | 12 | BluetoothBNEPData & D ); |
10 | AsDevice( NNI ), | 13 | virtual ~BluetoothBNEPRun( void ); |
11 | Data( D), | 14 | |
12 | Pat( "bnep[0-6]" ) | 15 | // i am a device |
13 | { } | 16 | virtual RuntimeInfo * device( void ) |
17 | { return this; } | ||
14 | 18 | ||
15 | virtual AsDevice * asDevice( void ) | 19 | bool handlesInterface( const QString & ); |
16 | { return (AsDevice *)this; } | 20 | bool handlesInterface( InterfaceInfo * ); |
17 | 21 | ||
18 | virtual AsDevice * device( void ) | 22 | State_t detectState( void ); |
19 | { return asDevice(); } | ||
20 | 23 | ||
21 | protected : | 24 | protected : |
22 | 25 | ||
23 | void detectState( NodeCollection * ); | 26 | QString setMyState( NodeCollection * , Action_t, bool ); |
24 | bool setState( NodeCollection * , Action_t, bool ); | ||
25 | bool canSetState( State_t , Action_t ); | ||
26 | bool handlesInterface( const QString & ); | ||
27 | 27 | ||
28 | private : | 28 | private : |
29 | 29 | ||
30 | InterfaceInfo * getInterface( void ); | 30 | bool hasFreePANConnection( bool Grab = 0 ); |
31 | |||
31 | BluetoothBNEPData & Data; | 32 | BluetoothBNEPData & Data; |
32 | static QDict<QString> * PANConnections; | 33 | OTGateway * OT; |
33 | QRegExp Pat; | 34 | QRegExp Pat; |
34 | }; | 35 | }; |