|
1 /* |
|
2 * Copyright (c) 2007-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 CIAUpdateDocument |
|
15 * class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __IAUPDATE_DOCUMENT_H__ |
|
21 #define __IAUPDATE_DOCUMENT_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknDoc.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CIAUpdateAppUi; |
|
28 class CEikApplication; |
|
29 |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * CIAUpdateDocument is the Document part of the AVKON |
|
34 * application framework for the IAUpdate example application |
|
35 * |
|
36 */ |
|
37 |
|
38 class CIAUpdateDocument : public CAknDocument |
|
39 { |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Construct a CIAUpdateDocument for the AVKON application aApp |
|
44 * using two phase construction, and return a pointer to the created object |
|
45 * @param aApp Application creating this document |
|
46 * @return A pointer to the created instance of CIAUpdateDocument |
|
47 */ |
|
48 static CIAUpdateDocument* NewL( CEikApplication& aApp ); |
|
49 |
|
50 /** |
|
51 * Construct a CIAUpdateDocument for the AVKON application aApp |
|
52 * using two phase construction, and return a pointer to the created object |
|
53 * @param aApp Application creating this document |
|
54 * @return A pointer to the created instance of CIAUpdateDocument |
|
55 */ |
|
56 static CIAUpdateDocument* NewLC( CEikApplication& aApp ); |
|
57 |
|
58 /** |
|
59 * Destructor |
|
60 */ |
|
61 ~CIAUpdateDocument(); |
|
62 |
|
63 public: // from CAknDocument |
|
64 /** |
|
65 * Create a CIAUpdateAppUi object and return a pointer to it |
|
66 * @return a pointer to the created instance of the AppUi created |
|
67 */ |
|
68 CEikAppUi* CreateAppUiL(); |
|
69 |
|
70 private: |
|
71 |
|
72 /** |
|
73 * Perform the second phase construction of a CIAUpdateDocument object |
|
74 */ |
|
75 void ConstructL(); |
|
76 |
|
77 /** |
|
78 * Perform the first phase of two phase construction |
|
79 @param aApp Application creating this document |
|
80 */ |
|
81 CIAUpdateDocument( CEikApplication& aApp ); |
|
82 |
|
83 }; |
|
84 |
|
85 |
|
86 #endif // __IAUPDATE_DOCUMENT_H__ |