mmsengine/mmsserver/src/mmslog.cpp
branchRCL_3
changeset 60 7fdbb852d323
parent 57 ebe688cedc25
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
    18 */
    18 */
    19 
    19 
    20 
    20 
    21 
    21 
    22 // INCLUDE FILES
    22 // INCLUDE FILES
       
    23 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS
       
    24 #include <logwraplimits.h>
       
    25 #endif
    23 #include    <badesca.h>
    26 #include    <badesca.h>
    24 #include    <msvids.h>
    27 #include    <msvids.h>
    25 #include    <logcli.h>
    28 #include    <logcli.h>
    26 #include    <logview.h>
    29 #include    <logview.h>
    27 // common component
    30 // common component
    28 #include    <sysutil.h>
    31 #include    <sysutil.h>
    29 #include    "LogsApiConsts.h"
    32 #include    <LogsApiConsts.h>
    30 
    33 
    31 // MMS specific
    34 // MMS specific
    32 #include    "mmsconst.h"
    35 #include    "mmsconst.h"
    33 #include    "mmslog.h"
    36 #include    "mmslog.h"
    34 #include    "mmsgenutils.h"
    37 #include    "mmsgenutils.h"
   611 #endif
   614 #endif
   612 
   615 
   613     // This will mark the entry as "sent" or "delivered" or "failed"
   616     // This will mark the entry as "sent" or "delivered" or "failed"
   614     // or something similar...
   617     // or something similar...
   615     TBool doNotUpdate = EFalse;
   618     TBool doNotUpdate = EFalse;
   616      if ( iLogUpdatedEvent->Status().CompareF( KLogsMsgReadText ) == 0 )
   619     if ( iLogUpdatedEvent->Status().CompareF( KLogsMsgReadText ) == 0 )
   617          {
   620         {
   618          // If the status is already "read" we don't change it
   621         // If the status is already "read" we don't change it
   619          // This is a case where a delivery report arrives after a read report.
   622         // This is a case where a delivery report arrives after a read report.
   620          // Highly unlikely, but possible
   623         // Highly unlikely, but possible
   621          doNotUpdate = ETrue;
   624         doNotUpdate = ETrue;
   622  #ifndef _NO_MMSS_LOGGING_
   625 #ifndef _NO_MMSS_LOGGING_
   623          TMmsLogger::Log( _L("Status already updated to read - do not update again"));
   626         TMmsLogger::Log( _L("Status already updated to read - do not update again"));
   624  #endif
   627 #endif
   625          }
   628         }
   626      else
   629     else
   627          {
   630         {
   628          iLogUpdatedEvent->SetStatus( iLogEvent->Status() );
   631         iLogUpdatedEvent->SetStatus( iLogEvent->Status() );
   629          // Clear the event read flag in case the user has cleared the log view
   632         // Clear the event read flag in case the user has cleared the log view
   630          // We want this to become visible again.
   633         // We want this to become visible again.
   631          iLogUpdatedEvent->ClearFlags( KLogEventRead );
   634         iLogUpdatedEvent->ClearFlags( KLogEventRead );
   632          }
   635         }
   633     // if we have a message id, store it
   636     // if we have a message id, store it
   634     if ( ( iLogUpdatedEvent->Data().Length() <= 0 ) &&
   637     if ( ( iLogUpdatedEvent->Data().Length() <= 0 ) &&
   635         ( iLogEvent->Data().Length() > 0 ) )
   638         ( iLogEvent->Data().Length() > 0 ) )
   636         {
   639         {
   637         iLogUpdatedEvent->SetDataL( iLogEvent->Data() );
   640         iLogUpdatedEvent->SetDataL( iLogEvent->Data() );