--- a/logsui/logsengine/logssymbianos/src/logseventparser.cpp Tue May 04 12:39:37 2010 +0300
+++ b/logsui/logsengine/logssymbianos/src/logseventparser.cpp Fri May 14 15:52:41 2010 +0300
@@ -42,15 +42,32 @@
//Set remote party information
QString newRemoteParty =
QString::fromUtf16( source.RemoteParty().Ptr(), source.RemoteParty().Length() );
+
+ bool remotePartyUnknown( newRemoteParty == strings.iUnKnownRemote );
+ bool remotePartyPrivate( false );
+ bool remotePartyPayphone( false );
+ if ( !remotePartyUnknown ){
+ remotePartyPrivate = ( source.RemoteParty() == KLogsPrivateText );
+ }
+ if ( !remotePartyUnknown && !remotePartyPrivate ){
+ remotePartyPayphone = ( source.RemoteParty() == KLogsPayphoneText );
+ }
+
if ( !isUnknownRemoteParty(dest, newRemoteParty) &&
- newRemoteParty != strings.iUnKnownRemote &&
- source.RemoteParty() != KLogsPrivateText &&
- source.RemoteParty() != KLogsPayphoneText ){
+ !remotePartyUnknown && !remotePartyPrivate && !remotePartyPayphone ){
dest.setRemoteParty( newRemoteParty );
}
-
- dataChanged |= dest.setNumber(
- QString::fromUtf16( source.Number().Ptr(), source.Number().Length() ) );
+
+ if ( remotePartyPrivate ){
+ dest.setRemotePartyPrivate(true);
+ } else {
+ dest.setRemotePartyPrivate(false);
+ dataChanged |= dest.setNumber(
+ QString::fromUtf16( source.Number().Ptr(), source.Number().Length() ) );
+ }
+
+ //remoteparty unknown and no number -> unknown
+ dest.setRemotePartyUnknown(remotePartyUnknown && dest.number().isEmpty());
// Set direction
QString sourceDirection =