CVccCchMonitor Class Reference
class CVccCchMonitor : public CBase |
CCH monitor. Uses CCH to enable/disable CCH services.
MyClass::ConstructL()
{
iMyCch = Cch::NewL();
iMyService = iMyCch->GetService( iMyServiceId );
User::LeaveIfNull( iMyService );
iMyService->SetObserver( *this );
TInt error = iMyService->Enable( iMyServiceType );
if ( error != KErrNone )
{
User::Leave( error );
}
}
MyClass::ServiceStatusChanged(
TInt aServiceId,
CCHSubserviceType aType,
const TCchServiceStatus& aServiceStatus )
{
if ( aServiceStatus.Error() != KErrNone )
{
HandleError();
}
else
{
HandleStateChange();
}
}
MyClass::~MyClass()
{
iMyService->Disable( iMyServiceType );
delete iCch;
}
vcchotrigger.dll
- Since
- S60 v3.2
Constructor & Destructor Documentation
CVccCchMonitor(MVccCchObserver &)
~CVccCchMonitor()
~CVccCchMonitor | ( | ) | [virtual] |
Member Functions Documentation
ConstructL()
void | ConstructL | ( | ) | [private] |
DisableService()
Disable the service and stop monitoring the service state
DoEnableServiceL()
void | DoEnableServiceL | ( | ) | [private] |
Enable the service (assioated to the iCchService)
EnableServiceL()
Enable the service and start monitoring the service state.
NotifyObserver()
void | NotifyObserver | ( | ) | [private] |
Notify observer about CCH service status has changed.
ServiceStatus()
Get the last state of the CCH service.
ServiceStatusChanged(TInt, TCCHSubserviceType, const TCchServiceStatus &)
Member Data Documentation
CCchService * iCchService
TCCHSubserviceState
iCurrentCchState
The last state of the CCH service.
MVccCchObserver::TServiceStatus
iCurrentStatus
TBool
iDisableService
TBool
| iDisableService | [private] |
TInt
iLastCchError
TInt
| iLastCchError | [private] |
The last error received from the CCH service
TBool
iNotifyObserver
TBool
| iNotifyObserver | [private] |
Should our obsever to be notified ETrue: yes, EFalse: no.
MVccCchObserver & iObserver
TInt
iServiceId
Service id of the VoIP we are using
TBool
iServiceReserved
TBool
| iServiceReserved | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.