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 ); } }
Public Member Functions | |
---|---|
~CVccGsmSignalLevelHandler() | |
CVccGsmSignalLevelHandler * | NewL(MVccSignalLevelObserver &, const TSignalLevelParams &) |
CVccGsmSignalLevelHandler * | NewLC(MVccSignalLevelObserver &, const TSignalLevelParams &) |
Private Member Functions | |
---|---|
CVccGsmSignalLevelHandler(MVccSignalLevelObserver &, const TSignalLevelParams &) | |
void | CancelGetStrength() |
void | ConstructL() |
void | DisableNotifications() |
void | EnableNotificationsL() |
void | GetStrength() |
void | GsmStrengthChanged(TInt32) |
void | NotifyChanges(TInt32, MVccSignalLevelObserver::TSignalStrengthClass) |
Inherited Enumerations | |
---|---|
CActive:TPriority | |
CVccSignalLevelHandler:TOperation | |
CVccSignalLevelHandler:TStrengthState |
Private Attributes | |
---|---|
TInt8 | iBar |
RTelServer | iEtelServer |
CVccGsmNotifications * | iGsmNotifications |
RMobilePhone | iPhone |
CVccGsmSignalLevelHandler | ( | MVccSignalLevelObserver & | aObserver, |
const TSignalLevelParams & | aParams | ||
) | [private] |
C++ constructor
MVccSignalLevelObserver & aObserver | Reference to signal level observer |
const TSignalLevelParams & aParams | Reference to signal level parameters |
void | GsmStrengthChanged | ( | TInt32 | aStrength | ) | [private] |
TInt32 aStrength |
CVccGsmSignalLevelHandler * | NewL | ( | MVccSignalLevelObserver & | aObserver, |
const TSignalLevelParams & | aParams | |||
) | [static] |
Two-phased constructor.
MVccSignalLevelObserver & aObserver | Observer of this signal handler |
const TSignalLevelParams & aParams | Parameters for signal monitoring |
CVccGsmSignalLevelHandler * | NewLC | ( | MVccSignalLevelObserver & | aObserver, |
const TSignalLevelParams & | aParams | |||
) | [static] |
Two-phased constructor.
MVccSignalLevelObserver & aObserver | Observer of this signal handler |
const TSignalLevelParams & aParams | Parameters for signal monitoring |
void | NotifyChanges | ( | TInt32 | aSignalStrength, |
MVccSignalLevelObserver::TSignalStrengthClass | aClass | |||
) | [private, virtual] |
TInt32 aSignalStrength | |
MVccSignalLevelObserver::TSignalStrengthClass aClass |
CVccGsmNotifications * | iGsmNotifications | [private] |
Gsm signal level notifier Own.
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.