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

NetworkSetup Class Reference

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

Collaboration diagram for NetworkSetup:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NetworkSetup (void)
 NetworkSetup (QTextStream &TS, bool &Dangling)
 ~NetworkSetup (void)
void copyFrom (const NetworkSetup &NC)
int done (void)
void setDone (int D)
int number (void)
void setNumber (int i)
bool isNew (void)
void setNew (bool N)
bool isModified (void)
void setModified (bool N)
bool handlesInterface (const QString &S)
InterfaceInfoassignedInterface (void)
void assignInterface (InterfaceInfo *NI)
RuntimeInfodevice ()
const QStringListtriggers ()
State_t state (bool Update=0)
QPixmap devicePixmap (void)
QPixmap statePixmap (State_t S)
QPixmap statePixmap (bool Update=0)
QString stateName (State_t)
QString stateName (bool Update=0)
QString setState (Action_t A, bool Force=0)
void save (QTextStream &TS)
void append (ANetNodeInstance *NNI)
void reassign (void)
ANetNodeInstancegetToplevel (void)
ANetNodeInstancefindNext (ANetNodeInstance *NNI)
ANetNodeInstancefindByName (const QString &S)
const QStringname ()
const QStringdescription (void)
void setName (const QString &N)
State_t currentState (void)
void setCurrentState (State_t S)
bool hasDataForFile (SystemFile &S)
ANetNodeInstancefirstWithDataForFile (SystemFile &)
short generateFile (SystemFile &SF, long DN)
bool triggeredBy (const QString &Trigger)

Private Member Functions

int compareItems (QCollection::Item item1, QCollection::Item item2)

Private Attributes

long Number
State_t CurrentState
QString Name
bool IsNew
int Index
bool IsModified
int Done
InterfaceInfoAssignedInterface

Constructor & Destructor Documentation

NetworkSetup::NetworkSetup void   ) 
 

Definition at line 138 of file netnode.cpp.

References AssignedInterface, CurrentState, Done, Index, IsModified, IsNew, Name, Number, and Unchecked.

NetworkSetup::NetworkSetup QTextStream TS,
bool &  Dangling
 

Definition at line 149 of file netnode.cpp.

References append(), AssignedInterface, CurrentState, deQuote(), Done, QString::find(), Index, QString::isEmpty(), IsModified, IsNew, QString::latin1(), QString::left(), QString::length(), Log, QString::lower(), QString::mid(), N, Name, NSResources, Number, QTextStream::readLine(), S, setNumber(), QString::stripWhiteSpace(), QString::toLong(), and Unchecked.

NetworkSetup::~NetworkSetup void   ) 
 

Definition at line 204 of file netnode.cpp.


Member Function Documentation

void NetworkSetup::append ANetNodeInstance NNI  ) 
 

Definition at line 212 of file netnode.cpp.

Referenced by EditNetworkSetup::getTmpCollection(), NetworkSetup(), and EditNetworkSetup::networkSetup().

InterfaceInfo* NetworkSetup::assignedInterface void   )  [inline]
 

Definition at line 549 of file netnode.h.

References AssignedInterface.

Referenced by WLanRun::detectState(), USBRun::detectState(), LanCardRun::detectState(), GPRSRun::detectState(), NetworkSettingsData::NetworkSettingsData(), and NetworkRun::setMyState().

void NetworkSetup::assignInterface InterfaceInfo NI  )  [inline]
 

Definition at line 554 of file netnode.h.

References AssignedInterface, and InterfaceInfo::assignToNetworkSetup().

Referenced by WLanRun::detectState(), USBRun::detectState(), LanCardRun::detectState(), GPRSRun::detectState(), NetworkSettingsData::NetworkSettingsData(), USBRun::setMyState(), and LanCardRun::setMyState().

int NetworkSetup::compareItems QCollection::Item  item1,
QCollection::Item  item2
[private]
 

Definition at line 276 of file netnode.cpp.

void NetworkSetup::copyFrom const NetworkSetup NC  ) 
 

Definition at line 498 of file netnode.cpp.

References AssignedInterface, CurrentState, Index, IsNew, Name, and Number.

Referenced by EditNetworkSetup::getTmpCollection().

State_t NetworkSetup::currentState void   )  [inline]
 

Definition at line 605 of file netnode.h.

References CurrentState.

