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