|
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's symbian adapter for Qt view. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef PHONECALLHEADERMANAGER_H |
|
19 #define PHONECALLHEADERMANAGER_H |
|
20 |
|
21 |
|
22 #include <QObject> |
|
23 |
|
24 class PhoneUIQtViewIF; |
|
25 class PhoneBubbleWrapper; |
|
26 class PhoneResourceAdapter; |
|
27 class PhoneCallHeaderUtil; |
|
28 class MPEEngineInfo; |
|
29 |
|
30 class PhoneCallHeaderManager : |
|
31 public QObject |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Constructor |
|
39 */ |
|
40 explicit PhoneCallHeaderManager( |
|
41 PhoneBubbleWrapper &m_bubbleWrapper, |
|
42 PhoneUIQtViewIF &view, |
|
43 QObject *parent = 0); |
|
44 |
|
45 /** |
|
46 * Destructor |
|
47 */ |
|
48 virtual ~PhoneCallHeaderManager(); |
|
49 |
|
50 |
|
51 public: |
|
52 |
|
53 void setEngineInfo(MPEEngineInfo* engineInfo); |
|
54 |
|
55 /*! |
|
56 \fn int PhoneUIQtViewAdapter::createCallHeader() |
|
57 |
|
58 This method creates new call header. |
|
59 */ |
|
60 void createCallHeader(int callId); |
|
61 |
|
62 /*! |
|
63 \fn int PhoneUIQtViewAdapter::createCallHeader() |
|
64 |
|
65 This method creates new call header. |
|
66 */ |
|
67 void createEmergencyCallHeader(int callId); |
|
68 |
|
69 /*! |
|
70 \fn int PhoneUIQtViewAdapter::removeCallHeader() |
|
71 |
|
72 This method removes a call header. |
|
73 */ |
|
74 void removeCallHeader(int callId); |
|
75 |
|
76 /*! |
|
77 \fn int PhoneUIQtViewAdapter::updateCallHeader() |
|
78 |
|
79 This method updates call state information in call header. |
|
80 */ |
|
81 void updateCallHeaderState(int callId); |
|
82 |
|
83 /*! |
|
84 \fn int PhoneUIQtViewAdapter::updateCallHeaderRemoteInfo() |
|
85 |
|
86 This method updates remote information in call header. |
|
87 */ |
|
88 void updateCallHeaderRemoteInfo (int callId); |
|
89 |
|
90 /*! |
|
91 \fn int PhoneUIQtViewAdapter::updateCallHeaderRemoteInfo() |
|
92 |
|
93 This method updates remote information in call header and label. |
|
94 */ |
|
95 void updateCallHeaderRemoteInfoAndLabel (int callId); |
|
96 |
|
97 /*! |
|
98 \fn int PhoneUIQtViewAdapter::handleCipheringInfoChange() |
|
99 |
|
100 This method updates ciphering indicators. |
|
101 */ |
|
102 void handleCipheringInfoChange(int callId); |
|
103 |
|
104 /*! |
|
105 \fn int PhoneUIQtViewAdapter::createConference() |
|
106 |
|
107 This method creates conference bubble. |
|
108 */ |
|
109 void createConferenceBubble(int callId); |
|
110 |
|
111 /*! |
|
112 \fn int PhoneUIQtViewAdapter::removeConferenceBubble() |
|
113 |
|
114 This method removes conference bubble. |
|
115 */ |
|
116 void removeConferenceBubble(); |
|
117 |
|
118 /*! |
|
119 \fn int PhoneUIQtViewAdapter::removeCallFromConference() |
|
120 |
|
121 This method removes a call from conference. |
|
122 */ |
|
123 void removeCallFromConference(int callId); |
|
124 |
|
125 /*! |
|
126 \fn void PhoneUIQtViewAdapter::setPrivateFromConference() |
|
127 |
|
128 This method removes call from converence bubble. |
|
129 Used in private command. |
|
130 */ |
|
131 void setPrivateFromConference(int callId); |
|
132 |
|
133 /*! |
|
134 \fn void PhoneUIQtViewAdapter::setExpandedConferenceCallHeader() |
|
135 |
|
136 This method sets conference call header expanded if needed. |
|
137 */ |
|
138 void setExpandedConferenceCallHeader(); |
|
139 |
|
140 /*! |
|
141 \fn void PhoneUIQtViewAdapter::removeAllCallHeaders() |
|
142 |
|
143 This method removes all call headers. |
|
144 */ |
|
145 void removeAllCallHeaders(); |
|
146 |
|
147 /*! |
|
148 \fn void PhoneUIQtViewAdapter::removeAllCallHeaders() |
|
149 |
|
150 This method checks is the call a voice call. |
|
151 */ |
|
152 bool isVoiceCall(int callId) const; |
|
153 |
|
154 /*! |
|
155 \fn void PhoneUIQtViewAdapter::removeAllCallHeaders() |
|
156 |
|
157 This method checks is the call a video call. |
|
158 */ |
|
159 bool isVideoCall( int callId ) const; |
|
160 |
|
161 private: |
|
162 |
|
163 bool isIncoming(int callId) const; |
|
164 |
|
165 bool isWaitingCall(int callId) const; |
|
166 |
|
167 PhoneCallHeaderUtil *callHeaderUtil(); |
|
168 |
|
169 private: |
|
170 |
|
171 PhoneBubbleWrapper &m_bubbleWrapper; |
|
172 PhoneUIQtViewIF &m_view; |
|
173 PhoneCallHeaderUtil *m_callHeaderUtil; |
|
174 PhoneResourceAdapter *m_resourceAdapter; |
|
175 MPEEngineInfo* m_engineInfo; |
|
176 }; |
|
177 |
|
178 #endif // PHONECALLHEADERMANAGER_H |