Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

How to synchronize in 3rd Edition

From Wiki
Jump to: navigation, search
Article Metadata
Code Example
Source file:
Created: kiranmudiyam (30 Oct 2007)
Last edited: hamishwillee (25 Jul 2012)
SyncML Client API is SyncML server’s client side API. This provides services to synchronize data by specifying the profile to be used for synchronizing.

Example code

Header files

#include <syncmlclient.h>
#include <syncmlclientds.h>
#include <syncmldef.h>

Libraries Used



WriteDeviceData ReadDeviceData ReadUserData WriteUserData LocalServices NetworkServices
// Open syncML session
RSyncMLSession syncMLSession;
// Need instance of data sync class
RSyncMLDataSyncJob job;
// For creating a data sync job, need to specify id of the profile used for synchronization
// If profile selected is PCSuite, it searches for the bluetooth device to sync with
job.CreateL( syncMLSession,aActiveProfile);
// close the job
// close the syncML session
// Synchronization with specific sync type
job.CreateL( syncMLSession,aActiveProfile,ESmlOneWayFromClient);
// To stop synchronization job

Example Project

The following is an example application on data synchronization which fetches the number of DS profiles avilable in the device, provides options to select one of the available profile and then start synchronization using the selected profile.

Note: This application is tested in N95 with PCSuite DS profile

Internal links

SyncML Client API

How to create SyncML Data Synchronization profile

This page was last modified on 25 July 2012, at 23:05.
38 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.