logsui/logsengine/logssymbianos/src/logseventparser.cpp
changeset 2 7119b73b84d6
parent 0 4a5361db8937
child 4 e52d42f9500c
equal deleted inserted replaced
0:4a5361db8937 2:7119b73b84d6
    40     bool dataChanged = false;
    40     bool dataChanged = false;
    41     
    41     
    42     //Set remote party information
    42     //Set remote party information
    43     QString newRemoteParty = 
    43     QString newRemoteParty = 
    44         QString::fromUtf16( source.RemoteParty().Ptr(), source.RemoteParty().Length() );
    44         QString::fromUtf16( source.RemoteParty().Ptr(), source.RemoteParty().Length() );
       
    45     
       
    46     bool remotePartyUnknown( newRemoteParty == strings.iUnKnownRemote );
       
    47     bool remotePartyPrivate( false );
       
    48     bool remotePartyPayphone( false );
       
    49     if ( !remotePartyUnknown ){
       
    50         remotePartyPrivate = ( source.RemoteParty() == KLogsPrivateText );
       
    51     }
       
    52     if ( !remotePartyUnknown && !remotePartyPrivate ){
       
    53         remotePartyPayphone = ( source.RemoteParty() == KLogsPayphoneText );
       
    54     }
       
    55     
    45     if ( !isUnknownRemoteParty(dest, newRemoteParty) && 
    56     if ( !isUnknownRemoteParty(dest, newRemoteParty) && 
    46          newRemoteParty != strings.iUnKnownRemote &&
    57          !remotePartyUnknown && !remotePartyPrivate && !remotePartyPayphone ){
    47          source.RemoteParty() != KLogsPrivateText && 
       
    48          source.RemoteParty() != KLogsPayphoneText ){
       
    49         dest.setRemoteParty( newRemoteParty );
    58         dest.setRemoteParty( newRemoteParty );
    50     }
    59     }
    51         
    60     
    52     dataChanged |= dest.setNumber( 
    61     if ( remotePartyPrivate ){
    53         QString::fromUtf16( source.Number().Ptr(), source.Number().Length() ) );
    62         dest.setRemotePartyPrivate(true);
       
    63     } else {
       
    64         dest.setRemotePartyPrivate(false);
       
    65         dataChanged |= dest.setNumber( 
       
    66               QString::fromUtf16( source.Number().Ptr(), source.Number().Length() ) );
       
    67     }
       
    68     
       
    69     //remoteparty unknown and no number -> unknown
       
    70     dest.setRemotePartyUnknown(remotePartyUnknown && dest.number().isEmpty());
    54     
    71     
    55     // Set direction
    72     // Set direction
    56     QString sourceDirection = 
    73     QString sourceDirection = 
    57         QString::fromUtf16( 
    74         QString::fromUtf16( 
    58                 source.Direction().Ptr(), source.Direction().Length() );
    75                 source.Direction().Ptr(), source.Direction().Length() );