equal
deleted
inserted
replaced
26 #include "iaupdateuidefines.h" |
26 #include "iaupdateuidefines.h" |
27 #include "iaupdatecontroller.h" |
27 #include "iaupdatecontroller.h" |
28 #include "iaupdatecontrollerobserver.h" |
28 #include "iaupdatecontrollerobserver.h" |
29 #include "iaupdatenodeobserver.h" |
29 #include "iaupdatenodeobserver.h" |
30 #include "iaupdatewaitdialogobserver.h" |
30 #include "iaupdatewaitdialogobserver.h" |
31 #include "iaupdatedialogobserver.h" |
|
32 #include "iaupdatestarterobserver.h" |
31 #include "iaupdatestarterobserver.h" |
33 #include "iaupdateroaminghandlerobserver.h" |
32 #include "iaupdateroaminghandlerobserver.h" |
34 #include "iaupdaterefreshobserver.h" |
33 #include "iaupdaterefreshobserver.h" |
35 #include "iaupdateresultsinfo.h" |
34 #include "iaupdateresultsinfo.h" |
36 #include "iaupdateversion.h" |
35 #include "iaupdateversion.h" |
46 class CIAUpdateRoamingHandler; |
45 class CIAUpdateRoamingHandler; |
47 class CIAUpdateRefreshHandler; |
46 class CIAUpdateRefreshHandler; |
48 class MIAUpdateUiControllerObserver; |
47 class MIAUpdateUiControllerObserver; |
49 class MIAUpdateHistory; |
48 class MIAUpdateHistory; |
50 class MIAUpdateFwNode; |
49 class MIAUpdateFwNode; |
51 class IAUpdateWaitDialog; |
|
52 class IAUpdateDialogUtil; |
|
53 |
|
54 class QString; |
|
55 class CIAUpdateNodeId; |
50 class CIAUpdateNodeId; |
56 class CEikonEnv; |
|
57 class HbAction; |
|
58 |
51 |
59 |
52 |
60 // CLASS DECLARATION |
53 // CLASS DECLARATION |
61 /** |
54 /** |
62 * CIAUpdateUiController controls update flow in UI |
55 * CIAUpdateUiController controls update flow in UI |
67 public MIAUpdateControllerObserver, |
60 public MIAUpdateControllerObserver, |
68 public MIAUpdateNodeObserver, |
61 public MIAUpdateNodeObserver, |
69 public MIAUpdateWaitDialogObserver, |
62 public MIAUpdateWaitDialogObserver, |
70 public MIAUpdateStarterObserver, |
63 public MIAUpdateStarterObserver, |
71 public MIAUpdateRoamingHandlerObserver, |
64 public MIAUpdateRoamingHandlerObserver, |
72 public MIAUpdateRefreshObserver, |
65 public MIAUpdateRefreshObserver |
73 public IAUpdateDialogObserver |
|
74 { |
66 { |
75 |
67 |
76 public: //new functions |
68 public: //new functions |
77 |
69 |
78 /** |
70 /** |
240 CIAUpdateParameters* ParamsReadAndRemoveFileL(); |
232 CIAUpdateParameters* ParamsReadAndRemoveFileL(); |
241 |
233 |
242 TBool ForcedRefresh() const; |
234 TBool ForcedRefresh() const; |
243 |
235 |
244 void SetForcedRefresh( TBool aForcedRefresh ); |
236 void SetForcedRefresh( TBool aForcedRefresh ); |
245 |
|
246 /** |
|
247 * Set node list to normal state after update. |
|
248 */ |
|
249 void RefreshNodeList(); |
|
250 |
|
251 |
|
252 /** |
237 /** |
253 * Is client role "testing" |
238 * Is client role "testing" |
254 * |
239 * |
255 * @return ETrue when client's role is "testing" |
240 * @return ETrue when client's role is "testing" |
256 **/ |
241 **/ |
336 |
321 |
337 |
322 |
338 private: // From MIAUpdateWaitDialogObserver |
323 private: // From MIAUpdateWaitDialogObserver |
339 |
324 |
340 /** |
325 /** |
341 * This is called when the dialog is closed. |
326 * This is called when the dialog is about to be closed. |
342 */ |
327 * @param aButtonId - Id of the button, which was used to cancel the dialog. |
343 void HandleWaitDialogCancel(); |
328 * @return ETrue, if it's ok to close the dialog, EFalse otherwise. |
344 |
329 */ |
345 private: // From IAUpdateDialogObserver |
330 TBool HandleDialogExitL( TInt aButtonId ); |
346 |
|
347 void dialogFinished(HbAction *action); |
|
348 |
331 |
349 |
332 |
350 private: // From MIAUpdateRefreshObserver |
333 private: // From MIAUpdateRefreshObserver |
351 |
334 |
352 void HandleUiRefreshL(); |
335 void HandleUiRefreshL(); |
367 */ |
350 */ |
368 CIAUpdateUiController( MIAUpdateUiControllerObserver& aObserver ); |
351 CIAUpdateUiController( MIAUpdateUiControllerObserver& aObserver ); |
369 |
352 |
370 |
353 |
371 private: // new functions |
354 private: // new functions |
372 |
|
373 void AgreementHandledL(); |
|
374 |
355 |
375 /** |
356 /** |
376 * Called when refreshing updates list is completed. |
357 * Called when refreshing updates list is completed. |
377 * |
358 * |
378 * @param aNodes An array of nodes |
359 * @param aNodes An array of nodes |
446 * Shows waiting dialog during update process. |
427 * Shows waiting dialog during update process. |
447 * |
428 * |
448 * @param aDisplayString A string to be displayed |
429 * @param aDisplayString A string to be displayed |
449 * @param aVisibilityDelayOff ETrue if visibility delay is off |
430 * @param aVisibilityDelayOff ETrue if visibility delay is off |
450 */ |
431 */ |
451 void ShowWaitDialogL( const QString& aDisplayString, |
432 void ShowWaitDialogL( const TDesC& aDisplayString, |
452 TBool aVisibilityDelayOff ); |
433 TBool aVisibilityDelayOff ); |
453 |
434 |
454 /** |
435 /** |
455 * Shows progress dialog during update process. |
436 * Shows progress dialog during update process. |
456 * |
437 * |
561 ESendingReport, |
542 ESendingReport, |
562 EUiRefreshing, |
543 EUiRefreshing, |
563 ESelfUpdating |
544 ESelfUpdating |
564 }; |
545 }; |
565 |
546 |
566 enum TDialogState |
|
567 { |
|
568 ENoDialog, |
|
569 EAgreement, |
|
570 EInsufficientMemory |
|
571 }; |
|
572 |
|
573 |
|
574 MIAUpdateUiControllerObserver& iObserver; |
547 MIAUpdateUiControllerObserver& iObserver; |
575 |
548 |
576 MIAUpdateController* iController; |
549 MIAUpdateController* iController; |
577 |
550 |
578 RPointerArray< MIAUpdateNode > iNodes; |
551 RPointerArray< MIAUpdateNode > iNodes; |
582 RPointerArray< MIAUpdateFwNode > iFwNodes; |
555 RPointerArray< MIAUpdateFwNode > iFwNodes; |
583 |
556 |
584 RPointerArray<CIAUpdateNodeId> iPreviousSelections; |
557 RPointerArray<CIAUpdateNodeId> iPreviousSelections; |
585 |
558 |
586 RPointerArray<MIAUpdateNode> iServicePackNodes; |
559 RPointerArray<MIAUpdateNode> iServicePackNodes; |
587 |
|
588 IAUpdateDialogUtil *mDialogUtil; |
|
589 |
560 |
590 IAUpdateWaitDialog *mWaitDialog; |
561 CIAUpdateWaitDialog* iWaitDialog; |
591 |
562 |
592 CIAUpdateProgressDialog* iProgressDialog; |
563 CIAUpdateProgressDialog* iProgressDialog; |
593 |
564 |
594 CIAUpdateStarter* iStarter; |
565 CIAUpdateStarter* iStarter; |
595 |
566 |
611 |
582 |
612 IAUpdateUiDefines::TIAUpdateUiRequestType iRequestType; |
583 IAUpdateUiDefines::TIAUpdateUiRequestType iRequestType; |
613 |
584 |
614 TState iState; |
585 TState iState; |
615 |
586 |
616 TDialogState iDialogState; |
|
617 |
|
618 TBool iClosingAllowedByClient; |
587 TBool iClosingAllowedByClient; |
619 |
588 |
620 CIAUpdateUiConfigData* iConfigData; |
589 CIAUpdateUiConfigData* iConfigData; |
621 |
590 |
622 CIAUpdateParameters* iParams; |
591 CIAUpdateParameters* iParams; |
632 TBool iOffConfigurated; |
601 TBool iOffConfigurated; |
633 |
602 |
634 TBool iForcedRefresh; |
603 TBool iForcedRefresh; |
635 |
604 |
636 TBool iTestRole; |
605 TBool iTestRole; |
637 |
|
638 HbAction *mPrimaryAction; |
|
639 |
606 |
640 }; |
607 }; |
641 |
608 |
642 #endif // IAUPDATEUICONTROLLER_H |
609 #endif // IAUPDATEUICONTROLLER_H |
643 |
610 |