author | wimpie <wimpie> | 2005-01-04 01:35:26 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:35:26 (UTC) |
commit | a9c188235c97e07b0eb96b13adbcdfd4bad64767 (patch) (unidiff) | |
tree | 13f6ae5c499dc0c1d1bd4b763a1973a0fa8635cf /noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h | |
parent | 48b6cd5966ec6cc0b968edf10ba1a1ad96ef165f (diff) | |
download | opie-a9c188235c97e07b0eb96b13adbcdfd4bad64767.zip opie-a9c188235c97e07b0eb96b13adbcdfd4bad64767.tar.gz opie-a9c188235c97e07b0eb96b13adbcdfd4bad64767.tar.bz2 |
CONTROL files : changed version string
NS2 many changes and first release of OT2
Diffstat (limited to 'noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h index 65fd686..24e3dae 100644 --- a/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h +++ b/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h | |||
@@ -1,28 +1,33 @@ | |||
1 | #include <asline.h> | 1 | #include <netnode.h> |
2 | #include "bluetoothRFCOMMdata.h" | 2 | #include "bluetoothRFCOMMdata.h" |
3 | 3 | ||
4 | class BluetoothRFCOMMRun : public AsLine { | 4 | #include <OTGateway.h> |
5 | using namespace Opietooth2; | ||
6 | |||
7 | class BluetoothRFCOMMRun : public RuntimeInfo { | ||
5 | 8 | ||
6 | public : | 9 | public : |
7 | 10 | ||
8 | BluetoothRFCOMMRun( ANetNodeInstance * NNI, | 11 | BluetoothRFCOMMRun( ANetNodeInstance * NNI, |
9 | BluetoothRFCOMMData & Data ) : AsLine( NNI ) | 12 | BluetoothRFCOMMData & D ) : RuntimeInfo( NNI ) |
10 | { } | 13 | { DeviceNr = -1; Data = &D; OT = 0; } |
14 | virtual ~BluetoothRFCOMMRun( void ); | ||
11 | 15 | ||
12 | virtual AsLine * asLine( void ) | 16 | virtual RuntimeInfo * line( void ) |
13 | { return (AsLine *)this; } | 17 | { return this; } |
18 | virtual QString deviceFile( void ); | ||
14 | 19 | ||
15 | virtual QString deviceFile( void ) | 20 | State_t detectState( void ); |
16 | { return QString( "/dev/rfcomm..." ); } | ||
17 | 21 | ||
18 | protected : | 22 | protected : |
19 | 23 | ||
20 | void detectState( NodeCollection * ) | 24 | QString setMyState( NodeCollection * , Action_t, bool ); |
21 | { } | ||
22 | 25 | ||
23 | bool setState( NodeCollection * , Action_t, bool ) | 26 | private : |
24 | { return 0; } | ||
25 | 27 | ||
26 | bool canSetState( State_t , Action_t ) | 28 | int deviceNrOfConnection( void ); |
27 | { return 0; } | 29 | RFCOMMChannel * getChannel( void ); |
30 | BluetoothRFCOMMData * Data; | ||
31 | Opietooth2::OTGateway * OT; | ||
32 | int DeviceNr; // cached from detection | ||
28 | }; | 33 | }; |