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

#include <netnode.h>

class NetworkSettingsData {

public :

      NetworkSettingsData( void );
      ~NetworkSettingsData( void );

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

      QString generateSettings( void );

      bool isModified( void );
      inline void setModified( bool M ) 
        { ForceModified = M; }

      QList<NetworkSetup> collectPossible( const QString & Interface );
      // return TRUE if we need gui to decide
      bool canStart( const QString & Interface );
      // return TRUE if there are vpns that could be triggered
      // by this interface
      bool couldBeTriggered( const QString & Interface );

private :

      QList<NetworkSetup> collectTriggered( const QString &Interface );
      bool createPath( const QStringList & SL );
      bool ForceModified;

      // collect strings in config file nobody wants
      QStringList LeftOvers;
};

#endif