1 /* |
|
2 * Copyright (c) 2004-2005 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 * See class description below |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __LANDMARKS_DOCUMENT_H__ |
|
21 #define __LANDMARKS_DOCUMENT_H__ |
|
22 |
|
23 |
|
24 #include <AknDoc.h> |
|
25 |
|
26 |
|
27 class CLandmarksAppUi; |
|
28 class CEikApplication; |
|
29 |
|
30 |
|
31 |
|
32 /** |
|
33 * An instance of CLandmarksDocument is the application part of the Avkon |
|
34 * application framework for the Landmarks reference application |
|
35 */ |
|
36 class CLandmarksDocument : public CAknDocument |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 * |
|
43 * @param aApp an eikon application instance |
|
44 */ |
|
45 static CLandmarksDocument* NewL(CEikApplication& aApp); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 ~CLandmarksDocument(); |
|
51 |
|
52 public: // from CAknDocument |
|
53 |
|
54 /** |
|
55 * CreateAppUiL creates a CLandmarksAppUi object and return a pointer |
|
56 * to it. |
|
57 * |
|
58 * @return a pointer to the created instance of the AppUi created |
|
59 */ |
|
60 CEikAppUi* CreateAppUiL(); |
|
61 |
|
62 private: |
|
63 |
|
64 /** |
|
65 * C++ constructor. |
|
66 */ |
|
67 CLandmarksDocument(CEikApplication& aApp); |
|
68 |
|
69 /** |
|
70 * By default Symbian 2nd phase constructor is private. |
|
71 */ |
|
72 void ConstructL(); |
|
73 |
|
74 }; |
|
75 |
|
76 #endif // __LANDMARKS_DOCUMENT_H__ |
|
77 |
|