|
1 /* |
|
2 * Copyright (c) 2010 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: Easy dialing test application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __EDTA_DOCUMENT_H__ |
|
19 #define __EDTA_DOCUMENT_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <akndoc.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CEdtaAppUi; |
|
26 class CEikApplication; |
|
27 |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * CEdtaDocument application class. |
|
33 * An instance of class CEdtaDocument is the Document part of the |
|
34 * AVKON application framework for the Edta example application. |
|
35 */ |
|
36 class CEdtaDocument : public CAknDocument |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * NewL. |
|
42 * Two-phased constructor. |
|
43 * Construct a CEdtaDocument for the AVKON application aApp |
|
44 * using two phase construction, and return a pointer |
|
45 * to the created object. |
|
46 * @param aApp Application creating this document. |
|
47 * @return A pointer to the created instance of CEdtaDocument. |
|
48 */ |
|
49 static CEdtaDocument* NewL( CEikApplication& aApp ); |
|
50 |
|
51 /** |
|
52 * NewLC. |
|
53 * Two-phased constructor. |
|
54 * Construct a CEdtaDocument for the AVKON application aApp |
|
55 * using two phase construction, and return a pointer |
|
56 * to the created object. |
|
57 * @param aApp Application creating this document. |
|
58 * @return A pointer to the created instance of CEdtaDocument. |
|
59 */ |
|
60 static CEdtaDocument* NewLC( CEikApplication& aApp ); |
|
61 |
|
62 /** |
|
63 * ~CEdtaDocument |
|
64 * Virtual Destructor. |
|
65 */ |
|
66 virtual ~CEdtaDocument(); |
|
67 |
|
68 public: // Functions from base classes |
|
69 |
|
70 /** |
|
71 * CreateAppUiL |
|
72 * From CEikDocument, CreateAppUiL. |
|
73 * Create a CEdtaAppUi object and return a pointer to it. |
|
74 * The object returned is owned by the Uikon framework. |
|
75 * @return Pointer to created instance of AppUi. |
|
76 */ |
|
77 CEikAppUi* CreateAppUiL(); |
|
78 |
|
79 private: // Constructors |
|
80 |
|
81 /** |
|
82 * ConstructL |
|
83 * 2nd phase constructor. |
|
84 */ |
|
85 void ConstructL(); |
|
86 |
|
87 /** |
|
88 * CEdtaDocument. |
|
89 * C++ default constructor. |
|
90 * @param aApp Application creating this document. |
|
91 */ |
|
92 CEdtaDocument( CEikApplication& aApp ); |
|
93 |
|
94 }; |
|
95 |
|
96 #endif // __EDTA_DOCUMENT_H__ |
|
97 |
|
98 // End of File |
|
99 |