author | wimpie <wimpie> | 2004-04-02 18:29:49 (UTC) |
---|---|---|
committer | wimpie <wimpie> | 2004-04-02 18:29:49 (UTC) |
commit | 5334b639c9f97793bcae4f50f7b47c7a2ada4e2f (patch) (unidiff) | |
tree | f55aebd4314ab878bc39b6b08b8323a8ef78d803 /noncore/settings/networksettings2/network/network_NNI.h | |
parent | 7c8922b37b5bb7696c0ff2cbc999e2936b9b509f (diff) | |
download | opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.zip opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.tar.gz opie-5334b639c9f97793bcae4f50f7b47c7a2ada4e2f.tar.bz2 |
First import of NS2 app
Diffstat (limited to 'noncore/settings/networksettings2/network/network_NNI.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/network/network_NNI.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/network/network_NNI.h b/noncore/settings/networksettings2/network/network_NNI.h new file mode 100644 index 0000000..b98ff6e --- a/dev/null +++ b/noncore/settings/networksettings2/network/network_NNI.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef NETWORK_H | ||
2 | #define NETWORK_H | ||
3 | |||
4 | #include <netnode.h> | ||
5 | #include "networkdata.h" | ||
6 | #include "networkrun.h" | ||
7 | |||
8 | class NetworkNetNode; | ||
9 | class NetworkEdit; | ||
10 | class SystemFile; | ||
11 | |||
12 | class ANetwork : public ANetNodeInstance{ | ||
13 | |||
14 | public : | ||
15 | |||
16 | ANetwork( NetworkNetNode * PNN ); | ||
17 | |||
18 | QWidget * edit( QWidget * parent ); | ||
19 | QString acceptable( void ); | ||
20 | void commit( void ); | ||
21 | |||
22 | RuntimeInfo * runtime( void ) | ||
23 | { if( RT == 0 ) | ||
24 | RT = new NetworkRun( this, Data ); | ||
25 | return RT; | ||
26 | } | ||
27 | |||
28 | virtual void * data( void ) | ||
29 | { return (void *)&Data; } | ||
30 | |||
31 | bool generateDataForCommonFile( SystemFile & S, long DevNr ); | ||
32 | |||
33 | protected : | ||
34 | |||
35 | virtual void setSpecificAttribute( QString & Attr, QString & Value ); | ||
36 | virtual void saveSpecificAttribute( QTextStream & TS ); | ||
37 | |||
38 | private : | ||
39 | |||
40 | NetworkEdit * GUI; | ||
41 | NetworkData_t Data; | ||
42 | NetworkRun * RT; | ||
43 | }; | ||
44 | |||
45 | #endif | ||