|
1 /* |
|
2 * Copyright (c) 2007 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: Declares document for application. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef HSBROWSERDOCUMENT_H |
|
21 #define HSBROWSERDOCUMENT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <AknDoc.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CEikAppUi; |
|
30 class CHsBrowserModel; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CHsBrowserDocument application class. |
|
36 */ |
|
37 class CHsBrowserDocument : public CAknDocument |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 /** |
|
41 * Two-phased constructor. |
|
42 */ |
|
43 static CHsBrowserDocument* NewL( CEikApplication& aApp ); |
|
44 |
|
45 /** |
|
46 * Destructor. |
|
47 */ |
|
48 virtual ~CHsBrowserDocument(); |
|
49 |
|
50 public: // access |
|
51 |
|
52 /** |
|
53 * Accessor method for iModel. |
|
54 * |
|
55 * @return CHsBrowserModel* A pointer to model of HsBrowser. |
|
56 */ |
|
57 inline CHsBrowserModel* Model(); |
|
58 |
|
59 private: |
|
60 |
|
61 /** |
|
62 * C++ default constructor. |
|
63 */ |
|
64 CHsBrowserDocument( CEikApplication& aApp ); |
|
65 |
|
66 /** |
|
67 * By default Symbian 2nd phase constructor is private. |
|
68 */ |
|
69 void ConstructL(); |
|
70 |
|
71 private: // new |
|
72 |
|
73 /** |
|
74 * Initialize model. |
|
75 */ |
|
76 //inline void ResetModel(); |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 * From CEikDocument, create CBrCtlSampleAppAppUi "App UI" object. |
|
82 */ |
|
83 CEikAppUi* CreateAppUiL(); |
|
84 |
|
85 private: // data |
|
86 |
|
87 /** |
|
88 * Pointer to model of HsBrowser. |
|
89 * Owned. |
|
90 */ |
|
91 CHsBrowserModel* iModel; |
|
92 }; |
|
93 |
|
94 #include "hsbrowserdocument.inl" |
|
95 |
|
96 #endif |
|
97 |
|
98 // End of File |
|
99 |