CVccGsmSignalLevelHandler Class Reference

class CVccGsmSignalLevelHandler : public CVccSignalLevelHandler

VCC GSM signal level handler.

  void CExampleClass::ConstructL()
      {
      //Scan time for low and high 5 sec, low strength -85, high -70 dBm
      TSignalLevelParams params = { 5e6, 5e6, 85, 70 };

      //
      iGsmHandler = CVccGsmSignalLevelHandler::NewL( *this, params );
      }

  void CExampleClass::StartMonitoringL()
      {
      // Start monitoring gsm signal levels.
      iGsmHandler->StartL();
      }

  void CExampleClass::StopMonitoringL()
      {
      // Stop monitoring.
      iGsmHandler->StopL();
      }

  // Called when signal level changes.
  void CExampleClass::SignalLevelL(
      const CVccSignalLevelHandler* aHandlerInstance,
      TInt32 aSignalStrength,
      TSignalStrengthClass aClass )
      {
      if ( iGsmHandler == aHandlerInstance )
          {
          // GSM signal changed, do whatever is needed
          MakeHandoverDecision( aSignalStrength, aClass );
          }
      }
vcchotrigger.dll
Since
S60 v3.2

Inherits from

Public Member Functions
~CVccGsmSignalLevelHandler()
CVccGsmSignalLevelHandler *NewL(MVccSignalLevelObserver &, const TSignalLevelParams &)
CVccGsmSignalLevelHandler *NewLC(MVccSignalLevelObserver &, const TSignalLevelParams &)
Private Member Functions
CVccGsmSignalLevelHandler(MVccSignalLevelObserver &, const TSignalLevelParams &)
voidCancelGetStrength()
voidConstructL()
voidDisableNotifications()
voidEnableNotificationsL()
voidGetStrength()
voidGsmStrengthChanged(TInt32)
voidNotifyChanges(TInt32, MVccSignalLevelObserver::TSignalStrengthClass)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::Extension_(TUint,TAny *&,TAny *)
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::RunError(TInt)
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
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()
CTimer::After(TTimeIntervalMicroSeconds32)
CTimer::At(const TTime &)
CTimer::AtUTC(const TTime &)
CTimer::CTimer(TInt)
CTimer::HighRes(TTimeIntervalMicroSeconds32)
CTimer::Inactivity(TTimeIntervalSeconds)
CTimer::Lock(TTimerLockSpec)
CTimer::~CTimer()
CVccSignalLevelHandler::CVccSignalLevelHandler(MVccSignalLevelObserver &,const TSignalLevelParams &)
CVccSignalLevelHandler::DoCancel()
CVccSignalLevelHandler::SetParams(const TSignalLevelParams &)
CVccSignalLevelHandler::StartL()
CVccSignalLevelHandler::Stop()
CVccSignalLevelHandler::StrengthChanged()
CVccSignalLevelHandler::~CVccSignalLevelHandler()
Inherited Enumerations
CActive:TPriority
CVccSignalLevelHandler:TOperation
CVccSignalLevelHandler:TStrengthState
Private Attributes
TInt8 iBar
RTelServer iEtelServer
CVccGsmNotifications *iGsmNotifications
RMobilePhone iPhone
Inherited Attributes
CActive::iStatus
CVccSignalLevelHandler::iNotificationsOn
CVccSignalLevelHandler::iObserver
CVccSignalLevelHandler::iOperation
CVccSignalLevelHandler::iParams
CVccSignalLevelHandler::iState
CVccSignalLevelHandler::iStrength

Constructor & Destructor Documentation

CVccGsmSignalLevelHandler(MVccSignalLevelObserver &, const TSignalLevelParams &)

CVccGsmSignalLevelHandler(MVccSignalLevelObserver &aObserver,
const TSignalLevelParams &aParams
)[private]

C++ constructor

Parameters

MVccSignalLevelObserver & aObserverReference to signal level observer
const TSignalLevelParams & aParamsReference to signal level parameters

~CVccGsmSignalLevelHandler()

~CVccGsmSignalLevelHandler()[virtual]

Destructor.

Member Functions Documentation

CancelGetStrength()

voidCancelGetStrength()[private, virtual]

ConstructL()

voidConstructL()[private]

Symbian second-phase constructor

DisableNotifications()

voidDisableNotifications()[private, virtual]

EnableNotificationsL()

voidEnableNotificationsL()[private, virtual]

GetStrength()

voidGetStrength()[private, virtual]

GsmStrengthChanged(TInt32)

voidGsmStrengthChanged(TInt32aStrength)[private]

Parameters

TInt32 aStrength

NewL(MVccSignalLevelObserver &, const TSignalLevelParams &)

CVccGsmSignalLevelHandler *NewL(MVccSignalLevelObserver &aObserver,
const TSignalLevelParams &aParams
)[static]

Two-phased constructor.

Parameters

MVccSignalLevelObserver & aObserverObserver of this signal handler
const TSignalLevelParams & aParamsParameters for signal monitoring

NewLC(MVccSignalLevelObserver &, const TSignalLevelParams &)

CVccGsmSignalLevelHandler *NewLC(MVccSignalLevelObserver &aObserver,
const TSignalLevelParams &aParams
)[static]

Two-phased constructor.

Parameters

MVccSignalLevelObserver & aObserverObserver of this signal handler
const TSignalLevelParams & aParamsParameters for signal monitoring

NotifyChanges(TInt32, MVccSignalLevelObserver::TSignalStrengthClass)

voidNotifyChanges(TInt32aSignalStrength,
MVccSignalLevelObserver::TSignalStrengthClassaClass
)[private, virtual]

Parameters

TInt32 aSignalStrength
MVccSignalLevelObserver::TSignalStrengthClass aClass

Member Data Documentation

TInt8 iBar

TInt8 iBar[private]

Value of the GSM indication bar

RTelServer iEtelServer

RTelServer iEtelServer[private]

Etel server Own.

CVccGsmNotifications * iGsmNotifications

CVccGsmNotifications *iGsmNotifications[private]

Gsm signal level notifier Own.

RMobilePhone iPhone

RMobilePhone iPhone[private]

Phone based functionality Own.