const QString & NetworkSetup::description void   ) 
 

Definition at line 207 of file netnode.cpp.

References getToplevel(), Name, and ANetNodeInstance::runtime().

Referenced by NetworkSettings::SLOT_ShowNode().

RuntimeInfo* NetworkSetup::device void   )  [inline]
 

Definition at line 566 of file netnode.h.

References getToplevel().

Referenced by devicePixmap(), and NetworkSettingsData::generateSettings().

QPixmap NetworkSetup::devicePixmap void   ) 
 

Definition at line 294 of file netnode.cpp.

References device(), getToplevel(), Resource::loadPixmap(), NSResources, and TRUE.

Referenced by ActivateProfile::ActivateProfile(), NetworkSettings::NetworkSettings(), and NetworkSettings::SLOT_EditNode().

int NetworkSetup::done void   )  [inline]
 

Definition at line 525 of file netnode.h.

References Done.

Referenced by NetworkSettingsData::generateSettings().

ANetNodeInstance * NetworkSetup::findByName const QString S  ) 
 

Definition at line 245 of file netnode.cpp.

ANetNodeInstance * NetworkSetup::findNext ANetNodeInstance NNI  ) 
 

Definition at line 258 of file netnode.cpp.

References getToplevel().

ANetNodeInstance * NetworkSetup::firstWithDataForFile SystemFile  ) 
 

Definition at line 353 of file netnode.cpp.

Referenced by NetworkSettingsData::generateSettings(), and hasDataForFile().

short NetworkSetup::generateFile SystemFile SF,
long  DN
[inline]
 

Definition at line 616 of file netnode.h.

References getToplevel().

ANetNodeInstance * NetworkSetup::getToplevel void   ) 
 

Definition at line 232 of file netnode.cpp.

References ANetNodeInstance::nodeClass().

Referenced by description(), device(), devicePixmap(), findNext(), generateFile(), handlesInterface(), setState(), triggeredBy(), and triggers().

bool NetworkSetup::handlesInterface const QString S  )  [inline]
 

Definition at line 543 of file netnode.h.

References getToplevel().

Referenced by NetworkSettingsData::collectPossible().

bool NetworkSetup::hasDataForFile SystemFile S  ) 
 

Definition at line 349 of file netnode.cpp.

References firstWithDataForFile().

Referenced by NetworkSettingsData::generateSettings().

bool NetworkSetup::isModified void   )  [inline]
 

Definition at line 538 of file netnode.h.

References IsModified.

Referenced by EditNetworkSetup::networkSetup(), and NetworkSettings::SLOT_EditNode().

bool NetworkSetup::isNew void   )  [inline]
 

Definition at line 534 of file netnode.h.

References IsNew.

const QString& NetworkSetup::name  )  [inline]
 

Definition at line 597 of file netnode.h.

References Name.

Referenced by ActivateProfile::ActivateProfile(), TheNSResources::addNetworkSetup(), NetworkSettingsData::collectPossible(), NetworkSettingsData::collectTriggered(), USBRun::detectState(), GPRSRun::detectState(), NetworkSettingsData::generateSettings(), NetworkSettings::NetworkSettings(), EditNetworkSetup::networkSetup(), NetworkSettings::SLOT_Down(), NetworkSettings::SLOT_EditNode(), and NetworkSettings::SLOT_Up().

int NetworkSetup::number void   )  [inline]
 

Definition at line 530 of file netnode.h.

References Number.

Referenced by NetworkSettingsData::canStart(), WLanRun::detectState(), USBRun::detectState(), LanCardRun::detectState(), save(), and NetworkSettings::SLOT_Down().

void NetworkSetup::reassign void   ) 
 

Definition at line 337 of file netnode.cpp.

Referenced by NetworkSettings::SLOT_EditNode().

void NetworkSetup::save QTextStream TS  ) 
 

Definition at line 217 of file netnode.cpp.

References Opie::Core::endl(), IsNew, Name, number(), and quote().

void NetworkSetup::setCurrentState State_t  S  )  [inline]
 

Definition at line 607 of file netnode.h.

References CurrentState.

Referenced by LanCardRun::setMyState(), and BluetoothBNEPRun::setMyState().

void NetworkSetup::setDone int  D  )  [inline]
 

Definition at line 527 of file netnode.h.

References Done.

void NetworkSetup::setModified bool  N  )  [inline]
 

