summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/networksettings2/systemfile.h
Unidiff
Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/systemfile.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/networksettings2/networksettings2/systemfile.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/systemfile.h b/noncore/settings/networksettings2/networksettings2/systemfile.h
index f57dab0..ceed605 100644
--- a/noncore/settings/networksettings2/networksettings2/systemfile.h
+++ b/noncore/settings/networksettings2/networksettings2/systemfile.h
@@ -2,42 +2,49 @@
2#define __SYSTEMFILE__H 2#define __SYSTEMFILE__H
3 3
4#include <qstring.h> 4#include <qstring.h>
5#include <qtextstream.h> 5#include <qtextstream.h>
6 6
7class QFile; 7class QFile;
8class ANetNodeInstance; 8class ANetNodeInstance;
9 9
10class SystemFile : public QTextStream { 10class SystemFile : public QTextStream {
11 11
12public : 12public :
13 13
14 SystemFile( const QString & Name, const QString & Path ); 14 SystemFile( const QString & Name,
15 const QString & Path,
16 bool KnowsDevicesInstances );
15 ~SystemFile( void ); 17 ~SystemFile( void );
16 18
17 const QString & name( void ) 19 const QString & name( void ) const
18 { return Name; } 20 { return Name; }
21 const QString & path( void ) const
22 { return Path; }
23 bool knowsDeviceInstances( void ) const
24 { return KnowsDeviceInstances; }
19 25
20 bool open( void ); 26 bool open( void );
21 bool close( void ); 27 bool close( void );
22 28
23 bool preSection( void ); 29 bool preSection( void );
24 bool postSection( void ); 30 bool postSection( void );
25 bool preNodeSection( ANetNodeInstance * NNI, long DevNr ); 31 bool preNodeSection( ANetNodeInstance * NNI, long DevNr );
26 bool postNodeSection( ANetNodeInstance * NNI, long DevNr ); 32 bool postNodeSection( ANetNodeInstance * NNI, long DevNr );
27 bool preDeviceSection( ANetNode * NN ); 33 bool preDeviceSection( ANetNode * NN );
28 bool postDeviceSection( ANetNode * NN ); 34 bool postDeviceSection( ANetNode * NN );
29 35
30private : 36private :
31 37
32 QString Name; 38 QString Name;
33 QString Path; 39 QString Path;
34 QFile * F; 40 QFile * F;
35 bool hasPreSection; 41 bool hasPreSection;
36 bool hasPostSection; 42 bool hasPostSection;
37 bool hasPreNodeSection; 43 bool hasPreNodeSection;
38 bool hasPostNodeSection; 44 bool hasPostNodeSection;
39 bool hasPreDeviceSection; 45 bool hasPreDeviceSection;
40 bool hasPostDeviceSection; 46 bool hasPostDeviceSection;
47 bool KnowsDeviceInstances;
41 48
42}; 49};
43#endif 50#endif