27#include "BTConnection.h"
28#include "SyncMLStorageProvider.h"
29#include <ClientPlugin.h>
30#include <SyncPluginLoader.h>
31#include <SyncResults.h>
32#include <buteosyncml5/SyncAgent.h>
34#include <Accounts/Account>
35#include <Accounts/Service>
36#include <Accounts/Manager>
38#include <IdentityInfo>
65 const Buteo::SyncProfile& aProfile,
66 Buteo::PluginCbInterface *aCbInterface );
84 virtual void abortSync(Sync::SyncStatus aStatus = Sync::SYNC_ABORTED);
127 DataSync::ModifiedDatabase aModifiedDatabase,
128 QString aLocalDatabase,
130 int aCommittedItems );
148 bool initTransport();
150 void closeTransport();
160 bool initObexTransport();
166 bool initHttpTransport();
173 DataSync::SyncDirection resolveSyncDirection(
174 const DataSync::SyncInitiator& aInitiator );
181 DataSync::ConflictResolutionPolicy resolveConflictResolutionPolicy(
182 const DataSync::SyncInitiator& aInitiator );
184 void generateResults(
bool aSuccessful );
186 Accounts::AccountId accountId();
190 void getCredentials();
192 bool useAccounts()
const;
194 QMap<QString,QString> accountSettings()
const;
199 QString toText(
const DataSync::SyncState& aState );
202 QMap<QString, QString> iProperties;
204 DataSync::SyncAgent* iAgent;
207 DataSync::Transport* iTransport;
209 DataSync::SyncAgentConfig* iConfig;
211 Buteo::SyncResults iResults;
215 quint32 iCommittedItems;
217 Accounts::Account* iAccount;
219 SignOn::AuthSession* iAuthSession;
225 Q_PLUGIN_METADATA(IID
"com.buteo.plugins.sync.SyncMLClientLoader")
226 Q_INTERFACES(Buteo::SyncPluginLoader)
237 const Buteo::SyncProfile& profile,
238 Buteo::PluginCbInterface* cbInterface)
override;
Class for creating a connection to another device over Bluetooth for libmeegosyncml.
Definition clientplugins/syncmlclient/BTConnection.h:45
Definition SyncMLClient.h:223
Buteo::ClientPlugin * createClientPlugin(const QString &pluginName, const Buteo::SyncProfile &profile, Buteo::PluginCbInterface *cbInterface) override
Creates SyncML client plugin.
Implementation for SyncML client plugin.
Definition SyncMLClient.h:54
SyncMLClient(const QString &aPluginName, const Buteo::SyncProfile &aProfile, Buteo::PluginCbInterface *aCbInterface)
Constructor.
virtual void abortSync(Sync::SyncStatus aStatus=Sync::SYNC_ABORTED)
virtual Buteo::SyncResults getSyncResults() const
void receiveItemProcessed(DataSync::ModificationType aModificationType, DataSync::ModifiedDatabase aModifiedDatabase, QString aLocalDatabase, QString aMimeType, int aCommittedItems)
slot for DataSync::SyncAgent::itemProcessed signal
void storageAccquired(QString aMimeType)
slot for DataSync::SyncAgent::storageAcquired signal
void credentialsError(const SignOn::Error &error)
Error slot for response on call for retrieving credentials.
void credentialsResponse(const SignOn::SessionData &data)
Slot for response on call for retrieving credentials.
void syncFinished(DataSync::SyncState aState)
sync Finished slot for DataSync::SyncAgent::syncFinished signal
virtual void connectivityStateChanged(Sync::ConnectivityType aType, bool aState)
virtual ~SyncMLClient()
Destructor.
void syncStateChanged(DataSync::SyncState aState)
state change slot for DataSync::SyncAgent::stateChanged signal
Module that provides storages to libmeegosyncml in syncml client/server plugins.
Definition debian/tmp/usr/include/syncmlcommon/SyncMLStorageProvider.h:44