134 QString labelText = QString::fromUtf16 (text.Ptr (), text.Length ()); |
134 QString labelText = QString::fromUtf16 (text.Ptr (), text.Length ()); |
135 PHONE_DEBUG2("PhoneBubbleWrapper::setLabel, label:", labelText); |
135 PHONE_DEBUG2("PhoneBubbleWrapper::setLabel, label:", labelText); |
136 m_bubbleManager.setLabel (bubble, labelText, Qt::ElideRight); |
136 m_bubbleManager.setLabel (bubble, labelText, Qt::ElideRight); |
137 } |
137 } |
138 |
138 |
139 void PhoneBubbleWrapper::setCli (int bubble, const TDesC &cliText) |
139 void PhoneBubbleWrapper::setCli (int bubble, const TDesC &cliText, |
|
140 Qt::TextElideMode elide) |
140 { |
141 { |
141 QString text = QString::fromUtf16 (cliText.Ptr (), cliText.Length ()); |
142 QString text = QString::fromUtf16 (cliText.Ptr (), cliText.Length ()); |
142 PHONE_DEBUG2("PhoneBubbleWrapper::setCli, cli:", text); |
143 PHONE_DEBUG2("PhoneBubbleWrapper::setCli, cli:", text); |
143 m_bubbleManager.setCli (bubble, text, Qt::ElideRight); |
144 m_bubbleManager.setCli (bubble, text, elide); |
144 } |
145 } |
145 |
146 |
146 void PhoneBubbleWrapper::setSecondaryCli (int bubble, const TDesC &cliText) |
147 void PhoneBubbleWrapper::setSecondaryCli (int bubble, const TDesC &cliText, |
|
148 Qt::TextElideMode elide) |
147 { |
149 { |
148 QString text = QString::fromUtf16 (cliText.Ptr (), cliText.Length ()); |
150 QString text = QString::fromUtf16 (cliText.Ptr (), cliText.Length ()); |
149 PHONE_DEBUG2("PhoneBubbleWrapper::setSecondaryCli, SecondaryCli:", text); |
151 PHONE_DEBUG2("PhoneBubbleWrapper::setSecondaryCli, SecondaryCli:", text); |
150 m_bubbleManager.setSecondaryCli (bubble, text); |
152 m_bubbleManager.setSecondaryCli (bubble, text, elide); |
151 } |
153 } |
152 |
154 |
153 void PhoneBubbleWrapper::setCallType (int bubble, int callType) |
155 void PhoneBubbleWrapper::setCallType (int bubble, int callType) |
154 { |
156 { |
155 BubbleManagerIF::PhoneCallFlags callflag = BubbleManagerIF::Normal; |
157 BubbleManagerIF::PhoneCallFlags callflag = BubbleManagerIF::Normal; |
258 setConferenceCallId(callId2); |
260 setConferenceCallId(callId2); |
259 |
261 |
260 m_bubbles.insert(callId,bubble); |
262 m_bubbles.insert(callId,bubble); |
261 setState(callId, bubble, callState ); |
263 setState(callId, bubble, callState ); |
262 setLabel(bubble, labelText); |
264 setLabel(bubble, labelText); |
263 setCli (bubble, cliText); |
265 setCli (bubble, cliText, Qt::ElideRight); |
264 |
266 |
265 //Set conference bubble expanded if no other |
267 //Set conference bubble expanded if no other |
266 //bubbles (like waiting bubble). |
268 //bubbles (like waiting bubble). |
267 m_bubbleManager.setExpandedConferenceCallHeader( |
269 m_bubbleManager.setExpandedConferenceCallHeader( |
268 (1==bubbles().size())); |
270 (1==bubbles().size())); |