Archived:Accessing remote and local databases of a SyncML profile

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Created: User:Technical writer 2 (13 Jun 2007)
Last edited: hamishwillee (14 Jun 2012)


Accessing remote and local databases of a SyncML profile


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

This page was last modified on 14 June 2012, at 07:40.
40 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.