author | wimpie <wimpie> | 2005-01-04 01:39:32 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2005-01-04 01:39:32 (UTC) |
commit | 2a7afda8b7daf4a43e370dba09e43e7f5058ab49 (patch) (side-by-side diff) | |
tree | 1905b1afdf7a1364149c4d325c778a4dd4c629c1 /noncore/settings/networksettings2/gprs/GPRS_NNI.h | |
parent | f1a6369e3df58019891707a3964b20836e104d67 (diff) | |
download | opie-2a7afda8b7daf4a43e370dba09e43e7f5058ab49.zip opie-2a7afda8b7daf4a43e370dba09e43e7f5058ab49.tar.gz opie-2a7afda8b7daf4a43e370dba09e43e7f5058ab49.tar.bz2 |
More NS2 files
Diffstat (limited to 'noncore/settings/networksettings2/gprs/GPRS_NNI.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/gprs/GPRS_NNI.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/gprs/GPRS_NNI.h b/noncore/settings/networksettings2/gprs/GPRS_NNI.h new file mode 100644 index 0000000..1060a6e --- a/dev/null +++ b/noncore/settings/networksettings2/gprs/GPRS_NNI.h @@ -0,0 +1,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 |