kitchensync

KSync::Engine Class Reference

#include <engine.h>

List of all members.


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 40 of file kitchensync/lib/engine.h.


Signals

void doneSync ()
void error (const QString &)
void doneSync ()

Public Member Functions

 Engine (QPtrList< ActionPart > &parts)
 ~Engine ()
Konnector::List konnectors ()
void go ()
 Engine ()
void go (KonnectorPair *pair)
void setResolveStrategy (int strategy)

Static Public Member Functions

static QString progressId ()

Protected Slots

void slotSynceesRead (KSync::Konnector *)
void slotSynceeReadError (KSync::Konnector *)
void slotSynceesWritten (KSync::Konnector *)
void slotSynceeWriteError (KSync::Konnector *)
void slotSynceesRead (KSync::Konnector *)
void slotSynceeReadError (KSync::Konnector *)
void slotSynceesWritten (KSync::Konnector *)
void slotSynceeWriteError (KSync::Konnector *)

Protected Member Functions

void logMessage (const QString &)
void tryExecuteActions ()
void executeActions ()
void tryFinish ()
void finish ()
void disconnectDevice (Konnector *k)
void logMessage (const QString &)
void logError (const QString &)
void tryExecuteActions ()
void executeActions ()
void tryFinish ()
void finish ()
void disconnectDevice (Konnector *k)

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 57 of file kitchensync/lib/engine.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys