summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h
blob: 4d6a3c1817ece5d0c04b6a4935a0ca652c52663e (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef BLUETOOTH_NETNODE_H
#define BLUETOOTH_NETNODE_H

#include "netnode.h"

class ABluetoothBNEP;

class BluetoothBNEPNetNode : public ANetNode {

      Q_OBJECT

public:

      BluetoothBNEPNetNode();
      virtual ~BluetoothBNEPNetNode();

      virtual QString genNic( long );
      virtual long instanceCount( void )
        { return InstanceCount; }
      virtual const QString pixmapName() 
        { return "Devices/bluetooth"; }

      virtual const QString nodeDescription() ;
      virtual ANetNodeInstance * createInstance( void );
      virtual const char * provides( void );
      virtual const char ** needs( void );

private:

      virtual void setSpecificAttribute( QString & Attr, QString & Value );
      virtual void saveSpecificAttribute( QTextStream & TS );

      // number of interfaces for this device
      long InstanceCount;

};

class BluetoothRFCOMMNetNode : public ANetNode {

      Q_OBJECT

public:

      BluetoothRFCOMMNetNode();
      virtual ~BluetoothRFCOMMNetNode();

      virtual const QString pixmapName() 
        { return "Devices/bluetooth"; }

      virtual const QString nodeDescription() ;
      virtual ANetNodeInstance * createInstance( void );
      virtual const char ** needs( void );
      virtual const char * provides( void );

private:

      virtual void setSpecificAttribute( QString & Attr, QString & Value );
      virtual void saveSpecificAttribute( QTextStream & TS );
};

extern "C"
{
  void create_plugin( QList<ANetNode> & PNN );
};

#endif