Qt Extended Home · Index · Classes · Headers · Overviews |
The QDSyncPlugin class represents a Qt Extended Sync Agent sync plugin. More...
#include <QDSyncPlugin>
Inherits QDPlugin.
Inherited by QDClientSyncPlugin and QDServerSyncPlugin.
The QDSyncPlugin class represents a Qt Extended Sync Agent sync plugin.
All Qt Extended Sync Agent sync plugins inherit from QDSyncPlugin but the class itself is abstract.
Construct a QDSyncPlugin with parent as the owning QObject.
Destructor.
Returns the dataset that this sync plugin supports.
See also Datasets.
This method is called when the plugin has finished it's sync. The plugin should release any resources no longer needed and indicate completion using the finishedSync() signal. This can be done asynchronously but it must be done or the sync will stall.
Note that any objects assigned to the object returned by CenterInterface::syncObject() will not be deleted until after the sync has completed.
This signal should be emitted after finishSync() is called to indicate that the plugin has cleaned up its resources.
This method is called when the plugin is about to be used. The plugin should allocate any required resources and should indicate readyness using the readyForSync() signal. This can be done asynchronously but it must be done or the sync will stall.
This signal should be emitted after prepareForSync() is called to indicate that the plugin is ready. Use false to indicate that the plugin cannot sync at this time (for example, if the data source is not available).
Returns an example xml schema for the records handled by the plugin. This schema should represent the fields handled by the plugin and is used to improve conflict detection by the merge algorithm.
This method should be implemented by plugins that do not support the entire schema.
Copyright © 2009 Trolltech | Qt Extended Sync Agent Documentation |