summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/bluetooth/bluetoothBNEP_NNI.h
blob: bb3e7e7b757d674c1c3274b667b46b2143209831 (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
#ifndef BLUETOOTHBNEP_H
#define BLUETOOTHBNEP_H

#include <netnode.h>
#include "bluetoothBNEPdata.h"
#include "bluetoothBNEPrun.h"

class BluetoothBNEPNetNode;
class BluetoothBNEPEdit;

class ABluetoothBNEP : public ANetNodeInstance {

public :

      ABluetoothBNEP( BluetoothBNEPNetNode * PNN );

      QWidget * edit( QWidget * parent );
      QString acceptable( void );
      void commit( void );

      RuntimeInfo * runtime( void ) 
        { if( RT == 0 ) 
            RT = new BluetoothBNEPRun( this, Data );
          return RT;
        }

      virtual void * data( void )
        { return (void *)&Data; }

      virtual bool hasDataFor( const QString & S );
      virtual bool generateDataForCommonFile( SystemFile & SF, long );

protected :

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

private :

      BluetoothBNEPEdit * GUI;
      BluetoothBNEPData Data;
      BluetoothBNEPRun * RT;

};

#endif