|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __HELLOWORLDBASICDOCUMENT_H__ |
|
17 #define __HELLOWORLDBASICDOCUMENT_H__ |
|
18 |
|
19 |
|
20 #include <akndoc.h> |
|
21 |
|
22 |
|
23 class CHelloWorldBasicAppUi; |
|
24 class CEikApplication; |
|
25 |
|
26 |
|
27 /** |
|
28 * CHelloWorldBasicDocument application class. |
|
29 * An instance of class CHelloWorldBasicDocument is the Document part of the |
|
30 * AVKON application framework for the HelloWorldBasic example application. |
|
31 */ |
|
32 class CHelloWorldBasicDocument : public CAknDocument |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Construct a CHelloWorldBasicDocument for the AVKON application aApp |
|
37 * using two phase construction, and return a pointer |
|
38 * to the created object. |
|
39 * @param aApp Application creating this document. |
|
40 * @return A pointer to the created instance of CHelloWorldBasicDocument. |
|
41 */ |
|
42 static CHelloWorldBasicDocument* NewL(CEikApplication& aApp); |
|
43 |
|
44 /** |
|
45 * Construct a CHelloWorldBasicDocument for the AVKON application aApp |
|
46 * using two phase construction, and return a pointer |
|
47 * to the created object. |
|
48 * @param aApp Application creating this document. |
|
49 * @return A pointer to the created instance of CHelloWorldBasicDocument. |
|
50 */ |
|
51 static CHelloWorldBasicDocument* NewLC(CEikApplication& aApp); |
|
52 |
|
53 ~CHelloWorldBasicDocument(); |
|
54 |
|
55 public: |
|
56 /** |
|
57 * From CEikDocument |
|
58 * Create a CHelloWorldBasicAppUi object and return a pointer to it. |
|
59 * The object returned is owned by the Uikon framework. |
|
60 * @return Pointer to created instance of AppUi. |
|
61 */ |
|
62 CEikAppUi* CreateAppUiL(); |
|
63 |
|
64 private: |
|
65 void ConstructL(); |
|
66 CHelloWorldBasicDocument(CEikApplication& aApp); |
|
67 |
|
68 }; |
|
69 |
|
70 #endif // __HELLOWORLDBASICDOCUMENT_H__ |
|
71 |
|
72 // End of File |
|
73 |