sysresmonitoring/oodmonitor/oodmonitor2/src/outofdisknotifyobserver.cpp
branchRCL_3
changeset 82 4610cd70c542
parent 70 739cef680932
equal deleted inserted replaced
70:739cef680932 82:4610cd70c542
     1 /*
     1 /*
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   151 	    return;		
   151 	    return;		
   152 		}
   152 		}
   153 	
   153 	
   154     TInt status = iOutOfDiskMonitor->GetDriveStatus(aDrive);
   154     TInt status = iOutOfDiskMonitor->GetDriveStatus(aDrive);
   155     iOutOfDiskMonitor->SaveDriveStatus(aDrive, status, ETrue);
   155     iOutOfDiskMonitor->SaveDriveStatus(aDrive, status, ETrue);
   156     if(status == KErrNone)
   156     iOutOfDiskMonitor->ShowGlobalQueryIfNeededL();
   157         {
   157     NotifyDiskSpace(warningThreshold, 
   158         iOutOfDiskMonitor->ShowGlobalQueryIfNeededL();            
       
   159         NotifyDiskSpace(warningThreshold, 
       
   160                     criticalThreshold, 
   158                     criticalThreshold, 
   161                     aDrive);
   159                     aDrive);
   162         }
       
   163     TRACES("COutOfDiskNotifyObserver::DiskAddedL: End");
   160     TRACES("COutOfDiskNotifyObserver::DiskAddedL: End");
   164     }
   161     }
   165 
   162 
   166 // ---------------------------------------------------------
   163 // ---------------------------------------------------------
   167 //
   164 //