summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/bluetooth/bluetoothRFCOMMrun.h
blob: 5a31a944c2b3fdecde6f5568b344bef9d8197993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <netnode.h>
#include "bluetoothRFCOMMdata.h"

#include <OTGateway.h>

class BluetoothRFCOMMRun  : public RuntimeInfo {

public :

      BluetoothRFCOMMRun( ANetNodeInstance * NNI, 
                          BluetoothRFCOMMData & D ) : RuntimeInfo( NNI )
        {  DeviceNr = -1; Data = &D; OT = 0; }
      virtual ~BluetoothRFCOMMRun( void );

      virtual RuntimeInfo * line( void ) 
        { return this; }
      virtual QString deviceFile( void );

      State_t detectState( void );

protected :

      QString setMyState( NodeCollection * , Action_t, bool );

private :

      int deviceNrOfConnection( void );
      RFCOMMChannel * getChannel( void );
      BluetoothRFCOMMData *   Data;
      Opietooth2::OTGateway * OT;
      int                     DeviceNr; // cached from detection
};