adaptationlayer/tsy/nokiatsy_dll/src/cmmsmscache.cpp
changeset 5 8ccc39f9d787
parent 0 63b37f68c1ce
child 9 8486d82aef45
equal deleted inserted replaced
4:510c70acdbf6 5:8ccc39f9d787
    23 #include <ctsy/rmmcustomapi.h>
    23 #include <ctsy/rmmcustomapi.h>
    24 #include "cmmsmscache.h"
    24 #include "cmmsmscache.h"
    25 #include "tsylogger.h"
    25 #include "tsylogger.h"
    26 #include "tisi.h"
    26 #include "tisi.h"
    27 #include <smsisi.h>
    27 #include <smsisi.h>
    28 #include "osttracedefinitions.h"
    28 #include "OstTraceDefinitions.h"
    29 #ifdef OST_TRACE_COMPILER_IN_USE
    29 #ifdef OST_TRACE_COMPILER_IN_USE
    30 #include "cmmsmscachetraces.h"
    30 #include "cmmsmscacheTraces.h"
    31 #endif
    31 #endif
    32 
    32 
    33 //  External Data Structures
    33 //  External Data Structures
    34 //  none
    34 //  none
    35 
    35 
   326         delete iElements[i];
   326         delete iElements[i];
   327         iElements[i] = NULL;
   327         iElements[i] = NULL;
   328         }
   328         }
   329     }
   329     }
   330 
   330 
       
   331 // -----------------------------------------------------------------------------
       
   332 // CMmSmsCache::SetStorageStatus
       
   333 // Changes the storage status of a cached entry (TS 31.102, clause 4.2.25)
       
   334 // -----------------------------------------------------------------------------
       
   335 //
       
   336 void CMmSmsCache::SetStorageStatus(
       
   337     TInt aLocation,
       
   338     RMobileSmsStore::TMobileSmsStoreStatus aMsgStatus )
       
   339     {
       
   340 TFLOGSTRING2("TSY: CMmSmsCache::SetStorageStatus(loc=%d)", aLocation);
       
   341 OstTrace1( TRACE_NORMAL, CMMSMSCACHE_SETSTORAGESTATUS, "CMmSmsCache::SetStorageStatus;aLocation=%d", aLocation );
       
   342 
       
   343     if ( aLocation <= iElements.Count()
       
   344         && aLocation >= 1
       
   345         && iElements[aLocation-1] )
       
   346         {
       
   347         // Entry exists, update status.
       
   348         iElements[aLocation-1]->iMsgStatus = aMsgStatus;
       
   349         }
       
   350     }
   331 //  End of File
   351 //  End of File