|
1 /* |
|
2 * Copyright (c) 2002 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: LandmarksUi Content File - Landmarks application document class definition. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef CLMKDOCUMENT_H |
|
25 #define CLMKDOCUMENT_H |
|
26 |
|
27 // INCLUDES |
|
28 #include <eikdoc.h> |
|
29 |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class CEikAppUi; |
|
33 class CPosLandmarkDatabase; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * CLmkDocument application class. |
|
39 */ |
|
40 class CLmkDocument : public CEikDocument |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * @param aApp |
|
46 * @return newly instantiated object |
|
47 */ |
|
48 static CLmkDocument* NewL( CEikApplication& aApp ); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 */ |
|
53 virtual ~CLmkDocument(); |
|
54 |
|
55 public: // New functions |
|
56 /** |
|
57 * Returns a reference to landmarks database. |
|
58 * @return database reference, not initialized necessarily |
|
59 */ |
|
60 CPosLandmarkDatabase& LmDbL() const; |
|
61 |
|
62 private: |
|
63 /** |
|
64 * C++ default constructor. |
|
65 * @param aApp |
|
66 * @return newly instantiated object |
|
67 */ |
|
68 CLmkDocument( CEikApplication& aApp ); |
|
69 |
|
70 /** |
|
71 * By default Symbian 2nd phase constructor is private. |
|
72 */ |
|
73 void ConstructL(); |
|
74 |
|
75 private: // From CEikDocument |
|
76 /** |
|
77 * From CEikDocument, create CLocAppUi "App UI" object. |
|
78 * @return pointer to CEikAppUi object |
|
79 */ |
|
80 CEikAppUi* CreateAppUiL(); |
|
81 |
|
82 private: // Data |
|
83 ///Own: |
|
84 CPosLandmarkDatabase* iDb; |
|
85 TInt iError; |
|
86 }; |
|
87 |
|
88 #endif // CLMKDOCUMENT_H |
|
89 |
|
90 // End of File |