summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/bluetooth/bluetoothBNEPrun.h
blob: 7346a8d54d8d9c55abff05f43aaafd15bb51e9c1 (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
33
34
#include <netnode.h>
#include "bluetoothBNEPdata.h"

#include <OTGateway.h>

class BluetoothBNEPRun  : public RuntimeInfo {

public :

      BluetoothBNEPRun( ANetNodeInstance * NNI, 
                        BluetoothBNEPData & D );
      virtual ~BluetoothBNEPRun( void );

      // i am a device
      virtual RuntimeInfo * device( void ) 
        { return this; }

      bool handlesInterface( const QString & );
      bool handlesInterface( InterfaceInfo * );

      State_t detectState( void );

protected :

      QString setMyState( NetworkSetup * , Action_t, bool );

private :

      bool hasFreePANNetworkSetup( bool Grab = 0 );

      BluetoothBNEPData &         Data;
      Opietooth2::OTGateway *     OT;
      QRegExp                     Pat;
};