Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
2 * Copyright (c) 2005 - 2008 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: Implements interface for SatelliteInfoUI.
19 #ifndef __SATELLITE_INFO_UI_H__
20 #define __SATELLITE_INFO_UI_H__
25 // FORWARD DECLARATION
30 * Implements entry point class to Satellite Info UI
33 class CSatelliteInfoUI : public CBase
37 * Enumeration to specify the default launch view of the
42 /** Launch option for firmament view. Firmament view
43 * displays all the satellites in view with the satellite's
44 * number on a firmament.
46 ESatelliteFirmamentView = 0x0001,
47 /** Launch option for signal strength view. Signal strength
48 * view displays all the satellite with their correspoinding
49 * signal strength represented by bars.
51 ESatelliteSignalStrengthView = 0x0002,
52 /** Launch option for compass view. Compass view
53 * displays latitude, longitude, speed and direction along
54 * with 2D/3D type of Fix.
56 ESatelliteCompassView = 0x0003
61 * Two-phased constructor.
63 * @return CSatelliteInfoUI object.
65 IMPORT_C static CSatelliteInfoUI* NewL();
70 IMPORT_C virtual ~CSatelliteInfoUI();
74 * By default Symbian 2nd phase constructor is private.
79 * C++ default constructor.
83 public: // new functions
85 * Display satellite's information dialog.
87 * This library uses the services provided by Location Framework.
88 * Once the dialog is launched satellite information is continuously
89 * requested via Location Acquisition API. The Location Acquisition
90 * API is offered by Location Framework. The user can switch between the
91 * two views once the dialog is launched.
93 * @param aNameOfRule is requestor data for Location FW which will be used
94 * for privacy verification in the future. Application name should be
95 * used to specify the requestor. The string should not be empty.
96 * @return TInt value of the selected softkey, which is EEikCommandTypeExitOrBack,
97 * because it is the only softkey of the dialog.
99 * @leave KErrArgument if requestor data (aNameOfRule argument) length exceeds
100 * 255 characters or if it is empty. This function may also leave with any
101 * one of the standard error codes such as out of memory (e.g. KErrNoMemory)
103 IMPORT_C TInt ExecuteLD( const TDesC& aNameOfRule );
106 * Dialog switched to foreground or background
107 * @param aForeground ETrue to switch to the foreground.
108 * EFalse to switch to background.
110 IMPORT_C void HandleForegroundEventL(TBool aForeground);
113 * Used to set the dialog's launch view
115 * This method is used to set the view in which the dialog should
116 * be launched. The two available views are signal strength and
117 * firmament view. Constants for settings default view specified
118 * in enum #TSatelliteView. This method should be called before the
119 * method #ExecuteLD is invoked.
121 * @param aLaunchView ESatelliteFirmamentView for firmament view
122 * and ESatelliteSignalStrengthView for signal strength view.
123 * ESatelliteCompassView for compass ciew
124 * ESatelliteCompassView Visibility will be variated depending on the product configuration/regional variation.
125 * if it is disabled to show compass view then function will ignore the ESatelliteCompassView and
126 * show firmament view instead.
128 * @panic EAknPanicOutOfRange if the method is invoked with an invalid parameter.
129 * Values provided apart from those specified in #TSatelliteView are
130 * invalid and will cause the method to panic.
132 IMPORT_C void SetLaunchView(TSatelliteView aLaunchView);
136 /// Own: A pointer to CSatellite. Contains the engine and
137 /// the dialog implementation.
138 CSatellite* iSatellite;
140 /// Own: A pointer to TBool
141 TBool* iDestroyedPtr;
145 #endif // __SATELLITE_INFO_UI_H__