summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/networksettings2/systemfile.h
blob: f57dab021590dfdfecd1f936b1e83e485cc68350 (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
#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 );
    bool preDeviceSection( ANetNode * NN );
    bool postDeviceSection( ANetNode * NN );

private :

    QString Name;
    QString Path;
    QFile * F;
    bool hasPreSection;
    bool hasPostSection;
    bool hasPreNodeSection;
    bool hasPostNodeSection;
    bool hasPreDeviceSection;
    bool hasPostDeviceSection;

};
#endif