imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailserversession.cpp
changeset 1 235a7fc86938
parent 0 2014ca87e772
child 5 82749d516180
--- a/imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailserversession.cpp	Tue Jan 26 15:18:05 2010 +0200
+++ b/imagehandlingutilities/thumbnailmanager/thumbnailserver/src/thumbnailserversession.cpp	Tue Feb 02 00:23:15 2010 +0200
@@ -255,6 +255,11 @@
         {
         TN_DEBUG1( "CThumbnailServerSession::UpdateThumbnailsL() - need to recreate thumbs" );
         
+        if(Server()->StoreForPathL(params.iFileName)->IsDiskFull())
+            {
+            User::Leave( KErrDiskFull );
+            }
+        
         // need to create new thumbs
         aMessage.Complete( KThumbnailErrThumbnailNotFound );
         }
@@ -531,6 +536,11 @@
 	            {
                 User::Leave(err);
                 }
+	        
+	        if(Server()->StoreForPathL(params.iFileName)->IsDiskFull())
+	            {
+	            User::Leave( KErrDiskFull );
+	            }
 
 #ifdef RD_MDS_2_5	        
             // try to query ID from MDS
@@ -733,6 +743,11 @@
 
     TN_DEBUG2( 
         "CThumbnailServerSession::CreateGenerateTaskFromFileHandleL() -- create thumbnail generation task for %S", &params.iFileName );
+    
+    if(Server()->StoreForPathL(params.iFileName)->IsDiskFull())
+        {
+        User::Leave( KErrDiskFull );
+        }
       
     TBool missingIDs = EFalse;
     
@@ -798,6 +813,7 @@
     // create new task
     if( !aFile)
         {
+        TN_DEBUG1("CThumbnailServerSession::CreateGenerateTaskFromFileHandleL() - KErrArgument");
         User::Leave( KErrArgument );
         }
     CleanupClosePushL( *aFile );
@@ -840,6 +856,11 @@
     TN_DEBUG2( 
         "CThumbnailServerSession::CreateGenerateTaskFromBufferL() -- create thumbnail generation task for %S", &params.iTargetUri );
   
+    if(Server()->StoreForPathL(params.iTargetUri)->IsDiskFull())
+        {
+        User::Leave( KErrDiskFull );
+        }
+    
     if(aBuffer && params.iMimeType.Des().Match( KVideoMime ) == 0 )
         {
         User::Leave( KErrNotSupported );
@@ -903,6 +924,7 @@
     // create new task
     if( !aBuffer)
         {
+        TN_DEBUG1( "CThumbnailServerSession::UpdateThumbnailsL() - KErrArgument" );
         User::Leave( KErrArgument );
         }