44 class CAdtUpdaterListener; |
44 class CAdtUpdaterListener; |
45 class CTzLocalizedCityGroupArray; |
45 class CTzLocalizedCityGroupArray; |
46 class CTzLocalizedCity; |
46 class CTzLocalizedCity; |
47 class CAdtUpdaterAppUi; |
47 class CAdtUpdaterAppUi; |
48 |
48 |
|
49 class MStartupUIPhaseObserver |
|
50 { |
|
51 public: |
|
52 virtual ~MStartupUIPhaseObserver() {} |
|
53 virtual void ShowQueriesL () = 0 ; |
|
54 }; |
|
55 |
|
56 NONSHARABLE_CLASS( CPsKeyObserver ) : public CActive |
|
57 { |
|
58 |
|
59 public: |
|
60 static CPsKeyObserver* NewL( TUid aCategory, TUint aKey, TInt aTargetValue, MStartupUIPhaseObserver* aObsever); |
|
61 CPsKeyObserver( TUid aCategory, TUint aKey, TInt aTargetValue, MStartupUIPhaseObserver* aObsever ); //move to private |
|
62 virtual ~CPsKeyObserver(); |
|
63 void StartObservingL(); |
|
64 |
|
65 private: |
|
66 virtual void DoCancel(); |
|
67 virtual void RunL(); |
|
68 |
|
69 private: |
|
70 TBool IsMatch( const TInt aKeyValue ) const; |
|
71 void HandleKeyValueL(); |
|
72 void CompleteL( const TInt aErrorCode ); |
|
73 |
|
74 private: // data |
|
75 RProperty iProperty; |
|
76 TUid iCategory; |
|
77 TUint iKey; |
|
78 TInt iTargetValue; |
|
79 TRequestStatus* iClientStatus; |
|
80 MStartupUIPhaseObserver* iStartupUIPhaseObserver; |
|
81 }; |
|
82 |
|
83 |
49 // Class declaration |
84 // Class declaration |
50 /** |
85 /** |
51 * @class CAdtUpdaterContainer |
86 * @class CAdtUpdaterContainer |
52 * @brief The CCoeControl inheriting class. |
87 * @brief The CCoeControl inheriting class. |
53 * @exe adtupdater.exe |
88 * @exe adtupdater.exe |
54 */ |
89 */ |
55 class CAdtUpdaterContainer : public CCoeControl |
90 class CAdtUpdaterContainer : public CCoeControl, public MStartupUIPhaseObserver |
56 { |
91 { |
57 public: // Constructor and destructor |
92 public: // Constructor and destructor |
58 |
93 |
59 /** |
94 /** |
60 * @brief Create a CAdtUpdaterContainer object. Performs the first phase of 2-phase construction. |
95 * @brief Create a CAdtUpdaterContainer object. Performs the first phase of 2-phase construction. |
176 * @brief Returns if the dialogs are in display now. |
211 * @brief Returns if the dialogs are in display now. |
177 * @return TBool The value of QueryDialogsInDisplay. |
212 * @return TBool The value of QueryDialogsInDisplay. |
178 */ |
213 */ |
179 TBool QueryDialogsInDisplay(); |
214 TBool QueryDialogsInDisplay(); |
180 |
215 |
|
216 public: |
|
217 /** |
|
218 * @brief Show the Date/Time/country/place.time queries. |
|
219 */ |
|
220 void ShowQueriesL (); |
|
221 |
181 private: // Functions from base classes |
222 private: // Functions from base classes |
182 |
223 |
183 /** |
224 /** |
184 * @brief From CCoeControl. Handles a chage of client area size. |
225 * @brief From CCoeControl. Handles a chage of client area size. |
185 */ |
226 */ |
225 * @brief Displays the Nitz information obtained from listener. |
266 * @brief Displays the Nitz information obtained from listener. |
226 */ |
267 */ |
227 void DisplayNitzInfoL(); |
268 void DisplayNitzInfoL(); |
228 |
269 |
229 /** |
270 /** |
|
271 * @brief Wait for the Cherry Key values to show the country/city/date/time queries. |
|
272 */ |
|
273 void WaitToShowQueriesL(); |
|
274 |
|
275 /** |
230 * @brief Continues with normal bootup, by displaying country/city list and date/time queries. |
276 * @brief Continues with normal bootup, by displaying country/city list and date/time queries. |
231 */ |
277 */ |
232 void ContinueWithNormalBootL(); |
278 void DoContinueWithNormalBootL(); |
|
279 |
|
280 /** |
|
281 * @brief display date and time queries if RTC time invalid or Hiddedn Reset. |
|
282 */ |
|
283 void ShowDateAndTimeQueriesL(); |
233 |
284 |
234 /** |
285 /** |
235 * @brief Prompts the user for country/city list. |
286 * @brief Prompts the user for country/city list. |
236 */ |
287 */ |
237 void ShowCountryAndCityListsL(); |
288 void ShowCountryAndCityListsL(); |
372 |
429 |
373 /** |
430 /** |
374 * @var iDisplayStartupQueries |
431 * @var iDisplayStartupQueries |
375 * @brief ETrue if the startup queries have to be displayed, EFalse otherwise. |
432 * @brief ETrue if the startup queries have to be displayed, EFalse otherwise. |
376 */ |
433 */ |
377 TBool iDisplayStartupQueries; |
434 TBool iDisplayStartupQueries; |
|
435 |
|
436 /** |
|
437 * @var iIsRTCInvalidAndHiddenReset |
|
438 * @brief ETrue if the RTC Time is inavalid or Hidden Rest, EFalse otherwise. |
|
439 */ |
|
440 TBool iIsRTCInvalidAndHiddenReset; |
|
441 |
|
442 CPsKeyObserver* iPSObserver; |
378 }; |
443 }; |
379 |
444 |
380 #endif // __ADTUPDATER_CONTAINER_H__ |
445 #endif // __ADTUPDATER_CONTAINER_H__ |
381 |
446 |
382 // End of file |
447 // End of file |