equal
deleted
inserted
replaced
240 // ----------------------------------------------------------------------------- |
240 // ----------------------------------------------------------------------------- |
241 // |
241 // |
242 QString LogsDetailsModel::getHeaderData(const LogsEvent& event) const |
242 QString LogsDetailsModel::getHeaderData(const LogsEvent& event) const |
243 { |
243 { |
244 QString headerdata(event.remoteParty()); |
244 QString headerdata(event.remoteParty()); |
|
245 if ( event.isRemotePartyPrivate() ){ |
|
246 headerdata = hbTrId("txt_dial_dblist_call_id_val_privat_number"); |
|
247 } |
|
248 |
245 if ( headerdata.length() == 0 && event.number().length() > 0 ){ |
249 if ( headerdata.length() == 0 && event.number().length() > 0 ){ |
246 headerdata = event.number(); |
250 headerdata = event.number(); |
247 } |
251 } |
248 |
252 |
249 if ( headerdata.length() == 0 ){ |
253 if ( headerdata.length() == 0 ){ |
305 |
309 |
306 // ----------------------------------------------------------------------------- |
310 // ----------------------------------------------------------------------------- |
307 // |
311 // |
308 // ----------------------------------------------------------------------------- |
312 // ----------------------------------------------------------------------------- |
309 // |
313 // |
310 QString LogsDetailsModel::getHeaderValue(QString value,bool isRemote) const |
314 QString LogsDetailsModel::getHeaderValue(QString /*value*/,bool isRemote) const |
311 { |
315 { |
312 QString headervalue(""); |
316 QString headervalue(""); |
313 if (isAddress(value)){ |
317 if ((isOutgoingCall() && isRemote)|| (!isOutgoingCall() && !isRemote)){ |
314 if ((isOutgoingCall() && isRemote)|| (!isOutgoingCall() && !isRemote)){ |
|
315 headervalue = hbTrId("txt_dial_dblist_callee_id"); |
318 headervalue = hbTrId("txt_dial_dblist_callee_id"); |
316 } |
319 } |
317 else{ |
320 else{ |
318 headervalue = hbTrId("txt_dialer_ui_dblist_call_id"); |
321 headervalue = hbTrId("txt_dialer_ui_dblist_call_id"); |
319 } |
322 } |
320 } |
323 return headervalue; |
321 else { |
|
322 if ((isOutgoingCall() && isRemote)|| (!isOutgoingCall() && !isRemote)) { |
|
323 headervalue = hbTrId("txt_dial_dblist_callee_id"); |
|
324 } |
|
325 else { |
|
326 headervalue = hbTrId("txt_dialer_ui_dblist_call_id"); |
|
327 } |
|
328 } |
|
329 |
|
330 return headervalue; |
|
331 } |
324 } |
332 |
325 |
333 // ----------------------------------------------------------------------------- |
326 // ----------------------------------------------------------------------------- |
334 // |
327 // |
335 // ----------------------------------------------------------------------------- |
328 // ----------------------------------------------------------------------------- |