KSync::Engine Class Reference
This class provides the engine for the syncing process. More...
#include <engine.h>
Inheritance diagram for KSync::Engine:


Public Member Functions | |
Engine (QPtrList< ActionPart > &parts) | |
Konnector::List | konnectors () |
void | go () |
Protected Slots | |
void | slotSynceesRead (Konnector *) |
void | slotSynceeReadError (Konnector *) |
void | slotSynceesWritten (Konnector *) |
void | slotSynceeWriteError (Konnector *) |
void | slotProgress (Konnector *, const Progress &) |
void | slotError (Konnector *, const Error &) |
Protected Member Functions | |
void | logMessage (const QString &) |
void | tryExecuteActions () |
void | executeActions () |
void | tryFinish () |
void | finish () |
void | disconnectDevice (Konnector *k) |
Detailed Description
This class provides the engine for the syncing process.It's responsible for control of the action flow through Konnectors and ActionParts. It handles reading and writing of Syncees by the Konnectors and triggers the actions of the ActionParts in the correct sequence.
Definition at line 39 of file engine.h.
Member Function Documentation
|
Calling this function triggers the flow of actions specified for the current profile. The following sequence of actions takes place: 1) It is determined which Konnectors are selected by calling ActionPart::selectKonnectors(). No Konnectors are selected by default. 2) All selected Konnectors are read. 3) The actions represented by the ActionParts are tiggered in the sequence of the ActionPart list by executing ActionPart::executeAction(). 4) All selected Konnectors are written. Definition at line 67 of file engine.cpp. References KSync::Konnector::connectDevice(), KSync::ActionPart::filterKonnectors(), KSync::ActionPart::needsKonnectorRead(), and KSync::Konnector::readSyncees(). |
The documentation for this class was generated from the following files: