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

NetworkSettingsData Class Reference

#include </home/clem/local/src/opie/noncore/settings/networksettings2/nsdata.h>

Collaboration diagram for NetworkSettingsData:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NetworkSettingsData (void)
 ~NetworkSettingsData (void)
void loadSettings (void)
QString saveSettings (void)
QString generateSettings (void)
bool isModified (void)
void setModified (bool M)
QList< NetworkSetupcollectPossible (const QString &Interface)
bool canStart (const QString &Interface)
bool couldBeTriggered (const QString &Interface)

Private Member Functions

QList< NetworkSetupcollectTriggered (const QString &Interface)
bool createPath (const QStringList &SL)

Private Attributes

bool ForceModified
QStringList LeftOvers

Constructor & Destructor Documentation

NetworkSettingsData::NetworkSettingsData void   ) 
 

Definition at line 15 of file nsdata.cpp.

References NetworkSetup::assignedInterface(), NetworkSetup::assignInterface(), QValueList< T >::begin(), QFile::close(), QValueList< T >::count(), QValueList< T >::end(), QDir::entryList(), F(), IO_ReadOnly, QString::latin1(), loadSettings(), Log, NSResources, QFile::open(), QDir::path(), QTextStream::readLine(), QFile::setName(), and QString::sprintf().

NetworkSettingsData::~NetworkSettingsData void   ) 
 

Definition at line 76 of file nsdata.cpp.

References NSResources.


Member Function Documentation

bool NetworkSettingsData::canStart const QString Interface  ) 
 

Definition at line 702 of file nsdata.cpp.

References Activate, Available, collectPossible(), Disabled, QString::isEmpty(), IsUp, QString::latin1(), Log, NetworkSetup::number(), Off, printf, S, NetworkSetup::setState(), NetworkSetup::state(), Unavailable, Unchecked, and Unknown.

Referenced by main().

QList< NetworkSetup > NetworkSettingsData::collectPossible const QString Interface  ) 
 

Definition at line 670 of file nsdata.cpp.

References QDictIterator< type >::current(), Disabled, NetworkSetup::handlesInterface(), IsUp, QString::latin1(), Log, NetworkSetup::name(), NSResources, and NetworkSetup::state().

Referenced by ActivateProfile::ActivateProfile(), and canStart().

QList< NetworkSetup > NetworkSettingsData::collectTriggered const QString Interface  )  [private]
 

Definition at line 783 of file nsdata.cpp.

References QDictIterator< type >::current(), Disabled, IsUp, QString::latin1(), Log, NetworkSetup::name(), NSResources, NetworkSetup::state(), and NetworkSetup::triggeredBy().

Referenced by couldBeTriggered().

bool NetworkSettingsData::couldBeTriggered const QString Interface  ) 
 

Definition at line 771 of file nsdata.cpp.

References collectTriggered(), QString::latin1(), and Log.

Referenced by main().

bool NetworkSettingsData::createPath const QStringList SL  )  [private]
 

Definition at line 810 of file nsdata.cpp.

References QDir::cd(), QDir::exists(), QDir::mkdir(), QDir::path(), and printf.

Referenced by generateSettings().

QString NetworkSettingsData::generateSettings void   ) 
 

Definition at line 295 of file nsdata.cpp.

References QValueList< T >::begin(), SystemFile::close(), createPath(), QDictIterator< type >::current(), NetworkSetup::device(), NetworkSetup::done(), QValueList< T >::end(), Opie::Core::endl(), NetworkSetup::firstWithDataForFile(), ANetNode::generatePostamble(), ANetNode::generatePreamble(), NetworkSetup::hasDataForFile(), ANetNode::hasDataForFile(), i, ANetNode::instanceCount(), QStringList::join(), SystemFile::knowsDeviceInstances(), QString::latin1(), Log, NetworkSetup::name(), SystemFile::name(), RuntimeInfo::netNode(), ANetNodeInstance::nodeClass(), NSResources, SystemFile::open(), ANetNode::openFile(), SystemFile::path(), SystemFile::postDeviceSection(), SystemFile::postNodeSection(), SystemFile::postSection(), SystemFile::preDeviceSection(), SystemFile::preNodeSection(), SystemFile::preSection(), ANetNode::properFiles(), qApp, and S.

Referenced by main(), and NetworkSettings::SLOT_GenerateConfig().

bool NetworkSettingsData::isModified void   ) 
 

Definition at line 757 of file nsdata.cpp.

References QDictIterator< type >::current(), ForceModified, and NSResources.

Referenced by saveSettings(), and NetworkSettings::~NetworkSettings().

void NetworkSettingsData::loadSettings void   ) 
 

Definition at line 80 of file nsdata.cpp.

References QValueList< T >::append(), QTextStream::atEnd(), deQuote(), F(), FALSE, QString::find(), ForceModified, IO_ReadOnly, QString::isEmpty(), QString::left(), LeftOvers, QString::length(), Log, QString::lower(), QString::mid(), NSResources, QFile::open(), QTextStream::readLine(), S, ANetNodeInstance::setAttribute(), ANetNode::setAttribute(), ANetNodeInstance::setNew(), QString::startsWith(), and QString::stripWhiteSpace().

Referenced by NetworkSettingsData().

QString NetworkSettingsData::saveSettings void   ) 
 

Definition at line 198 of file nsdata.cpp.

References QValueList< T >::begin(), QDictIterator< type >::current(), QValueList< T >::end(), Opie::Core::endl(), F(), IO_Truncate, IO_WriteOnly, isModified(), QString::latin1(), LeftOvers, Log, ANetNodeInstance::nodeClass(), NSResources, QFile::open(), qApp, quote(), QDir::rename(), S, and ANetNodeInstance::saveAttributes().

Referenced by NetworkSettings::~NetworkSettings().

void NetworkSettingsData::setModified bool  M  )  [inline]
 

Definition at line 19 of file nsdata.h.

References ForceModified.

Referenced by NetworkSettings::SLOT_DeleteNode(), and NetworkSettings::~NetworkSettings().


Member Data Documentation

bool NetworkSettingsData::ForceModified [private]
 

Definition at line 33 of file nsdata.h.

Referenced by isModified(), loadSettings(), and setModified().

QStringList NetworkSettingsData::LeftOvers [private]
 

Definition at line 36 of file nsdata.h.

Referenced by loadSettings(), and saveSettings().


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