kmobiletools
KMobileTools::DeviceLoader Class Reference
#include <deviceloader.h>

Detailed Description
Definition at line 35 of file deviceloader.h.
Public Slots | |
| bool | loadDevice (const QString &deviceName, const QString &engineName, bool loadServices=true) |
| bool | unloadDevice (const QString &deviceName, bool unloadServices=true) |
Signals | |
| void | aboutToUnloadDevice (const QString &deviceName) |
| void | deviceLoaded (const QString &) |
| void | deviceUnloaded (const QString &) |
Public Member Functions | |
| EngineXP * | engine (const QString &deviceName) const |
| KPluginInfo | engineInformation (const QString &deviceName) const |
| QStringList | loadedDevices () const |
| ~DeviceLoader () | |
Static Public Member Functions | |
| static DeviceLoader * | instance () |
Constructor & Destructor Documentation
| KMobileTools::DeviceLoader::~DeviceLoader | ( | ) |
Definition at line 62 of file deviceloader.cpp.
Member Function Documentation
| void KMobileTools::DeviceLoader::aboutToUnloadDevice | ( | const QString & | deviceName | ) | [signal] |
| void KMobileTools::DeviceLoader::deviceLoaded | ( | const QString & | ) | [signal] |
This signal is emitted when the device was successfully loaded.
| void KMobileTools::DeviceLoader::deviceUnloaded | ( | const QString & | ) | [signal] |
This signal is emitted when the device was successfully unloaded.
Returns the engine object associated with the given deviceName.
- Parameters:
-
deviceName the device name
- Returns:
- a pointer to the engine if successful, else null
Definition at line 140 of file deviceloader.cpp.
| KPluginInfo KMobileTools::DeviceLoader::engineInformation | ( | const QString & | deviceName | ) | const |
Returns information about the engine object associated with the device with given deviceName.
- Parameters:
-
deviceName the device name
- Returns:
- information about the engine
Definition at line 147 of file deviceloader.cpp.
| DeviceLoader * KMobileTools::DeviceLoader::instance | ( | ) | [static] |
Returns a DeviceLoader instance.
- Returns:
- a device loader instance
Definition at line 56 of file deviceloader.cpp.
| bool KMobileTools::DeviceLoader::loadDevice | ( | const QString & | deviceName, | |
| const QString & | engineName, | |||
| bool | loadServices = true | |||
| ) | [slot] |
Tries to load an engine that gets associated with a given device name.
- Parameters:
-
deviceName a unique device name engineName the engine to load loadServices if true, all services supported by the given engine will be loaded
- Returns:
- true if the device was successfully loaded
Definition at line 74 of file deviceloader.cpp.
| QStringList KMobileTools::DeviceLoader::loadedDevices | ( | ) | const |
Returns a list of loaded devices.
- Returns:
- a list of loaded devices
Definition at line 154 of file deviceloader.cpp.
| bool KMobileTools::DeviceLoader::unloadDevice | ( | const QString & | deviceName, | |
| bool | unloadServices = true | |||
| ) | [slot] |
Tries to unload the device with the given deviceName.
- Parameters:
-
deviceName the device name unloadServices if true, services associated with the device will be unloaded
- Returns:
- true if the device was successfully unloaded
Definition at line 123 of file deviceloader.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference