kmobiletools
KMobileTools::Config Class Reference
#include <config.h>
Detailed Description
Use this class to access any configuration option.
Definition at line 35 of file config.h.
Public Member Functions | |
| void | addDevice (const QString &name, const QString &engine) |
| QStringList | deviceList () const |
| QString | engine (const QString &deviceName) |
| void | removeDevice (const QString &name) |
| ~Config () | |
Static Public Member Functions | |
| static Config * | instance () |
Constructor & Destructor Documentation
| KMobileTools::Config::~Config | ( | ) |
Definition at line 88 of file config.cpp.
Member Function Documentation
Adds a new device with given name and associated engine to the configuration.
- Parameters:
-
name the device name engine the engine name
- Todo:
- add call to error handler here
Definition at line 98 of file config.cpp.
| QStringList KMobileTools::Config::deviceList | ( | ) | const |
Returns the list of configured devices.
- Returns:
- the device list
Definition at line 143 of file config.cpp.
Returns the engine associated with the given deviceName.
- Parameters:
-
deviceName the device name
- Returns:
- the engine name or an empty string if not available
Definition at line 147 of file config.cpp.
| Config * KMobileTools::Config::instance | ( | ) | [static] |
Returns a configuration instance.
- Returns:
- a config instance
Definition at line 93 of file config.cpp.
| void KMobileTools::Config::removeDevice | ( | const QString & | name | ) |
Removes the device with given name from the configuration.
- Parameters:
-
name the device name
- Todo:
- add call to error handler here
Definition at line 120 of file config.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference