Archived:Accessing remote and local databases of a SyncML profile
Article Metadata
Compatibility
S60 3rd Edition
Article
Overview
Accessing remote and local databases of a SyncML profile
Description
To access the remote and local databases of a SyncML profile, the following code can be used.
SyncML Client API is part of Extensions plug-in package for S60 3rd Edition SDK.
RSyncMLSession syncSession;
syncSession.OpenL(); //Open sync session
RSyncMLDataSyncProfile profile;
RArray<TSmlTaskId> taskArray;
TSmlOpenMode openMode = TSmlOpenMode::ESmlReadWrite;
profile.OpenL( syncSession, profid, openMode ); //Open Profile
profile.ListTasksL( taskArray );
RSyncMLTask task;
task.OpenL( profile, taskArray[0] );
HBufC* localDataStore = task.ClientDataSource().AllocL(); // local database
HBufC* remDataStore = task.ServerDataSource().AllocL(); // remote database
task.Close();
profile.Close();
syncSession.Close();

