|
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 CBrowserInitialContainer. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef BROWSERINITIALCONTAINER_H |
|
22 #define BROWSERINITIALCONTAINER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <coecntrl.h> |
|
26 #include <eiklbo.h> |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CBrowserInitialView; |
|
30 class CBrowserGotoPane; |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CBrowserInitialContainer container control class. |
|
36 */ |
|
37 class CBrowserInitialContainer : public CCoeControl, MCoeControlObserver |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * default constructor. |
|
43 * @param aRect Frame rectangle for container. |
|
44 */ |
|
45 void ConstructL(const TRect& aRect); |
|
46 |
|
47 /** |
|
48 * Constructor |
|
49 */ |
|
50 CBrowserInitialContainer( CBrowserInitialView *aView ); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CBrowserInitialContainer(); |
|
56 |
|
57 |
|
58 |
|
59 public: // Functions from base classes |
|
60 |
|
61 public: // New functions |
|
62 |
|
63 /** |
|
64 * Opens the selected listbox item |
|
65 */ |
|
66 void OpenSelectedListboxItemL( ); |
|
67 |
|
68 /** |
|
69 * Access the created goto pane. |
|
70 * @return Handle to web menu`s goto pane. |
|
71 */ |
|
72 CBrowserGotoPane* GotoPane() { return iGotoPane; } |
|
73 |
|
74 /** |
|
75 * Shuts down goto pane. |
|
76 */ |
|
77 void ShutDownGotoURLEditorL(); |
|
78 |
|
79 |
|
80 private: // Functions from base classes |
|
81 |
|
82 /** |
|
83 * From CoeControl,SizeChanged. |
|
84 */ |
|
85 void SizeChanged(); |
|
86 |
|
87 /** |
|
88 * From CoeControl,CountComponentControls. |
|
89 */ |
|
90 TInt CountComponentControls() const; |
|
91 |
|
92 /** |
|
93 * From CCoeControl,ComponentControl. |
|
94 */ |
|
95 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
96 |
|
97 /** |
|
98 * From CCoeControl,Draw. |
|
99 */ |
|
100 void Draw(const TRect& aRect) const; |
|
101 |
|
102 /** |
|
103 * From MCoeControlObserver |
|
104 * Acts upon changes in the hosted control's state. |
|
105 * |
|
106 * @param aControl The control changing its state |
|
107 * @param aEventType The type of control event |
|
108 */ |
|
109 void HandleControlEventL( CCoeControl* aControl,TCoeEvent aEventType ); |
|
110 |
|
111 |
|
112 private: // New functions |
|
113 |
|
114 /** |
|
115 * From CCoeControl |
|
116 */ |
|
117 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType); |
|
118 |
|
119 /** |
|
120 * Gets the resource id of web menu`s title. |
|
121 */ |
|
122 TInt TitleResourceId(); |
|
123 |
|
124 CBrowserInitialView* iView; // not owned |
|
125 |
|
126 private: //data |
|
127 CBrowserGotoPane* iGotoPane; // the gotopane |
|
128 }; |
|
129 |
|
130 #endif |
|
131 |
|
132 // End of File |