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 &)
void RemoveObserver ()
TInt RemoveObserver ( MCchServiceStatusObserver &)
TInt Reserve ( TCCHSubserviceType )
TInt ServiceId ()
TInt SetConnectionParameter ( TCCHSubserviceType , TCchConnectionParameter , TInt )
TInt SetConnectionParameter ( TCCHSubserviceType , TCchConnectionParameter , const TDesC &)
void SetObserver ( MCchServiceStatusObserver &)
Private Member Functions
CCchServiceImpl ( CCchImpl &, TInt , CCchUiPrivateApi &)
void ConstructL ()
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,
TInt aServiceId,
CCchUiPrivateApi & aCchUi
) [private]

The constructor

Parameters

CCchImpl & aCch Cch service factory
TInt aServiceId The 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 & aObserver Event observing class

CchImpl()

CCchImpl * CchImpl ( ) const

ConstructL()

void ConstructL ( ) [private]

By default Symbian 2nd phase constructor is private.

Disable(TCCHSubserviceType)

TInt Disable ( TCCHSubserviceType aType ) [virtual]

Launches service disable. See CCchServiceObserver for status changes.

Parameters

TCCHSubserviceType aType Type of service

Enable(TCCHSubserviceType)

TInt Enable ( TCCHSubserviceType aType ) [virtual]

Launches service enable. See CCchServiceObserver for status changes.

Parameters

TCCHSubserviceType aType Type of service

Free(TCCHSubserviceType)

TInt Free ( TCCHSubserviceType aType ) [virtual]

Frees the service of exclusive usage

Parameters

TCCHSubserviceType aType Type of service

GetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, TInt &)

TInt GetConnectionParameter ( TCCHSubserviceType aType,
TCchConnectionParameter aParameter,
TInt & aValue
) const [virtual]

Returns the connection parameters

Parameters

TCCHSubserviceType aType Type of service
TCchConnectionParameter aParameter Connection parameter of the service
TInt & aValue value of the parameter

GetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, RBuf &)

TInt GetConnectionParameter ( TCCHSubserviceType aType,
TCchConnectionParameter aParameter,
RBuf & aValue
) const [virtual]

Returns the connection parameters

Parameters

TCCHSubserviceType aType Type of service
TCchConnectionParameter aParameter Connection parameter of the service
RBuf & aValue value of the parameter

GetStatus(TCCHSubserviceType, TCchServiceStatus &)

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

Returns the current service state

Parameters

TCCHSubserviceType aType Type of service
TCchServiceStatus & aStatus Status of the service, return value

IsReserved(TCCHSubserviceType, TBool &)

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

Is the service reserved

Parameters

TCCHSubserviceType aType Type of service
TBool & aReserved True if the service is reserved

IsSupported(TCCHSubserviceType, TBool &)

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

Checks if the type is supported

Parameters

TCCHSubserviceType aType Type of service
TBool & aSupported True if the service type is supported

NewL(CCchImpl &, TInt, CCchUiPrivateApi &)

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

Two-phased constructor.

Parameters

CCchImpl & aCch Cch service factory
TInt aServiceId Id of the service
CCchUiPrivateApi & aCchUi CCH connectivity UI handling API

NewLC(CCchImpl &, TInt, CCchUiPrivateApi &)

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

Two-phased constructor.

Parameters

CCchImpl & aCch Cch service factory
TInt aServiceId Id of the service
CCchUiPrivateApi & aCchUi CCH connectivity UI handling API

RemoveObserver()

void RemoveObserver ( ) [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 & aObserver Event observing class

Reserve(TCCHSubserviceType)

TInt Reserve ( TCCHSubserviceType aType ) [virtual]

Reserves the service for exclusive usage

Parameters

TCCHSubserviceType aType Type of service

ServiceId()

TInt ServiceId ( ) const [virtual]

Returns the service id

SetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, TInt)

TInt SetConnectionParameter ( TCCHSubserviceType aType,
TCchConnectionParameter aParameter,
TInt aValue
) [virtual]

Sets the connection parameters

Parameters

TCCHSubserviceType aType The type of service
TCchConnectionParameter aParameter Connection parameter of the service
TInt aValue value of the parameter

SetConnectionParameter(TCCHSubserviceType, TCchConnectionParameter, const TDesC &)

TInt SetConnectionParameter ( TCCHSubserviceType aType,
TCchConnectionParameter aParameter,
const TDesC & aValue
) [virtual]

Sets the connection parameters

Parameters

TCCHSubserviceType aType The type of service
TCchConnectionParameter aParameter Connection parameter of the service
const TDesC & aValue value of the parameter

SetObserver(MCchServiceStatusObserver &)

void SetObserver ( MCchServiceStatusObserver & aObserver ) [virtual]

Do not use this anymore, change to AddObserver!

Adds observer for listening service events

Parameters

MCchServiceStatusObserver & aObserver Event 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