Diffstat (limited to 'noncore/settings/networksettings2/networksettings2/systemfile.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/networksettings2/networksettings2/systemfile.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/systemfile.h b/noncore/settings/networksettings2/networksettings2/systemfile.h new file mode 100644 index 0000000..8b6bcb9 --- a/dev/null +++ b/noncore/settings/networksettings2/networksettings2/systemfile.h @@ -0,0 +1,39 @@ +#ifndef __SYSTEMFILE__H +#define __SYSTEMFILE__H + +#include <qstring.h> +#include <qtextstream.h> + +class QFile; +class ANetNodeInstance; + +class SystemFile : public QTextStream { + +public : + + SystemFile( const QString & Name, const QString & Path ); + ~SystemFile( void ); + + const QString & name( void ) + { return Name; } + + bool open( void ); + bool close( void ); + + bool preSection( void ); + bool postSection( void ); + bool preNodeSection( ANetNodeInstance * NNI, long DevNr ); + bool postNodeSection( ANetNodeInstance * NNI, long DevNr ); + +private : + + QString Name; + QString Path; + QFile * F; + bool hasPreSection; + bool hasPreNodeSection; + bool hasPostSection; + bool hasPostNodeSection; + +}; +#endif |