summaryrefslogtreecommitdiff
path: root/noncore/settings/networksettings2/profile/profilerun.cpp
blob: ab57a00db041787f6b7f443a37df1009f6a216fe (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
#include <resources.h>

#include "profilerun.h"

State_t ProfileRun::detectState( void ) { 
    if( Data->Disabled ) {
      return Disabled;
    } 
    return Unknown;
}

QString ProfileRun::setMyState( NodeCollection * NC, Action_t A, bool ) { 
    owarn << "Profile " << Data->Disabled << oendl;
    if( A == Disable ) {
      if( ! Data->Disabled ) {
        Data->Disabled = 1;
        NC->setModified( 1 );
      }
    } else if( A == Enable ) {
      if( Data->Disabled ) { 
        Data->Disabled = 0;
        NC->setModified( 1 );
      }
    }

    return QString();
}