×
Namespaces

Variants
Actions

How to synchronize in 3rd Edition

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Code Example
Source file: Media:DataSync.zip
Article
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

syncmlclientapi.lib

Capabilities

WriteDeviceData ReadDeviceData ReadUserData WriteUserData LocalServices NetworkServices
// Open syncML session
RSyncMLSession syncMLSession;
syncMLSession.OpenL();
// 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
job.Close();
// close the syncML session
syncMLSession.Close();
// Synchronization with specific sync type
job.CreateL( syncMLSession,aActiveProfile,ESmlOneWayFromClient);
// To stop synchronization job
job.StopL();

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.

File:DataSync.zip

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.
33 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.

×