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

InterfaceSetupImp Class Reference

#include </home/clem/local/src/opie/noncore/settings/networksettings/interfaces/interfacesetupimp.h>

Collaboration diagram for InterfaceSetupImp:

Collaboration graph
[legend]
List of all members.

Public Slots

void setProfile (const QString &profile)
bool saveSettings ()

Public Member Functions

 InterfaceSetupImp (QWidget *parent=0, const char *name=0, Interface *i=0, Interfaces *j=0, WFlags fl=0)
 ~InterfaceSetupImp ()
bool saveChanges ()

Private Attributes

Interfacesinterfaces
Interfaceinterface
bool delInterfaces

Detailed Description

A default implementation for setting up basic network config. Like DHCP, IP and other information. You can use it in a tab or in any other way* On saveChanges() it'll save the changes to Interfaces.

Definition at line 16 of file interfacesetupimp.h.


Constructor & Destructor Documentation

InterfaceSetupImp::InterfaceSetupImp QWidget *  parent = 0,
const char *  name = 0,
Interface i = 0,
Interfaces j = 0,
WFlags  fl = 0
 

Definition at line 28 of file interfacesetupimp.cpp.

References delInterfaces, and interfaces.

InterfaceSetupImp::~InterfaceSetupImp  ) 
 

Destructor

Definition at line 38 of file interfacesetupimp.cpp.

References delInterfaces, and interfaces.


Member Function Documentation

bool InterfaceSetupImp::saveChanges  ) 
 

Save the current settings, then write out the interfaces file and close.

Definition at line 47 of file interfacesetupimp.cpp.

References OProcess::Block, error(), Interfaces::getInterfaceName(), Interface::getStatus(), Opie::Ui::OWait::hide(), interface, interfaces, QString::latin1(), OProcess::NoCommunication, odebug, oendl, owarn, qApp, Interface::refresh(), saveSettings(), Opie::Ui::OWait::show(), Opie::Core::OProcess::start(), Global::statusMessage(), tr, and Interfaces::write().

Referenced by WLANImp::accept(), InterfaceSetupImpDialog::accept(), and WLANImp::writeOpts().

bool InterfaceSetupImp::saveSettings  )  [slot]
 

Save the settings for the current Interface.

Returns:
bool true if successful, false otherwise

Definition at line 91 of file interfacesetupimp.cpp.

References DNSSCRIPT, error(), Interfaces::getInterfaceMethod(), Interface::getInterfaceName(), interface, interfaces, INTERFACES_LOOPBACK, INTERFACES_METHOD_DHCP, Interfaces::isInterfaceSet(), Interfaces::removeInterfaceOption(), Interfaces::setAuto(), Interfaces::setInterfaceMethod(), and Interfaces::setInterfaceOption().

Referenced by saveChanges().

void InterfaceSetupImp::setProfile const QString profile  )  [slot]
 

The Profile has changed.

Parameters:
QString profile the new profile.

Definition at line 139 of file interfacesetupimp.cpp.

References Interfaces::addInterface(), Interfaces::addMapping(), QString::contains(), Interfaces::copyInterface(), DNSSCRIPT, error(), QString::find(), Interfaces::getInterfaceMethod(), Interfaces::getInterfaceName(), Interface::getInterfaceName(), Interfaces::getInterfaceOption(), interface, interfaces, INTERFACES_FAMILY_INET, INTERFACES_METHOD_DHCP, Interfaces::isAuto(), QString::latin1(), QString::length(), QString::mid(), odebug, oendl, owarn, Interfaces::setInterface(), Interfaces::setMap(), Interfaces::setMapping(), and Interfaces::setScript().

Referenced by WLANImp::setProfile(), and InterfaceSetupImpDialog::setProfile().


Member Data Documentation

bool InterfaceSetupImp::delInterfaces [private]
 

Definition at line 32 of file interfacesetupimp.h.

Referenced by InterfaceSetupImp(), and ~InterfaceSetupImp().

Interface* InterfaceSetupImp::interface [private]
 

Definition at line 30 of file interfacesetupimp.h.

Referenced by saveChanges(), saveSettings(), and setProfile().

Interfaces* InterfaceSetupImp::interfaces [private]
 

Definition at line 29 of file interfacesetupimp.h.

Referenced by InterfaceSetupImp(), saveChanges(), saveSettings(), setProfile(), and ~InterfaceSetupImp().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:36:20 2005 for OPIE by  doxygen 1.4.2