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'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 |
|
76
|
79 |
This method updates call header.
|
74
|
80 |
*/
|
76
|
81 |
void updateCallHeader(int callId);
|
74
|
82 |
|
|
83 |
/*!
|
|
84 |
\fn int PhoneUIQtViewAdapter::handleCipheringInfoChange()
|
|
85 |
|
|
86 |
This method updates ciphering indicators.
|
|
87 |
*/
|
|
88 |
void handleCipheringInfoChange(int callId);
|
|
89 |
|
|
90 |
/*!
|
|
91 |
\fn int PhoneUIQtViewAdapter::createConference()
|
|
92 |
|
|
93 |
This method creates conference bubble.
|
|
94 |
*/
|
|
95 |
void createConferenceBubble(int callId);
|
|
96 |
|
|
97 |
/*!
|
|
98 |
\fn int PhoneUIQtViewAdapter::removeConferenceBubble()
|
|
99 |
|
|
100 |
This method removes conference bubble.
|
|
101 |
*/
|
|
102 |
void removeConferenceBubble();
|
|
103 |
|
|
104 |
/*!
|
|
105 |
\fn int PhoneUIQtViewAdapter::removeCallFromConference()
|
|
106 |
|
|
107 |
This method removes a call from conference.
|
|
108 |
*/
|
|
109 |
void removeCallFromConference(int callId);
|
|
110 |
|
|
111 |
/*!
|
|
112 |
\fn void PhoneUIQtViewAdapter::setPrivateFromConference()
|
|
113 |
|
|
114 |
This method removes call from converence bubble.
|
|
115 |
Used in private command.
|
|
116 |
*/
|
|
117 |
void setPrivateFromConference(int callId);
|
|
118 |
|
|
119 |
/*!
|
|
120 |
\fn void PhoneUIQtViewAdapter::setExpandedConferenceCallHeader()
|
|
121 |
|
|
122 |
This method sets conference call header expanded if needed.
|
|
123 |
*/
|
|
124 |
void setExpandedConferenceCallHeader();
|
|
125 |
|
|
126 |
/*!
|
|
127 |
\fn void PhoneUIQtViewAdapter::removeAllCallHeaders()
|
|
128 |
|
|
129 |
This method removes all call headers.
|
|
130 |
*/
|
|
131 |
void removeAllCallHeaders();
|
|
132 |
|
|
133 |
/*!
|
|
134 |
\fn void PhoneUIQtViewAdapter::removeAllCallHeaders()
|
|
135 |
|
|
136 |
This method checks is the call a voice call.
|
|
137 |
*/
|
76
|
138 |
bool isVoiceCall(int callId);
|
74
|
139 |
|
|
140 |
private:
|
|
141 |
|
76
|
142 |
void setCommonCallHeaderData(int callId, int bubble);
|
74
|
143 |
|
76
|
144 |
void sendVideoCallData(int callId);
|
74
|
145 |
|
|
146 |
PhoneCallHeaderUtil *callHeaderUtil();
|
|
147 |
|
|
148 |
private:
|
|
149 |
|
|
150 |
PhoneBubbleWrapper &m_bubbleWrapper;
|
|
151 |
PhoneUIQtViewIF &m_view;
|
|
152 |
PhoneCallHeaderUtil *m_callHeaderUtil;
|
|
153 |
PhoneResourceAdapter *m_resourceAdapter;
|
|
154 |
MPEEngineInfo* m_engineInfo;
|
|
155 |
};
|
|
156 |
|
|
157 |
#endif // PHONECALLHEADERMANAGER_H
|