|
1 /* |
|
2 * ============================================================================== |
|
3 * Name : helloworldbasicdocument.h |
|
4 * Part of : Helloworldbasic |
|
5 * Interface : |
|
6 * Description : |
|
7 * Version : |
|
8 * |
|
9 * Copyright (c) 2005-2006 Nokia Corporation. |
|
10 * This material, including documentation and any related |
|
11 * computer programs, is protected by copyright controlled by |
|
12 * Nokia Corporation. |
|
13 * ============================================================================== |
|
14 */ |
|
15 |
|
16 #ifndef __HELLOWORLDBASICDOCUMENT_H__ |
|
17 #define __HELLOWORLDBASICDOCUMENT_H__ |
|
18 |
|
19 // INCLUDES |
|
20 #include <akndoc.h> |
|
21 |
|
22 // FORWARD DECLARATIONS |
|
23 class CHelloWorldBasicAppUi; |
|
24 class CEikApplication; |
|
25 |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * CHelloWorldBasicDocument application class. |
|
31 * An instance of class CHelloWorldBasicDocument is the Document part of the |
|
32 * AVKON application framework for the HelloWorldBasic example application. |
|
33 */ |
|
34 class CHelloWorldBasicDocument : public CAknDocument |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * NewL. |
|
40 * Two-phased constructor. |
|
41 * Construct a CHelloWorldBasicDocument for the AVKON application aApp |
|
42 * using two phase construction, and return a pointer |
|
43 * to the created object. |
|
44 * @param aApp Application creating this document. |
|
45 * @return A pointer to the created instance of CHelloWorldBasicDocument. |
|
46 */ |
|
47 static CHelloWorldBasicDocument* NewL( CEikApplication& aApp ); |
|
48 |
|
49 /** |
|
50 * NewLC. |
|
51 * Two-phased constructor. |
|
52 * Construct a CHelloWorldBasicDocument for the AVKON application aApp |
|
53 * using two phase construction, and return a pointer |
|
54 * to the created object. |
|
55 * @param aApp Application creating this document. |
|
56 * @return A pointer to the created instance of CHelloWorldBasicDocument. |
|
57 */ |
|
58 static CHelloWorldBasicDocument* NewLC( CEikApplication& aApp ); |
|
59 |
|
60 /** |
|
61 * ~CHelloWorldBasicDocument |
|
62 * Virtual Destructor. |
|
63 */ |
|
64 virtual ~CHelloWorldBasicDocument(); |
|
65 |
|
66 public: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * CreateAppUiL |
|
70 * From CEikDocument, CreateAppUiL. |
|
71 * Create a CHelloWorldBasicAppUi object and return a pointer to it. |
|
72 * The object returned is owned by the Uikon framework. |
|
73 * @return Pointer to created instance of AppUi. |
|
74 */ |
|
75 CEikAppUi* CreateAppUiL(); |
|
76 |
|
77 private: // Constructors |
|
78 |
|
79 /** |
|
80 * ConstructL |
|
81 * 2nd phase constructor. |
|
82 */ |
|
83 void ConstructL(); |
|
84 |
|
85 /** |
|
86 * CHelloWorldBasicDocument. |
|
87 * C++ default constructor. |
|
88 * @param aApp Application creating this document. |
|
89 */ |
|
90 CHelloWorldBasicDocument( CEikApplication& aApp ); |
|
91 |
|
92 }; |
|
93 |
|
94 #endif // __HELLOWORLDBASICDOCUMENT_H__ |
|
95 |
|
96 // End of File |
|
97 |