blob: ce03cbb1a47f365faea9f6546d44916c77cf7496 (
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 <asdevice.h>
#include "bluetoothBNEPdata.h"
class BluetoothBNEPRun : public AsDevice {
public :
BluetoothBNEPRun( ANetNodeInstance * NNI,
BluetoothBNEPData & D ) :
AsDevice( NNI ),
Data( D),
Pat( "bnep[0-6]" )
{ }
virtual AsDevice * asDevice( void )
{ return (AsDevice *)this; }
virtual AsDevice * device( void )
{ return asDevice(); }
protected :
void detectState( NodeCollection * );
bool setState( NodeCollection * , Action_t, bool );
bool canSetState( State_t , Action_t );
bool handlesInterface( const QString & );
private :
InterfaceInfo * getInterface( void );
BluetoothBNEPData & Data;
static QDict<QString> * PANConnections;
QRegExp Pat;
};
|