syncer.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
#ifndef KSYNC_SYNCER_H
00023
#define KSYNC_SYNCER_H
00024
00025
#include <qstring.h>
00026
#include <qptrlist.h>
00027
00028
namespace KSync {
00029
00030
class SyncAlgorithm;
00031
class SyncUi;
00032
class Syncee;
00033
00054 class Syncer
00055 {
00056
public:
00063
Syncer(
SyncUi *ui = 0,
SyncAlgorithm *algorithm = 0 );
00064
virtual ~
Syncer();
00065
00069
void setSyncAlgorithm(
SyncAlgorithm * );
00070
00074
void setSyncUi(
SyncUi * );
00075
00079
void addSyncee(
Syncee * );
00080
00084
void clear();
00085
00093
void sync();
00094
00103
void syncAllToTarget(
Syncee *target,
bool writeback =
false);
00104
00113
void syncToTarget(
Syncee *syncee,
Syncee *target,
bool override =
false );
00114
00115
private:
00116
QPtrList<Syncee> mSyncees;
00117
00118
SyncUi *mUi;
00119
SyncAlgorithm *mAlgorithm;
00120
00121
bool mOwnUi;
00122
bool mOwnAlgorithm;
00123
00124
class SyncerPrivate;
00125 SyncerPrivate *d;
00126 };
00127
00128 }
00129
00130
#endif
This file is part of the documentation for kitchensync Library Version 3.3.0.