summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/profile/profilerun.h
blob: 2d48b15dca20ec7ca692b53bdd56e2602da5de36 (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
#ifndef PROFILERUN_H
#define PROFILERUN_H

#include <netnode.h>
#include "profiledata.h"

class ProfileRun  : public RuntimeInfo {

public :

      ProfileRun( ANetNodeInstance * NNI, ProfileData & D ) : 
            RuntimeInfo( NNI )
        { Data = &D;  }

      virtual RuntimeInfo * fullSetup( void ) 
        { return this; }
      virtual const QString & description( void )
        { return Data->Description; }
      virtual bool triggersVPN( void ) 
        { return Data->TriggerVPN; }

      State_t detectState( void );

protected :

      QString setMyState( NodeCollection * , Action_t, bool );

private :

      ProfileData * Data;

};
#endif