|
1 /* |
|
2 * Copyright (c) 2006-2009 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: |
|
15 * Series 60 version of Hindi Demo application |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __HINDIDEMO_DOCUMENT_H__ |
|
22 #define __HINDIDEMO_DOCUMENT_H__ |
|
23 |
|
24 #include <akndoc.h> |
|
25 |
|
26 // ----------------------------------------------------------------------- |
|
27 // Forward references |
|
28 // ----------------------------------------------------------------------- |
|
29 class HindiDemoAppUi; |
|
30 class CEikApplication; |
|
31 |
|
32 // ----------------------------------------------------------------------- |
|
33 // CHindiDemoDocument |
|
34 // ----------------------------------------------------------------------- |
|
35 class CHindiDemoDocument : public CAknDocument |
|
36 { |
|
37 public: |
|
38 // ----------------------------------------------------------------------- |
|
39 // Constructs CHindiDemoDocument for the AVKON application aApp |
|
40 // using two phase construction, and return a pointer to the created |
|
41 // object |
|
42 // @param aApp application creating this document |
|
43 // @return a pointer to the created instance of CHindiDemoDocument |
|
44 // ----------------------------------------------------------------------- |
|
45 static CHindiDemoDocument* NewL(CEikApplication& aApp); |
|
46 |
|
47 // ----------------------------------------------------------------------- |
|
48 // Constructs CHindiDemoDocument for the AVKON application aApp |
|
49 // using two phase construction, and return a pointer to the created |
|
50 // object |
|
51 // @param aApp application creating this document |
|
52 // @return a pointer to the created instance of CHindiDemoDocument |
|
53 // ----------------------------------------------------------------------- |
|
54 static CHindiDemoDocument* NewLC(CEikApplication& aApp); |
|
55 |
|
56 // ----------------------------------------------------------------------- |
|
57 // Destroys this document object and releases all memory |
|
58 // ----------------------------------------------------------------------- |
|
59 ~CHindiDemoDocument(); |
|
60 |
|
61 // ----------------------------------------------------------------------- |
|
62 // Creates a CHindiDemoAppUi object and return a pointer to it |
|
63 // @return a pointer to the created instance of the AppUi created |
|
64 // ----------------------------------------------------------------------- |
|
65 CEikAppUi* CreateAppUiL(); |
|
66 |
|
67 private: |
|
68 // -------------------------------------------------------------------------- |
|
69 // Performs second phase construction for this CHindiDemoDocument object |
|
70 // -------------------------------------------------------------------------- |
|
71 void ConstructL(); |
|
72 |
|
73 // ----------------------------------------------------------------------- |
|
74 // Private constructor |
|
75 // ----------------------------------------------------------------------- |
|
76 CHindiDemoDocument(CEikApplication& aApp); |
|
77 }; |
|
78 |
|
79 #endif // __HINDIDEMO_DOCUMENT_H__ |