kitchensync Library API Documentation

KSync::Engine Class Reference

This class provides the engine for the syncing process. More...

#include <engine.h>

Inheritance diagram for KSync::Engine:

Inheritance graph
[legend]
Collaboration diagram for KSync::Engine:

Collaboration graph
[legend]
List of all members.

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

void Engine::go  ) 
 

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:
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 25 11:19:00 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003