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

TheNSResources Class Reference

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

Collaboration diagram for TheNSResources:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TheNSResources (void)
 ~TheNSResources ()
void busy (bool B)
Systemsystem ()
int assignNetworkSetupNumber (void)
QPixmap getPixmap (const QString &Name)
Name2NetNode_tnetNodes (void)
bool netNodeExists (const QString &X)
ANetNodefindNetNode (const QString &N)
void addNodeType (const QString &ID, const QString &LongName, const QString &Description)
Name2SystemFile_tsystemFiles (void)
void addSystemFile (const QString &ID, const QString &P, bool KDI)
ANetNodeInstancecreateNodeInstance (const QString &S)
Name2Instance_tnetNodeInstances (void)
void addNodeInstance (ANetNodeInstance *I)
void removeNodeInstance (const QString &N)
ANetNodeInstancefindNodeInstance (const QString &S)
const QStringnetNode2Name (const char *Type)
const QStringnetNode2Description (const char *Type)
void addNetworkSetup (NetworkSetup *NC, bool Dangling)
void removeNetworkSetup (const QString &N)
NetworkSetupfindNetworkSetup (const QString &N)
NetworkSetupgetNetworkSetup (int nr)
Name2NetworkSetup_tnetworkSetups (void)
Name2NetworkSetup_tdanglingNetworkSetups (void)
bool userKnown (void)
CurrentQPEUsercurrentUser (void)

Private Member Functions

void detectCurrentUser (void)
QString tr (const char *path)
void findAvailableNetNodes (void)

Private Attributes

QMap< QString, QStringNodeTypeNameMap
QMap< QString, QStringNodeTypeDescriptionMap
Name2NetworkSetup_t NetworkSetupsMap
Name2NetworkSetup_t DanglingNetworkSetupsMap
SystemTheSystem
Name2SystemFile_t SystemFiles
Name2NetNode_t AllNodeTypes
Name2Instance_t AllNodes
CurrentQPEUser CurrentUser
Opie::Core::OPluginLoaderPlugins
Opie::Core::OPluginManagerPluginManager

Constructor & Destructor Documentation

TheNSResources::TheNSResources void   ) 
 

Definition at line 27 of file resources.cpp.

References addNodeType(), AllNodeTypes, QDictIterator< type >::current(), detectCurrentUser(), findAvailableNetNodes(), Plugins, TheSystem, and tr().

TheNSResources::~TheNSResources  ) 
 

Definition at line 95 of file resources.cpp.

References PluginManager, Plugins, and TheSystem.


Member Function Documentation

void TheNSResources::addNetworkSetup NetworkSetup NC,
bool  Dangling
 

Definition at line 250 of file resources.cpp.

References addNodeInstance(), DanglingNetworkSetupsMap, findNodeInstance(), QDict< type >::insert(), Log, NetworkSetup::name(), and NetworkSetupsMap.

void TheNSResources::addNodeInstance ANetNodeInstance I  )  [inline]
 

Definition at line 96 of file resources.h.

References AllNodes, and QDict< type >::insert().

Referenced by addNetworkSetup().

void TheNSResources::addNodeType const QString ID,
const QString LongName,
const QString Description
 

Definition at line 105 of file resources.cpp.

References QMap< Key, T >::insert(), QMap< Key, T >::isEmpty(), NodeTypeDescriptionMap, and NodeTypeNameMap.

Referenced by TheNSResources().

void TheNSResources::addSystemFile const QString ID,
const QString P,
bool  KDI
 

Definition at line 114 of file resources.cpp.

References QDict< type >::find(), QDict< type >::insert(), and SystemFiles.

int TheNSResources::assignNetworkSetupNumber void   ) 
 

Definition at line 207 of file resources.cpp.

References QDictIterator< type >::current(), Log, and NetworkSetupsMap.

void TheNSResources::busy bool  B  ) 
 

Definition at line 123 of file resources.cpp.

ANetNodeInstance* TheNSResources::createNodeInstance const QString S  )  [inline]
 

Definition at line 80 of file resources.h.

References ANetNode::createInstance(), findNetNode(), ANetNodeInstance::initialize(), QString::latin1(), and Log.

CurrentQPEUser& TheNSResources::currentUser void   )  [inline]
 

Definition at line 117 of file resources.h.

References CurrentUser.

Name2NetworkSetup_t& TheNSResources::danglingNetworkSetups void   )  [inline]
 

Definition at line 112 of file resources.h.

References DanglingNetworkSetupsMap.

void TheNSResources::detectCurrentUser void   )  [private]
 

Definition at line 341 of file resources.cpp.

References QString::append(), QValueList< T >::begin(), CurrentUser, QDir::Dirs, QValueList< T >::end(), QDir::entryList(), CurrentQPEUser::EnvList, CurrentQPEUser::Gid, CurrentQPEUser::HomeDir, QString::isEmpty(), QString::latin1(), EnvVars::Len, Log, QRegExp::match(), EnvVars::Name, QDir::path(), QFileInfo::readLink(), S, QFileInfo::setFile(), QString::sprintf(), CurrentQPEUser::Uid, CurrentQPEUser::UserName, and X.

Referenced by TheNSResources().

void TheNSResources::findAvailableNetNodes void   )  [private]
 

Definition at line 134 of file resources.cpp.

References AllNodeTypes, Opie::Core::OPluginManager::crashedPlugin(), NetNodeInterface::create_plugin(), IID_NetworkSettings2, QDict< type >::insert(), Opie::Core::OPluginManager::load(), Log, PluginManager, Plugins, qApp, QPEApplication::qpeDir(), Opie::Core::OGenericPluginLoader::setAutoDelete(), and tr().

Referenced by TheNSResources().

ANetNode* TheNSResources::findNetNode const QString N  )  [inline]
 

Definition at line 66 of file resources.h.

References AllNodeTypes, and QDict< type >::find().

Referenced by createNodeInstance().

NetworkSetup * TheNSResources::findNetworkSetup const QString N  ) 
 

Definition at line 291 of file resources.cpp.

References NetworkSetupsMap.

Referenced by removeNetworkSetup().

ANetNodeInstance* TheNSResources::findNodeInstance const QString S  )  [inline]
 

Definition at line 100 of file resources.h.

References AllNodes.

Referenced by addNetworkSetup().

NetworkSetup * TheNSResources::getNetworkSetup int  nr  ) 
 

Definition at line 295 of file resources.cpp.

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

QPixmap TheNSResources::getPixmap const QString Name  ) 
 

Definition at line 227 of file resources.cpp.

References QString::latin1(), Resource::loadPixmap(), Log, P, and S.

const QString & TheNSResources::netNode2Description const char *  Type  ) 
 

Definition at line 246 of file resources.cpp.

References NodeTypeDescriptionMap.

const QString & TheNSResources::netNode2Name const char *  Type  ) 
 

Definition at line 242 of file resources.cpp.

References NodeTypeNameMap.

bool TheNSResources::netNodeExists const QString X  )  [inline]
 

Definition at line 64 of file resources.h.

References AllNodeTypes, and QDict< type >::find().

Name2Instance_t& TheNSResources::netNodeInstances void   )  [inline]
 

Definition at line 94 of file resources.h.

References AllNodes.

Name2NetNode_t& TheNSResources::netNodes void   )  [inline]
 

Definition at line 62 of file resources.h.

References AllNodeTypes.

Name2NetworkSetup_t& TheNSResources::networkSetups void   )  [inline]
 

Definition at line 110 of file resources.h.

References NetworkSetupsMap.

void TheNSResources::removeNetworkSetup const QString N  ) 
 

Definition at line 272 of file resources.cpp.

References DanglingNetworkSetupsMap, QDict< type >::find(), findNetworkSetup(), NetworkSetupsMap, QDict< type >::remove(), and removeNodeInstance().

void TheNSResources::removeNodeInstance const QString N  )  [inline]
 

Definition at line 98 of file resources.h.

References AllNodes, and QDict< type >::remove().

Referenced by removeNetworkSetup().

System& TheNSResources::system  )  [inline]
 

Definition at line 56 of file resources.h.

References TheSystem.

Name2SystemFile_t& TheNSResources::systemFiles void   )  [inline]
 

Definition at line 74 of file resources.h.

References SystemFiles.

QString TheNSResources::tr const char *  path  )  [private]
 

Definition at line 238 of file resources.cpp.

References qApp.

Referenced by findAvailableNetNodes(), and TheNSResources().

bool TheNSResources::userKnown void   )  [inline]
 

Definition at line 115 of file resources.h.

References CurrentUser, and CurrentQPEUser::known().


Member Data Documentation

Name2Instance_t TheNSResources::AllNodes [private]
 

Definition at line 141 of file resources.h.

Referenced by addNodeInstance(), findNodeInstance(), netNodeInstances(), and removeNodeInstance().

Name2NetNode_t TheNSResources::AllNodeTypes [private]
 

Definition at line 138 of file resources.h.

Referenced by findAvailableNetNodes(), findNetNode(), netNodeExists(), netNodes(), and TheNSResources().

CurrentQPEUser TheNSResources::CurrentUser [private]
 

Definition at line 143 of file resources.h.

Referenced by currentUser(), detectCurrentUser(), and userKnown().

Name2NetworkSetup_t TheNSResources::DanglingNetworkSetupsMap [private]
 

Definition at line 133 of file resources.h.

Referenced by addNetworkSetup(), danglingNetworkSetups(), and removeNetworkSetup().

Name2NetworkSetup_t TheNSResources::NetworkSetupsMap [private]
 

Definition at line 130 of file resources.h.

Referenced by addNetworkSetup(), assignNetworkSetupNumber(), findNetworkSetup(), getNetworkSetup(), networkSetups(), and removeNetworkSetup().

QMap< QString, QString> TheNSResources::NodeTypeDescriptionMap [private]
 

Definition at line 128 of file resources.h.

Referenced by addNodeType(), and netNode2Description().

QMap< QString, QString> TheNSResources::NodeTypeNameMap [private]
 

Definition at line 127 of file resources.h.

Referenced by addNodeType(), and netNode2Name().

Opie::Core::OPluginManager* TheNSResources::PluginManager [private]
 

Definition at line 146 of file resources.h.

Referenced by findAvailableNetNodes(), and ~TheNSResources().

Opie::Core::OPluginLoader* TheNSResources::Plugins [private]
 

Definition at line 145 of file resources.h.

Referenced by findAvailableNetNodes(), TheNSResources(), and ~TheNSResources().

Name2SystemFile_t TheNSResources::SystemFiles [private]
 

Definition at line 135 of file resources.h.

Referenced by addSystemFile(), and systemFiles().

System* TheNSResources::TheSystem [private]
 

Definition at line 134 of file resources.h.

Referenced by system(), TheNSResources(), and ~TheNSResources().


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