summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/gprs/GPRS_NNI.h
blob: 1060a6e3621b1b46e2288dc93e76451aa4f248c5 (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
#ifndef GPRS_H
#define GPRS_H

#include <netnode.h>
#include "GPRSdata.h"
#include "GPRSrun.h"

class GPRSNetNode;
class GPRSEdit;
class SystemFile;

class AGPRSDevice : public ANetNodeInstance{

public :

      AGPRSDevice( GPRSNetNode * PNN );

      RuntimeInfo * runtime( void ) 
        { return
           ( RT ) ? RT : ( RT = new GPRSRun( this, Data ) );
        }

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

      virtual bool openFile( SystemFile & SF );

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

      virtual bool hasDataForFile( SystemFile & S );
      virtual short generateFile( SystemFile & SF,
                                 long DevNr );

protected :

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

private :

      GPRSEdit * GUI;
      GPRSData Data;
      GPRSRun * RT;
};

#endif