summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/wlan/wlan_NNI.h
blob: e464c840a64993d3b069644314e5be6ade5f4b30 (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
#ifndef WLAN_H
#define WLAN_H

#include <netnode.h>
#include "wlandata.h"
#include "wlanrun.h"

class WLanNetNode;
class WLanEdit;

class AWLan : public ANetNodeInstance {

public :

      AWLan( WLanNetNode * PNN );

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

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

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

      bool generateDeviceDataForCommonFile( SystemFile & S, long DevNr );

protected :

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

private :

      WLanEdit * GUI;
      WLanData Data;
      WLanRun * RT;

};

#endif