OpenAB
1.0.1
|
Sync Class providing all the Sync controls. More...
#include <TwoWaySync.hpp>
Public Member Functions | |
TwoWaySync (OpenAB_Sync_params &) | |
~TwoWaySync () | |
enum OpenAB_Sync::Sync::eInit | init () |
Initializes Sync. More... | |
void | synchronize () |
Synchronizes data. More... | |
enum OpenAB_Sync::Sync::eCancel | cancel () |
Cancels synchronization. More... | |
enum OpenAB_Sync::Sync::eSuspend | suspend () |
Suspends synchronization (if used OpenAB_Source::Source plugin supports it) More... | |
enum OpenAB_Sync::Sync::eResume | resume () |
Resumes synchronization (if used OpenAB_Source::Source plugin supports it) More... | |
void | getStats (unsigned int &locallyAdded, unsigned int &locallyModified, unsigned int &locallyRemoved, unsigned int &remotelyAdded, unsigned int &remotelyModified, unsigned int &remotelyRemoved) |
Returns statistics of synchronization. More... | |
Public Member Functions inherited from OpenAB_Sync::Sync | |
Sync () | |
Constructor. More... | |
virtual | ~Sync () |
Destructor, virtual by default. More... | |
bool | addPhase (const std::string &name, const std::vector< std::string > &ignoreFields) |
Adds new phase to synchronization process. More... | |
void | clearPhases () |
Removes all previously defined synchronization phases. More... | |
Additional Inherited Members | |
Public Types inherited from OpenAB_Sync::Sync | |
enum | eInit { eInitOk, eInitFail } |
enum | eSync { eSyncOkWithDataChange, eSyncOkWithoutDataChange, eSyncCancelled, eSyncAlreadyInProgress, eSyncFail } |
enum | eCancel { eCancelOk, eCancelNotInProgress, eCancelFail } |
enum | eSuspend { eSuspendOk, eSuspendNotInProgress, eSuspendFail } |
enum | eResume { eResumeOk, eResumeNotSuspended, eResumeFail } |
Protected Attributes inherited from OpenAB_Sync::Sync | |
std::vector< Phase > | phases |
Sync Class providing all the Sync controls.
TwoWaySync::TwoWaySync | ( | OpenAB_Sync_params & | p | ) |
TwoWaySync::~TwoWaySync | ( | ) |
|
virtual |
|
virtual |
Returns statistics of synchronization.
[out] | locallyAdded | number of items added during synchronization in local storage |
[out] | locallyModified | number of items modified during synchronization in local storage |
[out] | locallyRemoved | number of items removed during synchronization from local storage |
[out] | remotelyAdded | number of items added during synchronization in remote storage |
[out] | remotelyModified | number of items modified during synchronization in remote storage |
[out] | remotyleRemoved | number of items removed during synchronization from remote storage |
Implements OpenAB_Sync::Sync.
|
virtual |
|
virtual |
Resumes synchronization (if used OpenAB_Source::Source plugin supports it)
Implements OpenAB_Sync::Sync.
|
virtual |
Suspends synchronization (if used OpenAB_Source::Source plugin supports it)
Implements OpenAB_Sync::Sync.
|
virtual |
Synchronizes data.
Implements OpenAB_Sync::Sync.