summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/bluetooth/bluetooth_NN.h
blob: 5cd6c52b988802e0a386ce9ab19331e19ac0ba3b (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
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef BLUETOOTH_NETNODE_H
#define BLUETOOTH_NETNODE_H

#include "netnode.h"

class ABluetoothBNEP;

class BluetoothBNEPNetNode : public ANetNode {

    Q_OBJECT

public:

    BluetoothBNEPNetNode();
    virtual ~BluetoothBNEPNetNode();

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

    virtual const QString nodeName() 
      { return tr("Bluetooth PAN/NAP"); }

    virtual const QString nodeDescription() ;

    virtual ANetNodeInstance * createInstance( void );

    virtual const char ** needs( void );
    virtual const char * provides( void );

    virtual bool generateProperFilesFor( ANetNodeInstance * NNI );
    virtual bool hasDataFor( const QString & S );
    virtual bool generateDeviceDataForCommonFile( 
        SystemFile & , long DevNr );

    virtual long instanceCount( void )
      { return 7; }
    virtual QString genNic( long );

private:

};

class BluetoothRFCOMMNetNode : public ANetNode {

    Q_OBJECT

public:

    BluetoothRFCOMMNetNode();
    virtual ~BluetoothRFCOMMNetNode();

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

    virtual const QString nodeName() 
      { return tr("Bluetooth serial link"); }

    virtual const QString nodeDescription() ;

    virtual ANetNodeInstance * createInstance( void );

    virtual const char ** needs( void );
    virtual const char * provides( void );

    virtual bool generateProperFilesFor( ANetNodeInstance * NNI );
    virtual bool hasDataFor( const QString & S );
    virtual bool generateDeviceDataForCommonFile( 
        SystemFile & , long );

private:

};

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

#endif