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)

void ConstructL ( MAknServerAppExitObserver * aObserver,
TUint aServiceId
) [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 * aObserver pointer of MAknServerAppExitObserver to be passed to iMonitor
TUint aServiceId parameters for the service so that it knows which application to start

DiscoverL(TUint)

TUid DiscoverL ( TUint aServiceId ) [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 aServiceId parameters for the service so that it knows which application to start

EnableProgressNoteL(TBool)

IMPORT_C void EnableProgressNoteL ( TBool aEnabled )

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

Parameters

TBool aEnabled Should the progress not be shown.

NewL(MAknServerAppExitObserver *, TUint)

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

Two-phased constructor.

Parameters

MAknServerAppExitObserver * aObserver
TUint aServiceId

StartSyncL(TSyncServiceParam)

IMPORT_C TUid StartSyncL ( TSyncServiceParam aParam )

StartSyncL

Parameters

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

TryMatchL(const TApaAppServiceInfo, TUid &, TUint)

TBool TryMatchL ( const TApaAppServiceInfo aInfo,
TUid & aAppUid,
TUint aServiceId
) [private]

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

Parameters

const TApaAppServiceInfo aInfo Application service information.
TUid & aAppUid Application Uid
TUint aServiceId Parameters 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]