Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

profilerun.cpp

Go to the documentation of this file.
00001 #include <resources.h>
00002 
00003 #include "profilerun.h"
00004 
00005 State_t ProfileRun::detectState( void ) { 
00006 
00007     Log(( "Profile %sabled\n", (Data->Enabled) ? "en" : "dis" ));
00008 
00009     if( Data->Enabled ) {
00010       return Unknown;
00011     } 
00012     return Disabled;
00013 }
00014 
00015 QString ProfileRun::setMyState( NetworkSetup * NC, Action_t A, bool ) { 
00016     odebug << "Profile " << Data->Enabled << oendl;
00017     if( A == Disable ) {
00018       if( Data->Enabled ) {
00019         Data->Enabled = 0;
00020         NC->setModified( 1 );
00021       }
00022     } else if( A == Enable ) {
00023       if( ! Data->Enabled ) { 
00024         Data->Enabled = 1;
00025         NC->setModified( 1 );
00026       }
00027     }
00028 
00029     return QString();
00030 }

Generated on Sat Nov 5 16:17:56 2005 for OPIE by  doxygen 1.4.2