Virtual class that provide all the callback routines to control the synchronization.
More...
#include <Sync.hpp>
Virtual class that provide all the callback routines to control the synchronization.
OpenAB_Sync::Sync::SyncCallback::SyncCallback |
( |
| ) |
|
|
inline |
virtual OpenAB_Sync::Sync::SyncCallback::~SyncCallback |
( |
| ) |
|
|
inlinevirtual |
virtual void OpenAB_Sync::Sync::SyncCallback::metadataUpdated |
( |
const std::string & |
| ) |
|
|
inlinevirtual |
Informs that synchronization metadata has been updated.
- Parameters
-
[in] | metadata | metadata information in JSON format. |
virtual void OpenAB_Sync::Sync::SyncCallback::print |
( |
const std::string & |
msg | ) |
|
|
pure virtual |
Dummy funtion used to provide debug messages from Sync.
- Parameters
-
Informs about end of synchronization.
- Parameters
-
[in] | result | result of synchronization |
virtual void OpenAB_Sync::Sync::SyncCallback::syncPhaseFinished |
( |
const std::string & |
name | ) |
|
|
pure virtual |
Informs about end of synchronization phase.
- Parameters
-
virtual void OpenAB_Sync::Sync::SyncCallback::syncPhaseStarted |
( |
const std::string & |
name | ) |
|
|
pure virtual |
Informs about start of next synchronization phase.
- Parameters
-
virtual void OpenAB_Sync::Sync::SyncCallback::syncProgress |
( |
const std::string & |
phaseName, |
|
|
double |
progress, |
|
|
unsigned int |
numProcessedItems |
|
) |
| |
|
pure virtual |
Informs about progress of synchronization.
- Parameters
-
[in] | phaseName | name of current synchronization phase |
[in] | progress | percentage progress of whole synchronization process (including all phases). |
The documentation for this class was generated from the following file:
- /home/one/open-address-book/src/plugin/sync/Sync.hpp