summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/nsdata.h
blob: b54df24d6ce1d67a1edb270a9fc261e1073c2566 (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
#ifndef __NSDATA_H
#define __NSDATA_H

#include "netnode.h"

class NetworkSettingsData {

public :

      NetworkSettingsData( void );
      ~NetworkSettingsData( void );

      void loadSettings( void );
      QString saveSettings( void );

      QString generateSettings( bool Force = FALSE );

      bool isModified( void ) 
        { return IsModified; }
      void setModified( bool m ) 
        { IsModified = m; }

      QList<NodeCollection> collectPossible( const char * Interface );
      void canStart( const char * Interface );
      bool regenerate( void );

      void forceGeneration( bool m ) 
        { Force = m; }

private :

      QString NetworkSettingsData::generateSystemFileNode(
              SystemFile & SF,
              AsDevice * CurDev,
              ANetNodeInstance * DevNNI,
              long DevInstNr );
      bool IsModified;
      bool Force;

};

#endif