Qt Extended Home · Index · Classes · Headers · Overviews |
The QDServerSyncPlugin class handles a single dataset on the desktop. More...
#include <QDServerSyncPlugin>
Inherits QDSyncPlugin.
The QDServerSyncPlugin class handles a single dataset on the desktop.
This class is implemented to add support for a new dataset to Qt Extended Sync Agent. It is called by the Sync Manager. Note that the sync process is designed to be asynchronous. The methods of this class can return immediately as status is returned via signals.
Here is an example of how the plugin is used by the Sync Manager.
See also Add a new desktop plugin.
Construct a QDServerSyncPlugin with parent as the owning QObject.
Destructor.
Abort the transaction started with beginTransaction().
Begin a transaction. The timestamp may be ignored.
See also abortTransaction() and commitTransaction().
Commit the transaction started with beginTransaction().
Create the item specified in record. Emit mappedId() so that the client record can be matched to the server record.
Emit this signal in response to fetchChangesSince() to send a new record.
See also replaceServerRecord(), removeServerRecord(), and serverChangesCompleted().
Fetch changes since timestamp. Data and progress should be reported by emitting signals. This funtion can return before the fetching is completed.
Note that timestamp is in UTC time.
See also createServerRecord(), replaceServerRecord(), removeServerRecord(), and serverChangesCompleted().
Emit this signal in response to createClientRecord(). It maps client id clientId to server id serverId.
Remove the item indicated by identifier.
Emit this signal in response to fetchChangesSince() to send a delete of identifier.
See also createServerRecord(), replaceServerRecord(), and serverChangesCompleted().
Update the item specified in record.
Emit this signal in response to fetchChangesSince() to send a modified record.
See also createServerRecord(), removeServerRecord(), and serverChangesCompleted().
Emit this signal in response to fetchChangesSince() when all changes have been reported.
Emit this signal any time if an error is encountered and the sync will be aborted.
Copyright © 2009 Trolltech | Qt Extended Sync Agent Documentation |