00001 #include <netnode.h> 00002 #include "bluetoothRFCOMMdata.h" 00003 00004 #include <OTGateway.h> 00005 00006 class BluetoothRFCOMMRun : public RuntimeInfo { 00007 00008 public : 00009 00010 BluetoothRFCOMMRun( ANetNodeInstance * NNI, 00011 BluetoothRFCOMMData & D ) : RuntimeInfo( NNI ) 00012 { DeviceNr = -1; Data = &D; OT = 0; } 00013 virtual ~BluetoothRFCOMMRun( void ); 00014 00015 virtual RuntimeInfo * line( void ) 00016 { return this; } 00017 virtual QString deviceFile( void ); 00018 00019 State_t detectState( void ); 00020 00021 protected : 00022 00023 QString setMyState( NetworkSetup * , Action_t, bool ); 00024 00025 private : 00026 00027 int deviceNrOfNetworkSetup( void ); 00028 RFCOMMChannel * getChannel( void ); 00029 BluetoothRFCOMMData * Data; 00030 Opietooth2::OTGateway * OT; 00031 int DeviceNr; // cached from detection 00032 };
1.4.2