Networksettings API API Documentation

InterfaceSetupImp Class Reference

A default implementation for setting up basic network config. More...

#include <interfacesetupimp.h>

Collaboration diagram for InterfaceSetupImp:

Collaboration graph
[legend]
List of all members.

Public Slots

void setProfile (const QString &profile)
 The Profile has changed.

bool saveSettings ()
 Save the settings for the current Interface.


Public Member Functions

 InterfaceSetupImp (QWidget *parent=0, const char *name=0, Interface *i=0, Interfaces *j=0, WFlags fl=0)
 Constuctor.

 ~InterfaceSetupImp ()
 Destructor.

bool saveChanges ()
 Save the current settings, then write out the interfaces file and close.


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
 

Constuctor.

Set up the connection. A profile must be set.

Definition at line 25 of file interfacesetupimp.cpp.

InterfaceSetupImp::~InterfaceSetupImp  ) 
 

Destructor.

Definition at line 35 of file interfacesetupimp.cpp.


Member Function Documentation

bool InterfaceSetupImp::saveChanges  ) 
 

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

Definition at line 44 of file interfacesetupimp.cpp.

References Interfaces::getInterfaceName(), Interface::getStatus(), OWait::hide(), QString::latin1(), Interface::refresh(), saveSettings(), OWait::show(), OProcess::start(), Global::statusMessage(), and Interfaces::write().

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

The Profile has changed.

Parameters:
QString profile the new profile.

Definition at line 136 of file interfacesetupimp.cpp.

References Interfaces::addInterface(), Interfaces::addMapping(), QString::contains(), Interfaces::copyInterface(), QString::find(), Interfaces::getInterfaceMethod(), Interfaces::getInterfaceName(), Interface::getInterfaceName(), Interfaces::getInterfaceOption(), Interfaces::isAuto(), QString::latin1(), QString::length(), QString::mid(), Interfaces::setInterface(), Interfaces::setMap(), Interfaces::setMapping(), and Interfaces::setScript().

bool InterfaceSetupImp::saveSettings  )  [slot]
 

Save the settings for the current Interface.

Returns:
bool true if successful, false otherwise

Definition at line 88 of file interfacesetupimp.cpp.

References Interfaces::getInterfaceMethod(), Interface::getInterfaceName(), QMessageBox::information(), Interfaces::isInterfaceSet(), Interfaces::removeInterfaceOption(), Interfaces::setAuto(), Interfaces::setInterfaceMethod(), and Interfaces::setInterfaceOption().

Referenced by saveChanges().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.0.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:26:46 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001