1 /* |
|
2 * Copyright (c) 2006 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 the License "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 * Declaration of class CBrowserInitialView. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef BROWSERINITIALVIEW_H |
|
22 #define BROWSERINITIALVIEW_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <aknview.h> |
|
26 #include "BrowserAppViewBase.h" |
|
27 #include "BrowserGotoPane.h" |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CBrowserInitialContainer; |
|
31 class CBrowserBookmarksView; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * CBrowserInitialView view class. |
|
37 */ |
|
38 class CBrowserInitialView : public CBrowserViewBase, |
|
39 public MGotoPaneObserver |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. Leaves on failure. Places the instance |
|
45 * on the cleanup stack. |
|
46 * @param aApiProvider The API provider. |
|
47 * @return The constructed view. |
|
48 */ |
|
49 static CBrowserInitialView* NewLC( MApiProvider& aApiProvider ); |
|
50 |
|
51 /** |
|
52 * default constructor. |
|
53 */ |
|
54 void ConstructL(); |
|
55 |
|
56 /** |
|
57 * Constructor |
|
58 */ |
|
59 CBrowserInitialView( MApiProvider& aApiProvider); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 ~CBrowserInitialView(); |
|
65 |
|
66 public: // Functions from base classes |
|
67 |
|
68 /** |
|
69 * From CAknView returns Uid of View |
|
70 * @return TUid uid of the view |
|
71 */ |
|
72 TUid Id() const; |
|
73 |
|
74 /** |
|
75 * From MEikMenuObserver delegate commands from the menu |
|
76 * @param aCommand a command emitted by the menu |
|
77 * @return void |
|
78 */ |
|
79 void HandleCommandL(TInt aCommand); |
|
80 |
|
81 /** |
|
82 * From CBrowserViewBase reaction if size change |
|
83 * @return void |
|
84 */ |
|
85 void HandleClientRectChange(); |
|
86 |
|
87 /** |
|
88 * Return command set id, to be displayed. |
|
89 * @since 1.2 |
|
90 * @return The command set's resource id. |
|
91 */ |
|
92 virtual TInt CommandSetResourceIdL(); |
|
93 |
|
94 /** |
|
95 * Set command set lsk,rsk,msk dynamically via pointers. |
|
96 * Derived classes should implement, though it can be empty. |
|
97 * If it does nothing, empty softkeys will be assigned |
|
98 * @since 5.0 |
|
99 */ |
|
100 void CommandSetResourceDynL(TSKPair& /*lsk*/, TSKPair& /*rsk*/, TSKPair& /*msk*/) {}; |
|
101 |
|
102 public: // Functions from base classes |
|
103 |
|
104 private: |
|
105 |
|
106 /** |
|
107 * From CAknView activate the view |
|
108 * @param aPrevViewId |
|
109 * @param aCustomMessageId |
|
110 * @param aCustomMessage |
|
111 * @return void |
|
112 */ |
|
113 void DoActivateL( const TVwsViewId& aPrevViewId, |
|
114 TUid aCustomMessageId, |
|
115 const TDesC8& aCustomMessage ); |
|
116 |
|
117 /** |
|
118 * Launches the goto address editor. |
|
119 */ |
|
120 void LaunchGotoAddressEditorL(); |
|
121 |
|
122 /** |
|
123 * Handles GotoPane events |
|
124 */ |
|
125 void HandleGotoPaneEventL( CBrowserGotoPane* aGotoPane, TEvent aEvent ); |
|
126 |
|
127 /** |
|
128 * Updates GotoPane |
|
129 */ |
|
130 void UpdateGotoPaneL(); |
|
131 |
|
132 /** |
|
133 * Loads the typed url into content view. |
|
134 */ |
|
135 void GotoUrlInGotoPaneL(); |
|
136 |
|
137 /** |
|
138 * Dynamically initialize menu panes. |
|
139 * @param aResourceId ID for the resource to be loaded |
|
140 * @param aMenuPane Menu pane |
|
141 */ |
|
142 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); |
|
143 |
|
144 /** |
|
145 * From CAknView deactivate the view (free resources) |
|
146 * @return void |
|
147 */ |
|
148 void DoDeactivate(); |
|
149 |
|
150 public: |
|
151 |
|
152 private: // Data |
|
153 CBrowserInitialContainer* iContainer; |
|
154 |
|
155 // GotoPane`s text |
|
156 HBufC* iEnteredURL; |
|
157 }; |
|
158 |
|
159 #endif |
|
160 |
|
161 // End of File |
|