kmobiletools
KMobileTools::EngineXP Class Reference
#include <enginexp.h>

Detailed Description
This is KMobileTools' engine object.You can use it to create a backend for KMobileTools. To do so, create a class that derives from this object and derive from one or many interfaces from KMobileTools::Ifaces.
change the object name back to Engine as soon as the transition to this object is made ;-) Sorry for the name, it was the first idea.
Definition at line 42 of file enginexp.h.
Public Slots | |
| virtual void | connectDevice ()=0 |
| virtual void | disconnectDevice ()=0 |
Signals | |
| void | deviceConnected () |
| void | deviceDisconnected () |
Public Member Functions | |
| bool | connected () const |
| QString | deviceName () const |
| EngineXP (QObject *parent, const QString &deviceName) | |
| bool | implements (const QString &interfaceName) |
| virtual | ~EngineXP () |
Constructor & Destructor Documentation
Constructs a new Engine object with the given parent.
- Parameters:
-
parent the object's parent deviceName the device name
Definition at line 24 of file enginexp.cpp.
| KMobileTools::EngineXP::~EngineXP | ( | ) | [virtual] |
Member Function Documentation
| virtual void KMobileTools::EngineXP::connectDevice | ( | ) | [pure virtual, slot] |
Initializes the engine and the communication with the device with given deviceName.
Implemented in FakeEngine.
| bool KMobileTools::EngineXP::connected | ( | ) | const |
Returns whether the engine is initialized and connected.
- Returns:
- whether the engine is initialized
Definition at line 47 of file enginexp.cpp.
| void KMobileTools::EngineXP::deviceConnected | ( | ) | [signal] |
This signal is emitted when the engine was initialized.
| void KMobileTools::EngineXP::deviceDisconnected | ( | ) | [signal] |
This signal is emitted when the engine has successfully shut down.
| QString KMobileTools::EngineXP::deviceName | ( | ) | const |
Returns the name of the device the engine is associated with.
- Returns:
- the device name
Definition at line 59 of file enginexp.cpp.
| virtual void KMobileTools::EngineXP::disconnectDevice | ( | ) | [pure virtual, slot] |
| bool KMobileTools::EngineXP::implements | ( | const QString & | interfaceName | ) |
Checks if the engine implements a given interface.
- Parameters:
-
interfaceName the plain name of the interface, e.g. "Status"
- Returns:
- true, if the engine implements the given interface
Definition at line 39 of file enginexp.cpp.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference