CCchServiceImpl Class Reference

class CCchServiceImpl : public CCchService

Class for basic cch functionality, getting services

   ?good_class_usage_example(s)

cch

Inherits from

Public Member Functions
~CCchServiceImpl()
TInt AddObserver(MCchServiceStatusObserver &)
CCchImpl *CchImpl()
TInt Disable(TCCHSubserviceType)
TInt Enable(TCCHSubserviceType)
TInt Free(TCCHSubserviceType)
TInt GetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, TInt &)
TInt GetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, RBuf &)
TInt GetStatus(TCCHSubserviceType, TCchServiceStatus &)
TInt IsReserved(TCCHSubserviceType, TBool &)
TInt IsSupported(TCCHSubserviceType, TBool &)
CCchServiceImpl *NewL(CCchImpl &, TInt, CCchUiPrivateApi &)
CCchServiceImpl *NewLC(CCchImpl &, TInt, CCchUiPrivateApi &)
voidRemoveObserver()
TInt RemoveObserver(MCchServiceStatusObserver &)
TInt Reserve(TCCHSubserviceType)
TInt ServiceId()
TInt SetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, TInt)
TInt SetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, const TDesC &)
voidSetObserver(MCchServiceStatusObserver &)
Private Member Functions
CCchServiceImpl(CCchImpl &, TInt, CCchUiPrivateApi &)
voidConstructL()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCchService::~CCchService()
Private Attributes
CCchServiceImplAsynchroniser *iAsynchroniser
CCchImpl &iCch
CCchUiPrivateApi &iCchUi
CCchClientObserver *iObserver
TInt iServiceId

Constructor & Destructor Documentation

CCchServiceImpl(CCchImpl &, TInt, CCchUiPrivateApi &)

CCchServiceImpl(CCchImpl &aCch,
TIntaServiceId,
CCchUiPrivateApi &aCchUi
)[private]

The constructor

Parameters

CCchImpl & aCchCch service factory
TInt aServiceIdThe id of the service
CCchUiPrivateApi & aCchUi

~CCchServiceImpl()

~CCchServiceImpl()

Destructor.

Member Functions Documentation

AddObserver(MCchServiceStatusObserver &)

TInt AddObserver(MCchServiceStatusObserver &aObserver)[virtual]

Adds observer for listening service events

Parameters

MCchServiceStatusObserver & aObserverEvent observing class

CchImpl()

CCchImpl *CchImpl()const

ConstructL()

voidConstructL()[private]

By default Symbian 2nd phase constructor is private.

Disable(TCCHSubserviceType)

TInt Disable(TCCHSubserviceTypeaType)[virtual]

Launches service disable. See CCchServiceObserver for status changes.

Parameters

TCCHSubserviceType aTypeType of service

Enable(TCCHSubserviceType)

TInt Enable(TCCHSubserviceTypeaType)[virtual]

Launches service enable. See CCchServiceObserver for status changes.

Parameters

TCCHSubserviceType aTypeType of service

Free(TCCHSubserviceType)

TInt Free(TCCHSubserviceTypeaType)[virtual]

Frees the service of exclusive usage

Parameters

TCCHSubserviceType aTypeType of service

GetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, TInt &)

TInt GetConnectionParameter(TCCHSubserviceTypeaType,
TCchConnectionParameteraParameter,
TInt &aValue
)const [virtual]

Returns the connection parameters

Parameters

TCCHSubserviceType aTypeType of service
TCchConnectionParameter aParameterConnection parameter of the service
TInt & aValuevalue of the parameter

GetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, RBuf &)

TInt GetConnectionParameter(TCCHSubserviceTypeaType,
TCchConnectionParameteraParameter,
RBuf &aValue
)const [virtual]

Returns the connection parameters

Parameters

TCCHSubserviceType aTypeType of service
TCchConnectionParameter aParameterConnection parameter of the service
RBuf & aValuevalue of the parameter

GetStatus(TCCHSubserviceType, TCchServiceStatus &)

TInt GetStatus(TCCHSubserviceTypeaType,
TCchServiceStatus &aStatus
)const [virtual]

Returns the current service state

Parameters

TCCHSubserviceType aTypeType of service
TCchServiceStatus & aStatusStatus of the service, return value

IsReserved(TCCHSubserviceType, TBool &)

TInt IsReserved(TCCHSubserviceTypeaType,
TBool &aReserved
)const [virtual]

Is the service reserved

Parameters

TCCHSubserviceType aTypeType of service
TBool & aReservedTrue if the service is reserved

IsSupported(TCCHSubserviceType, TBool &)

TInt IsSupported(TCCHSubserviceTypeaType,
TBool &aSupported
)const [virtual]

Checks if the type is supported

Parameters

TCCHSubserviceType aTypeType of service
TBool & aSupportedTrue if the service type is supported

NewL(CCchImpl &, TInt, CCchUiPrivateApi &)

CCchServiceImpl *NewL(CCchImpl &aCch,
TIntaServiceId,
CCchUiPrivateApi &aCchUi
)[static]

Two-phased constructor.

Parameters

CCchImpl & aCchCch service factory
TInt aServiceIdId of the service
CCchUiPrivateApi & aCchUiCCH connectivity UI handling API

NewLC(CCchImpl &, TInt, CCchUiPrivateApi &)

CCchServiceImpl *NewLC(CCchImpl &aCch,
TIntaServiceId,
CCchUiPrivateApi &aCchUi
)[static]

Two-phased constructor.

Parameters

CCchImpl & aCchCch service factory
TInt aServiceIdId of the service
CCchUiPrivateApi & aCchUiCCH connectivity UI handling API

RemoveObserver()

voidRemoveObserver()[virtual]

Do not use this anymore, change to RemoveObserver method with paramater

Removes the observer of service events

RemoveObserver(MCchServiceStatusObserver &)

TInt RemoveObserver(MCchServiceStatusObserver &aObserver)[virtual]

Removes the observer of service events

Parameters

MCchServiceStatusObserver & aObserverEvent observing class

Reserve(TCCHSubserviceType)

TInt Reserve(TCCHSubserviceTypeaType)[virtual]

Reserves the service for exclusive usage

Parameters

TCCHSubserviceType aTypeType of service

ServiceId()

TInt ServiceId()const [virtual]

Returns the service id

SetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, TInt)

TInt SetConnectionParameter(TCCHSubserviceTypeaType,
TCchConnectionParameteraParameter,
TIntaValue
)[virtual]

Sets the connection parameters

Parameters

TCCHSubserviceType aTypeThe type of service
TCchConnectionParameter aParameterConnection parameter of the service
TInt aValuevalue of the parameter

SetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, const TDesC &)

TInt SetConnectionParameter(TCCHSubserviceTypeaType,
TCchConnectionParameteraParameter,
const TDesC &aValue
)[virtual]

Sets the connection parameters

Parameters

TCCHSubserviceType aTypeThe type of service
TCchConnectionParameter aParameterConnection parameter of the service
const TDesC & aValuevalue of the parameter

SetObserver(MCchServiceStatusObserver &)

voidSetObserver(MCchServiceStatusObserver &aObserver)[virtual]

Do not use this anymore, change to AddObserver!

Adds observer for listening service events

Parameters

MCchServiceStatusObserver & aObserverEvent observing class

Member Data Documentation

CCchServiceImplAsynchroniser * iAsynchroniser

CCchServiceImplAsynchroniser *iAsynchroniser[private]

CCH server request handler

CCchImpl & iCch

CCchImpl &iCch[private]

cch service factory, not own

CCchUiPrivateApi & iCchUi

CCchUiPrivateApi &iCchUi[private]

CCH connectivity UI handling private API

CCchClientObserver * iObserver

CCchClientObserver *iObserver[private]

Service observer

TInt iServiceId

TInt iServiceId[private]

Service Id