1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This file contains the header file of the CIAUpdateProgressDialog class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IAUPDATEPROGRESSDIALOG_H |
|
21 #define IAUPDATEPROGRESSDIALOG_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknWaitDialog.h> |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MIAUpdateWaitDialogObserver; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Wait dialog for IA Update client |
|
34 */ |
|
35 class CIAUpdateProgressDialog : public CAknProgressDialog |
|
36 { |
|
37 |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Constructor |
|
42 */ |
|
43 CIAUpdateProgressDialog( CEikDialog** aSelfPtr, TBool aVisibilityDelayOff ); |
|
44 |
|
45 virtual ~CIAUpdateProgressDialog(); |
|
46 |
|
47 public: |
|
48 |
|
49 /** |
|
50 * From CEikDialog, respond to softkey inputs. |
|
51 * @para aButtonId, type of pressed Button or Softkey |
|
52 * @return TBool, ETrue if exit the dialog, otherwise EFalse. |
|
53 */ |
|
54 TBool OkToExitL( TInt aButtonId ); |
|
55 |
|
56 public: // New functions |
|
57 void SetCallback( MIAUpdateWaitDialogObserver* aCallback ); |
|
58 |
|
59 /** |
|
60 * Set final value for the progress bar in progress dialog. |
|
61 * @param aValue - Final value of the progress bar. |
|
62 */ |
|
63 void SetProgressDialogFinalValueL( TInt aValue ); |
|
64 |
|
65 /** |
|
66 * Increments the progress bar in progress dialog. |
|
67 * @param aValue - Value to be set as the total progress. |
|
68 */ |
|
69 void UpdateProgressDialogValueL( TInt aValue ); |
|
70 |
|
71 private: //data |
|
72 |
|
73 MIAUpdateWaitDialogObserver* iCallback; |
|
74 TInt iMaxProgress; |
|
75 }; |
|
76 |
|
77 |
|
78 #endif // IAUPDATEPROGRESSDIALOG_H |
|
79 |
|
80 // End of file |
|