adaptationlayer/tsy/nokiatsy_dll/src/cmmsmscache.cpp
changeset 5 8ccc39f9d787
parent 0 63b37f68c1ce
child 9 8486d82aef45
--- a/adaptationlayer/tsy/nokiatsy_dll/src/cmmsmscache.cpp	Mon Nov 09 10:36:19 2009 +0000
+++ b/adaptationlayer/tsy/nokiatsy_dll/src/cmmsmscache.cpp	Thu Jan 14 10:44:58 2010 +0200
@@ -25,9 +25,9 @@
 #include "tsylogger.h"
 #include "tisi.h"
 #include <smsisi.h>
-#include "osttracedefinitions.h"
+#include "OstTraceDefinitions.h"
 #ifdef OST_TRACE_COMPILER_IN_USE
-#include "cmmsmscachetraces.h"
+#include "cmmsmscacheTraces.h"
 #endif
 
 //  External Data Structures
@@ -328,4 +328,24 @@
         }
     }
 
+// -----------------------------------------------------------------------------
+// CMmSmsCache::SetStorageStatus
+// Changes the storage status of a cached entry (TS 31.102, clause 4.2.25)
+// -----------------------------------------------------------------------------
+//
+void CMmSmsCache::SetStorageStatus(
+    TInt aLocation,
+    RMobileSmsStore::TMobileSmsStoreStatus aMsgStatus )
+    {
+TFLOGSTRING2("TSY: CMmSmsCache::SetStorageStatus(loc=%d)", aLocation);
+OstTrace1( TRACE_NORMAL, CMMSMSCACHE_SETSTORAGESTATUS, "CMmSmsCache::SetStorageStatus;aLocation=%d", aLocation );
+
+    if ( aLocation <= iElements.Count()
+        && aLocation >= 1
+        && iElements[aLocation-1] )
+        {
+        // Entry exists, update status.
+        iElements[aLocation-1]->iMsgStatus = aMsgStatus;
+        }
+    }
 //  End of File