CSyncService Class Reference

class CSyncService : public CBase

CSyncService

Higher level client side service class

syncservice.lib
Since
Series 60 3.0

Inherits from

Constructor & Destructor Documentation

CSyncService()

CSyncService()[private]

C++ default constructor.

~CSyncService()

~CSyncService()[virtual]

Destructor.

Member Functions Documentation

ConstructL(MAknServerAppExitObserver *, TUint)

voidConstructL(MAknServerAppExitObserver *aObserver,
TUintaServiceId
)[private]

2nd phase constructor First calls Discover to find the right application with aParams. Then calls iService to connect to right application. Creates an instance of CApaServerAppExitMonitor Creates an instance of CSyncService. Sets itself as observer for the service.

Parameters

MAknServerAppExitObserver * aObserverpointer of MAknServerAppExitObserver to be passed to iMonitor
TUint aServiceIdparameters for the service so that it knows which application to start

DiscoverL(TUint)

TUid DiscoverL(TUintaServiceId)[private]

DiscoverL Finds the right application id to be started and returns it. Connects RApaLsSession and initializes it with GetServerApps command. Then gets all the services that implement the service by using GetServiceImplementationsLC. Calls TryMatchL for each service and if there's a match, the appId is returned. If no implementation is found, 0 is returned.

Parameters

TUint aServiceIdparameters for the service so that it knows which application to start

EnableProgressNoteL(TBool)

IMPORT_C voidEnableProgressNoteL(TBoolaEnabled)

Sends a command to the sync or devman application to indicate that the progress note should be enabled or disabled.

Parameters

TBool aEnabledShould the progress not be shown.

NewL(MAknServerAppExitObserver *, TUint)

IMPORT_C CSyncService *NewL(MAknServerAppExitObserver *aObserver,
TUintaServiceId
)[static]

Two-phased constructor.

Parameters

MAknServerAppExitObserver * aObserver
TUint aServiceId

StartSyncL(TSyncServiceParam)

IMPORT_C TUidStartSyncL(TSyncServiceParamaParam)

StartSyncL

Parameters

TSyncServiceParam aParamParameters for the service so that it knows which service command to issue

TryMatchL(const TApaAppServiceInfo, TUid &, TUint)

TBool TryMatchL(const TApaAppServiceInfoaInfo,
TUid &aAppUid,
TUintaServiceId
)[private]

TryMatchL Reads the service type information from OpaqueData. Sets aAppUi as the application id.

Parameters

const TApaAppServiceInfo aInfoApplication service information.
TUid & aAppUidApplication Uid
TUint aServiceIdParameters for the service so that it knows which application to start

Member Data Documentation

CApaServerAppExitMonitor * iMonitor

CApaServerAppExitMonitor *iMonitor[private]

TSyncServiceParam iParameters

TSyncServiceParam iParameters[private]

RSyncService iService

RSyncService iService[private]

TUint iServiceId

TUint iServiceId[private]

TUid iUid

TUid iUid[private]