KSync::Konnector Class Reference
This class provides the interface for a Konnector. More...
#include <konnector.h>
Inheritance diagram for KSync::Konnector:

Public Types | |
typedef QPtrList< Konnector > | List |
Signals | |
void | synceesRead (Konnector *) |
void | synceeReadError (Konnector *) |
void | synceesWritten (Konnector *) |
void | synceeWriteError (Konnector *) |
void | sig_progress (Konnector *, const Progress &) |
void | sig_error (Konnector *, const Error &) |
void | sig_downloaded (Konnector *, const SynceeList &) |
Public Member Functions | |
Konnector (const KConfig *config) | |
virtual | ~Konnector () |
void | writeConfig (KConfig *config) |
virtual SynceeList | syncees ()=0 |
virtual bool | readSyncees ()=0 |
virtual bool | writeSyncees ()=0 |
virtual Kapabilities | capabilities ()=0 |
virtual bool | connectDevice ()=0 |
virtual bool | disconnectDevice ()=0 |
bool | isConnected () const |
virtual KonnectorInfo | info () const =0 |
virtual void | add (const QString &res) |
virtual void | remove (const QString &res) |
virtual QStringList | resources () const |
virtual QStringList | builtIn () const |
Protected Member Functions | |
void | progress (const Progress &) |
void | error (const Error &) |
Detailed Description
This class provides the interface for a Konnector.A Konnector is a class responsible for communication with a certain kind of PIM data source. It does the actual transport of the data and conversion of data is needed. It provides the PIM data in a generic way using the KSyncee class which is suitable for further processing within KDE, e.g. for syncing or being accessed by a kioslave.
Definition at line 53 of file konnector.h.
Constructor & Destructor Documentation
|
Construct Konnector from information in config file.
Definition at line 29 of file konnector.cpp. |
|
Destruct Konnector object.
Definition at line 34 of file konnector.cpp. |
Member Function Documentation
|
Write configuration to config file.
Definition at line 38 of file konnector.cpp. |
|
Get list of Syncees used by this Konnector. It will contain a Syncee for each supported data type. If readSyncees() hasn't be called before, the Syncees will be empty. Implemented in KSync::DummyKonnector, and Threaded::ThreadedPlugin. |
|
Request list of Syncee objects containing PIM data from connected entity. The response is sent with the signal synceesRead(). If an error occurs during read the signal synceeReadError() is emitted.
Implemented in KSync::AgendaPlugin, KSync::DummyKonnector, and Threaded::ThreadedPlugin. Referenced by KSync::Engine::go(). |
|
Request to write back data contained in Syncee objects hold by the connected entity. The end of the write operation is signalled with synceesWritten(). If an error occurs during write the signal synceeWriteError() is emitted.
Implemented in KSync::AgendaPlugin, KSync::DummyKonnector, and Threaded::ThreadedPlugin. |
|
Emitted when Syncee list becomes available as response to requestSyncees().
|
|
Emitted when an error occurs during read.
|
|
Emitted when Syncee list was successfully written back to connected entity.
|
|
Emitted when an error occurs during write.
|
|
Return capabilities of the Konnector.
Implemented in KSync::AgendaPlugin, KSync::DummyKonnector, and Threaded::ThreadedPlugin. |
|
Connect device. Return true, if device could be connected. Implemented in KSync::AgendaPlugin, KSync::DummyKonnector, and Threaded::ThreadedPlugin. Referenced by KSync::Engine::go(). |
|
Disconnect device.
Implemented in KSync::AgendaPlugin, KSync::DummyKonnector, and Threaded::ThreadedPlugin. |
|
Return meta information about this Konnector.
Implemented in KSync::AgendaPlugin, KSync::DummyKonnector, and Threaded::ThreadedPlugin. |
|
the Syncees that are supported builtIn
Definition at line 73 of file konnector.cpp. |
The documentation for this class was generated from the following files: