Qt Extended Home · Index · Classes · Headers · Overviews |
The QDClientSyncPlugin class represents a sync client. More...
#include <QDClientSyncPlugin>
Inherits QDSyncPlugin.
The QDClientSyncPlugin class represents a sync client.
The sync implementation uses both client and server plugins. Client plugins represent a dataset on a Qt Extended device and are expected to handle the entire sync protocol. If you do not know what datasets will be supported at compile time, use QDClientSyncPluginFactory instead.
Note that this class is designed to be remoted. The methods can return immediately as status is returned via signals.
Construct a QDClientSyncPlugin with parent as the owning QObject.
Destructor.
Emit this signal when all changes have been sent.
Emit this signal to send an error. The sync will be aborted.
Emit this signal to set the client's identity to id.
Emit this signal to set the client's sync anchors to clientLastSync and clientNextSync. Note that clientLastSync and clientNextSync should be in UTC time.
Emit this signal to set the client's version to the values major, minor and patch.
Emit this signal to send a new record.
See also replaceClientRecord(), removeClientRecord(), and clientEnd().
Create the item specified in record. Emit mappedId() so that the server record can be matched to the client record.
Emit this signal in response to createServerRecord(). It maps server id serverId to client id clientId.
Emit this signal to send a delete of the record with client id clientId.
See also createClientRecord(), replaceClientRecord(), and clientEnd().
Remove the item indicated by client id clientId.
Emit this signal to send a modified record.
See also createClientRecord(), removeClientRecord(), and clientEnd().
Update the item specified in record.
Perform a slow sync. All changes should be sent.
Perform a two-way (fast) sync. Only changes since the last sync should be sent.
The server has finished sending changes.
The server has encountered an error. The sync will be aborted.
The server's identity is server.
The server's sync anchors are serverLastSync and serverNextSync. Note that serverLastSync and serverNextSync are in UTC time.
The server has requested a sync with datasource source.
The server's version is equivalent to the values major, minor and patch.
Copyright © 2009 Trolltech | Qt Extended Sync Agent Documentation |