CSatelliteInfoUI Class Reference

#include <mw/CSatelliteInfoUI.h>

Link against: SatInfoStub.lib

class CSatelliteInfoUI : public CBase

Inherits from

  • CSatelliteInfoUI

    Detailed Description

    Implements entry point class to Satellite Info UI

    Member Enumeration Documentation

    Enum TSatelliteView

    Enumeration to specify the default launch view of the dialog.

    EnumeratorValueDescription
    ESatelliteFirmamentView0x0001

    Launch option for firmament view. Firmament view displays all the satellites in view with the satellite's number on a firmament.

    ESatelliteSignalStrengthView0x0002

    Launch option for signal strength view. Signal strength view displays all the satellite with their correspoinding signal strength represented by bars.

    ESatelliteCompassView0x0003

    Launch option for compass view. Compass view displays latitude, longitude, speed and direction along with 2D/3D type of Fix.

    Constructor & Destructor Documentation

    ~CSatelliteInfoUI ( )

    IMPORT_C~CSatelliteInfoUI()[virtual]

    Destructor.

    Member Function Documentation

    ExecuteLD ( const TDesC & )

    IMPORT_C TIntExecuteLD(const TDesC &aNameOfRule)

    Display satellite's information dialog.

    This library uses the services provided by Location Framework. Once the dialog is launched satellite information is continuously requested via Location Acquisition API. The Location Acquisition API is offered by Location Framework. The user can switch between the two views once the dialog is launched.

    leave
    KErrArgument if requestor data (aNameOfRule argument) length exceeds 255 characters or if it is empty. This function may also leave with any one of the standard error codes such as out of memory (e.g. KErrNoMemory)
    ParameterDescription
    aNameOfRuleis requestor data for Location FW which will be used for privacy verification in the future. Application name should be used to specify the requestor. The string should not be empty.

    Returns: TInt value of the selected softkey, which is EEikCommandTypeExitOrBack, because it is the only softkey of the dialog.

    HandleForegroundEventL ( TBool )

    IMPORT_C voidHandleForegroundEventL(TBoolaForeground)

    Dialog switched to foreground or background

    ParameterDescription
    aForegroundETrue to switch to the foreground. EFalse to switch to background.

    NewL ( )

    IMPORT_C CSatelliteInfoUI *NewL()[static]

    Two-phased constructor.

    Returns: CSatelliteInfoUI object.

    SetLaunchView ( TSatelliteView )

    IMPORT_C voidSetLaunchView(TSatelliteViewaLaunchView)

    Used to set the dialog's launch view

    This method is used to set the view in which the dialog should be launched. The two available views are signal strength and firmament view. Constants for settings default view specified in enum TSatelliteView. This method should be called before the method ExecuteLD is invoked.

    panic
    EAknPanicOutOfRange if the method is invoked with an invalid parameter. Values provided apart from those specified in TSatelliteView are invalid and will cause the method to panic.
    ParameterDescription
    aLaunchViewESatelliteFirmamentView for firmament view and ESatelliteSignalStrengthView for signal strength view. ESatelliteCompassView for compass ciew ESatelliteCompassView Visibility will be variated depending on the product configuration/regional variation. if it is disabled to show compass view then function will ignore the ESatelliteCompassView and show firmament view instead.