Definition at line 540 of file netnode.h.

References IsModified.

Referenced by EditNetworkSetup::accept(), EditNetworkSetup::getTmpCollection(), EditNetworkSetup::networkSetup(), and ProfileRun::setMyState().

void NetworkSetup::setName const QString N  )  [inline]
 

Definition at line 602 of file netnode.h.

References Name.

Referenced by EditNetworkSetup::networkSetup().

void NetworkSetup::setNew bool  N  )  [inline]
 

Definition at line 536 of file netnode.h.

References IsNew.

void NetworkSetup::setNumber int  i  )  [inline]
 

Definition at line 532 of file netnode.h.

References Number.

Referenced by NetworkSetup().

QString NetworkSetup::setState Action_t  A,
bool  Force = 0
 

Definition at line 399 of file netnode.cpp.

References ActionName, Activate, Available, CurrentState, Deactivate, Disable, Down, Enable, getToplevel(), i, QString::isEmpty(), IsUp, Log, Off, qApp, state(), and Up.

Referenced by NetworkSettingsData::canStart(), NetworkSettings::SLOT_Disable(), NetworkSettings::SLOT_Down(), and NetworkSettings::SLOT_Up().

State_t NetworkSetup::state bool  Update = 0  ) 
 

Definition at line 364 of file netnode.cpp.

References CurrentState, Disabled, IsUp, QString::latin1(), Log, Name, StateName, Unchecked, and Unknown.

Referenced by NetworkSettingsData::canStart(), NetworkSettingsData::collectPossible(), NetworkSettingsData::collectTriggered(), setState(), NetworkSettings::SLOT_Disable(), NetworkSettings::SLOT_Down(), NetworkSettings::SLOT_RefreshStates(), NetworkSettings::SLOT_ShowNode(), NetworkSettings::SLOT_Up(), stateName(), and statePixmap().

QString NetworkSetup::stateName bool  Update = 0  )  [inline]
 

Definition at line 580 of file netnode.h.

References state(), and stateName().

QString NetworkSetup::stateName State_t   ) 
 

Definition at line 316 of file netnode.cpp.

References Available, Disabled, IsUp, Off, qApp, Unavailable, Unchecked, and Unknown.

Referenced by NetworkSettings::SLOT_ShowNode(), and stateName().

QPixmap NetworkSetup::statePixmap bool  Update = 0  )  [inline]
 

Definition at line 577 of file netnode.h.

References state(), and statePixmap().

QPixmap NetworkSetup::statePixmap State_t  S  ) 
 

Definition at line 312 of file netnode.cpp.

References NSResources, and State2PixmapTbl.

Referenced by statePixmap().

bool NetworkSetup::triggeredBy const QString Trigger  )  [inline]
 

Definition at line 621 of file netnode.h.

References getToplevel().

Referenced by NetworkSettingsData::collectTriggered().

const QStringList & NetworkSetup::triggers  ) 
 

Definition at line 345 of file netnode.cpp.

References getToplevel().


Member Data Documentation

InterfaceInfo* NetworkSetup::AssignedInterface [private]
 

Definition at line 643 of file netnode.h.

Referenced by assignedInterface(), assignInterface(), copyFrom(), and NetworkSetup().

State_t NetworkSetup::CurrentState [private]
 

Definition at line 632 of file netnode.h.

Referenced by copyFrom(), currentState(), NetworkSetup(), setCurrentState(), setState(), and state().

int NetworkSetup::Done [private]
 

Definition at line 641 of file netnode.h.

Referenced by done(), NetworkSetup(), and setDone().

int NetworkSetup::Index [private]
 

Definition at line 639 of file netnode.h.

Referenced by copyFrom(), and NetworkSetup().

bool NetworkSetup::IsModified [private]
 

Definition at line 640 of file netnode.h.

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

bool NetworkSetup::IsNew [private]
 

Definition at line 637 of file netnode.h.

Referenced by copyFrom(), isNew(), NetworkSetup(), save(), and setNew().

QString NetworkSetup::Name [private]
 

Definition at line 634 of file netnode.h.

Referenced by copyFrom(), description(), name(), NetworkSetup(), save(), setName(), and state().

long NetworkSetup::Number [private]
 

Definition at line 629 of file netnode.h.

Referenced by copyFrom(), NetworkSetup(), number(), and setNumber().


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