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

advancedconfig.cpp

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2002 Michael 'Mickey' Lauer
00003 **               <mickey@tm.informatik.uni-frankfurt.de>
00004 **               http://www.Vanille.de
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 **********************************************************************/
00015 
00016 #include "advancedconfig.h"
00017 
00018 #include <qpe/config.h>
00019 #include <qcheckbox.h>
00020 
00021 AdvancedConfig::AdvancedConfig( QWidget* parent,  const char* name, bool modal, WFlags fl )
00022     : AdvancedConfigBase( parent, name, modal, fl )
00023 {
00024     Config cfg( "qpe" );
00025     cfg.setGroup( "Wireless" );
00026     
00027     bool rocESSID = cfg.readBoolEntry( "renew_dhcp_on_essid_change", false );
00028     bool rocFREQ = cfg.readBoolEntry( "renew_dhcp_on_freq_change", false );
00029     bool rocAP = cfg.readBoolEntry( "renew_dhcp_on_ap_change", false );
00030     bool rocMODE = cfg.readBoolEntry( "renew_dhcp_on_mode_change", false );
00031     
00032     cbESSID->setChecked( rocESSID );
00033     cbFrequency->setChecked( rocFREQ );
00034     cbAccessPoint->setChecked( rocAP );
00035     cbMODE->setChecked( rocMODE );
00036 }
00037 
00038 AdvancedConfig::~AdvancedConfig()
00039 {
00040 }    
00041 
00042 void AdvancedConfig::accept()
00043 {
00044 
00045     Config cfg( "qpe" );
00046     cfg.setGroup( "Wireless" );
00047     cfg.writeEntry( "renew_dhcp_on_essid_change", cbESSID->isChecked() );
00048     cfg.writeEntry( "renew_dhcp_on_freq_change", cbFrequency->isChecked() );
00049     cfg.writeEntry( "renew_dhcp_on_ap_change", cbAccessPoint->isChecked() );
00050     cfg.writeEntry( "renew_dhcp_on_mode_change", cbMODE->isChecked() );
00051 
00052     AdvancedConfigBase::accept();
00053 }
00054 

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