18 |
18 |
19 #ifndef TPHONECALLHEADERPARAM_H |
19 #ifndef TPHONECALLHEADERPARAM_H |
20 #define TPHONECALLHEADERPARAM_H |
20 #define TPHONECALLHEADERPARAM_H |
21 |
21 |
22 //INCLUDES |
22 //INCLUDES |
|
23 #include <bmbubblemanager.h> |
|
24 |
23 #include "mpeengineinfo.h" |
25 #include "mpeengineinfo.h" |
24 #include "tphonecmdparamcallheaderdata.h" |
26 #include "tphonecmdparamcallheaderdata.h" |
25 |
27 |
26 //FORWARD |
28 //FORWARD |
27 class MPhoneStateMachine; |
29 class MPhoneStateMachine; |
66 * parameters will be set. |
68 * parameters will be set. |
67 */ |
69 */ |
68 void SetOutgoingCallHeaderParamsL( |
70 void SetOutgoingCallHeaderParamsL( |
69 const TInt aCallId, |
71 const TInt aCallId, |
70 TPhoneCmdParamCallHeaderData* aCallHeaderData ); |
72 TPhoneCmdParamCallHeaderData* aCallHeaderData ); |
|
73 |
71 /** |
74 /** |
72 * Updates call header info. |
75 * Updates call header info. |
73 * NOTE: This method is used when state receives |
76 * NOTE: This method is used when state receives |
74 * EPEMessageRemotePartyInfoChanged from PhoneEngine. |
77 * EPEMessageRemotePartyInfoChanged from PhoneEngine. |
75 * |
78 * |
82 void UpdateCallHeaderInfoL( |
85 void UpdateCallHeaderInfoL( |
83 const TInt aCallId, |
86 const TInt aCallId, |
84 const TBool aWaitingCall, |
87 const TBool aWaitingCall, |
85 const TBool aVideoCall, |
88 const TBool aVideoCall, |
86 TPhoneCmdParamCallHeaderData* aCallHeaderData ); |
89 TPhoneCmdParamCallHeaderData* aCallHeaderData ); |
87 |
90 |
88 /** |
91 /** |
89 * Sets the call header type used in the call bubble. |
92 * Sets the call header type used in the call bubble. |
90 * @param aCallHeaderType, call header type. |
93 * @param aCallHeaderType, call header type. |
91 */ |
94 */ |
92 void SetCallHeaderType( |
95 void SetCallHeaderType( |
93 TInt aCallHeaderType ); |
96 const CBubbleManager::TPhoneCallTypeFlags aCallHeaderType ); |
94 /** |
97 /** |
95 * Returns the set call header type. Used for constructing right type |
98 * Returns the set call header type. Used for constructing right type |
96 * of call bubble. |
99 * of call bubble. |
97 */ |
100 */ |
98 TInt CallHeaderType() const; |
101 CBubbleManager::TPhoneCallTypeFlags CallHeaderType() const; |
99 |
|
100 /** |
|
101 * Setter for divert indication showing in bubble. |
|
102 * @param aDivertIndication ETrue to show divert indication, |
|
103 * EFalse to not. Usually setting EFalse isn't necessary |
|
104 * as it's a default value in bubble creation. |
|
105 */ |
|
106 void SetDivertIndication( const TBool aDivertIndication ); |
|
107 |
102 |
108 /** |
103 /** |
109 * Return remote info data |
104 * Return remote info data |
110 * @return True if secondary CLI is used |
|
111 * @param aCallid call id |
105 * @param aCallid call id |
112 * @param aData the returned remote info data |
106 * @param aData the returned remote info data |
113 */ |
107 */ |
114 TBool GetRemoteInfoDataL( |
108 void GetRemoteInfoDataL( |
115 const TInt aCallId, |
109 const TInt aCallId, |
116 TDes& aData ) const; |
110 TDes& aData ) const; |
117 |
111 |
118 /** |
112 /** |
119 * Sets texts for voice call header. |
113 * Sets texts for voice call header. |
168 * @param aDirection the returned CNAP clipping direction |
162 * @param aDirection the returned CNAP clipping direction |
169 */ |
163 */ |
170 void GetCNAPText( |
164 void GetCNAPText( |
171 const TInt aCallId, |
165 const TInt aCallId, |
172 TDes& aData, |
166 TDes& aData, |
173 TPhoneCmdParamCallHeaderData::TPhoneTextClippingDirection& aDirection ) const; |
167 CBubbleManager::TPhoneClippingDirection& aDirection ) const; |
174 |
168 |
175 /** |
169 /** |
176 * Check if contact is available(RemoteName or RemoteCompanyName), |
170 * Check if contact is available(RemoteName or RemoteCompanyName), |
177 * if available ETrue is returned otherwise EFalse. |
171 * if available ETrue is returned otherwise EFalse. |
178 * @param aCallid call id |
172 * @param aCallid call id |
215 * are made. |
209 * are made. |
216 */ |
210 */ |
217 void SetCliParamatersL( |
211 void SetCliParamatersL( |
218 const TInt aCallId, |
212 const TInt aCallId, |
219 TPhoneCmdParamCallHeaderData* aCallHeaderData ); |
213 TPhoneCmdParamCallHeaderData* aCallHeaderData ); |
|
214 |
|
215 /** |
|
216 * Check if call is private or payphone number. If call is |
|
217 * Private/PayPhone call then IsCallPrivateOrPayPhone will |
|
218 * set SetIdentitySpecificCallHeaderData parameters. |
|
219 * |
|
220 * @param aCallId Call id. |
|
221 * @return ETrue if call is private or payphone number. |
|
222 */ |
|
223 TBool IsCallPrivateOrPayPhone( const TInt aCallId, TDes& aData ) const; |
|
224 |
|
225 /** |
|
226 * Sets identity specific call header text. |
|
227 * |
|
228 * @param aCallId Call id. |
|
229 * @param aData Identity specific call header text data. |
|
230 */ |
|
231 void SetIdentitySpecificCallHeaderData( const TInt aCallId, TDes& aData ) const; |
220 |
232 |
221 /** |
233 /** |
222 * Concludes does the engine have information of the |
234 * Concludes does the engine have information of the |
223 * phone number. This information is then send to the view. |
235 * phone number. This information is then send to the view. |
224 * @param aNumberLength - phone number's length |
236 * @param aNumberLength - phone number's length |
225 * @param aContactInfoAvailable - is contact's info available |
237 * @param aContactInfoAvailable - is contact's info available |
226 */ |
238 */ |
227 void SetPhoneNumberAvailabilityL( |
239 void SetPhoneNumberAvailabilityL( |
228 const TInt aNumberLength, |
240 const TInt aNumberLength, |
229 const TBool aContactInfoAvailable ); |
241 const TBool aContactInfoAvailable ); |
230 |
242 |
|
243 /** |
|
244 * Set call header labels. |
|
245 * @param aCallHeaderData - call header params. |
|
246 */ |
|
247 void SetCallHeaderLabels( |
|
248 TPhoneCmdParamCallHeaderData* aCallHeaderData ); |
|
249 |
231 private: |
250 private: |
232 |
251 |
233 MPhoneCallHeaderManagerUtility& iManagerUtility; |
252 MPhoneCallHeaderManagerUtility& iManagerUtility; |
234 MPhoneStateMachine& iStateMachine; |
253 MPhoneStateMachine& iStateMachine; |
235 TInt iCallHeaderType; |
254 CBubbleManager::TPhoneCallTypeFlags iCallHeaderType; |
236 TBool iSetDivertIndication; |
|
237 |
|
238 }; |
255 }; |
239 |
256 |
240 #endif // TPHONECALLHEADERPARAM_H |
257 #endif // TPHONECALLHEADERPARAM_H |