|
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 CIAUpdateDetailsDialog |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef IAUPDATEDETAILSDIALOG_H |
|
21 #define IAUPDATEDETAILSDIALOG_H |
|
22 |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 #include "iaupdateversion.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class TIAUpdateDialogParam; |
|
31 |
|
32 /* |
|
33 * CIAUpdateDetailsDialog |
|
34 * |
|
35 * CIAUpdateDetailsDialog is used for displaying update details. |
|
36 */ |
|
37 class CIAUpdateDetailsDialog : public CBase |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Launches dialog. |
|
43 * @param aParam Class that contains dialog parameters. |
|
44 * @return Completion code. |
|
45 */ |
|
46 static TBool ShowDialogL( TIAUpdateDialogParam* aParam ); |
|
47 |
|
48 public:// Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 */ |
|
53 static CIAUpdateDetailsDialog* NewL( TIAUpdateDialogParam* aParam ); |
|
54 |
|
55 /** |
|
56 * Destructor. |
|
57 */ |
|
58 virtual ~CIAUpdateDetailsDialog(); |
|
59 |
|
60 private: |
|
61 |
|
62 /** |
|
63 * C++ default constructor. |
|
64 */ |
|
65 CIAUpdateDetailsDialog( TIAUpdateDialogParam* aParam ); |
|
66 |
|
67 /** |
|
68 * By default Symbian OS constructor is private. |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 private: |
|
73 void ConstructTextL(); |
|
74 TInt BufferSize(); |
|
75 HBufC* FileSizeTextLC( TInt aFileSize ); |
|
76 HBufC* VersionTextLC( TIAUpdateVersion aVersion ); |
|
77 TBool ShowDialogL(); |
|
78 |
|
79 private: |
|
80 TIAUpdateDialogParam* iParam; |
|
81 |
|
82 HBufC* iBuf; |
|
83 |
|
84 }; |
|
85 #endif // IAUPDATEDETAILSDIALOG_H |
|
86 |
|
87 // End of File |