74
|
1 |
/*!
|
|
2 |
* Copyright (c) 2009 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: Phone UI Qt view's interface.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef PHONEUIQTVIEWIF_STUB_H
|
|
19 |
#define PHONEUIQTVIEWIF_STUB_H
|
|
20 |
|
|
21 |
#include <bubblemanagerif.h>
|
|
22 |
#include <phoneuiqtviewif.h>
|
|
23 |
|
|
24 |
class QKeyEvent;
|
|
25 |
class QString;
|
|
26 |
class HbIcon;
|
|
27 |
class HbAction;
|
|
28 |
class HbMenu;
|
|
29 |
|
|
30 |
class PhoneUIQtViewIFStub : public PhoneUIQtViewIF
|
|
31 |
{
|
|
32 |
|
|
33 |
public:
|
|
34 |
|
|
35 |
PhoneUIQtViewIFStub(BubbleManagerIF& bubbleManager):mBubbleManager(bubbleManager) {};
|
|
36 |
|
|
37 |
virtual ~PhoneUIQtViewIFStub() {};
|
|
38 |
|
|
39 |
/*!
|
|
40 |
\fn void PhoneUIQtViewIF::bubbleManager ()
|
|
41 |
|
|
42 |
Returns reference to BubbleManager's interface.
|
|
43 |
*/
|
|
44 |
BubbleManagerIF& bubbleManager () {return mBubbleManager;};
|
|
45 |
|
|
46 |
/*!
|
|
47 |
\fn void PhoneUIQtViewIF::addBubbleCommand ()
|
|
48 |
|
|
49 |
Adds new command to bubble. Command id will be emitted as
|
|
50 |
a parameter from view's command(int) signal.
|
|
51 |
*/
|
|
52 |
void addBubbleCommand (
|
|
53 |
int bubbleId,
|
78
|
54 |
HbAction* action ) {};
|
74
|
55 |
|
|
56 |
/*!
|
|
57 |
\fn void PhoneUIQtViewIF::clearBubbleCommands ()
|
|
58 |
|
|
59 |
Clears commands from bubble.
|
|
60 |
*/
|
|
61 |
void clearBubbleCommands (int bubbleId){};
|
|
62 |
|
|
63 |
/*!
|
|
64 |
\fn void PhoneUIQtView::addParticipantListAction ()
|
|
65 |
|
|
66 |
Adds new patricipant list command to conference bubble.
|
|
67 |
*/
|
|
68 |
void addParticipantListAction(
|
|
69 |
int commandId,
|
|
70 |
const QString &text,
|
|
71 |
const HbIcon &icon) {};
|
|
72 |
|
|
73 |
/*!
|
|
74 |
\fn void PhoneUIQtView::clearBubbleCommands ()
|
|
75 |
|
|
76 |
Clears participant list commands from conference bubble.
|
|
77 |
*/
|
|
78 |
void clearParticipantListActions() {};
|
|
79 |
|
|
80 |
/*!
|
|
81 |
\fn void PhoneUIQtViewIF::setToolbarActions()
|
|
82 |
|
|
83 |
Sets toolbar actions.
|
|
84 |
*/
|
78
|
85 |
void setToolbarActions(const QList<HbAction *> &actions) {};
|
74
|
86 |
|
|
87 |
/*!
|
|
88 |
\fn void PhoneUIQtViewIF::hideToolbar ()
|
|
89 |
|
|
90 |
Hides toolbar.
|
|
91 |
*/
|
|
92 |
void hideToolbar () {};
|
|
93 |
|
|
94 |
/*!
|
|
95 |
\fn void PhoneUIQtViewIF::showToolbar ()
|
|
96 |
|
|
97 |
Shows toolbar.
|
|
98 |
*/
|
|
99 |
void showToolbar (){};
|
|
100 |
|
|
101 |
/*!
|
|
102 |
\fn int PhoneUIQtViewIF::volumeSliderValue ()
|
|
103 |
|
|
104 |
Returns HbVolumeSliderPopup's volume value.
|
|
105 |
If this volume slider isn't active -1 is returned.
|
|
106 |
*/
|
|
107 |
int volumeSliderValue () {};
|
|
108 |
|
|
109 |
/*!
|
|
110 |
\fn void PhoneUIQtViewIF::removeVolumeSlider ()
|
|
111 |
|
|
112 |
Removes HbVolumeSliderPopup.
|
|
113 |
*/
|
|
114 |
void removeVolumeSlider () {};
|
|
115 |
|
|
116 |
/*!
|
|
117 |
\fn void PhoneUIQtViewIF::setVolumeSliderValue (int value)
|
|
118 |
|
|
119 |
Sets slider value to HbVolumeSliderPopup.
|
|
120 |
*/
|
|
121 |
void setVolumeSliderValue (
|
|
122 |
int value,
|
|
123 |
int commandId,
|
|
124 |
int maxVolumeValue,
|
|
125 |
int minVolumeValue){};
|
|
126 |
|
|
127 |
/*!
|
|
128 |
\fn void PhoneUIQtViewIF::setExpandAction ()
|
|
129 |
|
|
130 |
Sets expand action.
|
|
131 |
*/
|
|
132 |
void setExpandAction(int bubbleId, int commandId) {};
|
|
133 |
|
|
134 |
/*!
|
|
135 |
\fn void PhoneUIQtViewIF::removeExpandAction ()
|
|
136 |
|
|
137 |
Removes expand action.
|
|
138 |
*/
|
|
139 |
void removeExpandAction(int bubbleId){};
|
|
140 |
|
|
141 |
/*!
|
|
142 |
\fn void PhoneUIQtView::showDialpad()
|
|
143 |
|
|
144 |
Shows dialpad widget.
|
|
145 |
*/
|
|
146 |
void showDialpad() {};
|
|
147 |
|
|
148 |
/*!
|
|
149 |
\fn void PhoneUIQtView::hideDialpad()
|
|
150 |
|
|
151 |
Hides dialpad widget.
|
|
152 |
*/
|
|
153 |
void hideDialpad(){};
|
|
154 |
|
|
155 |
/*!
|
|
156 |
\fn void PhoneUIQtView::isDialpadVisible()
|
|
157 |
|
|
158 |
Check is dialpad visible.
|
|
159 |
*/
|
|
160 |
bool isDialpadVisible() {};
|
|
161 |
|
|
162 |
/*!
|
|
163 |
\fn void PhoneUIQtView::dialpadString()
|
|
164 |
|
|
165 |
Returns content of the dialpad.
|
|
166 |
*/
|
|
167 |
QString dialpadText(){};
|
|
168 |
|
|
169 |
/*!
|
|
170 |
\fn void PhoneUIQtView::dialpadString()
|
|
171 |
|
|
172 |
Clears and hides dialpad.
|
|
173 |
*/
|
|
174 |
void clearAndHideDialpad() {};
|
|
175 |
|
|
176 |
/*!
|
|
177 |
\fn void PhoneUIQtView::clearDialpad()
|
|
178 |
|
|
179 |
Clears text from dialpad.
|
|
180 |
*/
|
|
181 |
void clearDialpad(){};
|
|
182 |
|
|
183 |
/*!
|
|
184 |
\fn void PhoneUIQtView::bringToForeground()
|
|
185 |
|
|
186 |
Brings to foreground.
|
|
187 |
*/
|
|
188 |
void bringToForeground() {};
|
|
189 |
|
78
|
190 |
void hide() {};
|
|
191 |
|
74
|
192 |
/*!
|
|
193 |
\fn void PhoneUIQtViewIF::setToolbarActions()
|
|
194 |
|
|
195 |
Sets menu actions.
|
|
196 |
*/
|
78
|
197 |
void setMenuActions(const QList<HbAction *> &actions) {};
|
74
|
198 |
|
|
199 |
/*!
|
|
200 |
\fn void PhoneUIQtView::shutdownPhoneApp()
|
|
201 |
|
|
202 |
Shutdown phone application.
|
|
203 |
*/
|
|
204 |
void shutdownPhoneApp(){};
|
|
205 |
|
|
206 |
/*
|
|
207 |
\fn void PhoneUIQtView::setBackButtonVisible()
|
|
208 |
|
|
209 |
Set the Back command visibility in TitleBar
|
|
210 |
*/
|
|
211 |
void setBackButtonVisible(bool visible){};
|
|
212 |
|
|
213 |
/*!
|
|
214 |
\fn void PhoneUIQtViewIF::setToolbarActions()
|
|
215 |
|
|
216 |
Returns HbMenu reference.
|
|
217 |
*/
|
|
218 |
HbMenu &menuReference() {};
|
|
219 |
|
|
220 |
/*!
|
|
221 |
\fn void PhoneUIQtViewIF::captureKey()
|
|
222 |
|
|
223 |
Captures key.
|
|
224 |
*/
|
|
225 |
void captureKey(Qt::Key key, bool capture){};
|
|
226 |
|
|
227 |
/*
|
|
228 |
\fn void setRestrictedMode()
|
|
229 |
|
|
230 |
Sets Ui to restricted mode. Decides which keyevent are allowed.
|
|
231 |
*/
|
|
232 |
void setRestrictedMode(bool restrictedMode){};
|
|
233 |
|
|
234 |
BubbleManagerIF& mBubbleManager;
|
|
235 |
};
|
|
236 |
|
|
237 |
#endif // PHONEUIQTVIEWIF_H
|