Qt Extended Home · Index · Classes · Headers · Overviews |
The Qtopia4SyncPlugin class handles synchronization of a single dataset. More...
#include <Qtopia4SyncPlugin>
Inherits QObject.
The Qtopia4SyncPlugin class handles synchronization of a single dataset.
This class is called to fetch and apply changes. It is controlled by Qtopia4Sync, which remotes the API over QCop messages.
Here is a message flow diagram showing how the class is used.
See also Qtopia4SyncPluginFactory and Add a new device plugin.
Construct a Qtopia4SyncPlugin with the specified parent.
Destructor.
Abort the transaction started with beginTransaction().
Begin a transaction. The timestamp may be ignored.
See also abortTransaction() and commitTransaction().
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.
Commit the transaction started with beginTransaction().
Emit this signal in response to fetchChangesSince() to send a new record.
See also replaceClientRecord(), removeClientRecord(), and clientChangesCompleted().
Create the item specified in record. Emit mappedId() so that the server record can be matched to the client record.
Returns the dataset that this plugin handles.
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 createClientRecord(), replaceClientRecord(), removeClientRecord(), and clientChangesCompleted().
Emit this signal in response to createServerRecord(). It maps server id serverId to client id clientId.
Emit this signal in response to fetchChangesSince() to send a delete of identifier.
See also createClientRecord(), replaceClientRecord(), and clientChangesCompleted().
Remove the item indicated by identifier.
Emit this signal in response to fetchChangesSince() to send a modified record.
See also createClientRecord(), removeClientRecord(), and clientChangesCompleted().
Update the item specified in record.
Copyright © 2009 Trolltech | Qt Extended Sync Agent Documentation |