×
Namespaces

Variants
Actions

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
CompatibilityArticle
Created: User:Technical writer 2 (13 Jun 2007)
Last edited: hamishwillee (14 Jun 2012)

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();
        

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