camerauis/cameraxui/cxengine/tsrc/fakeclasses/cxefakesysutil.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CXEFAKESYSUTIL_H
       
    19 #define CXEFAKESYSUTIL_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class RFs;
       
    24 
       
    25 class CxeFakeSysUtil
       
    26     {
       
    27 
       
    28 public:
       
    29 
       
    30     /**
       
    31      * Checks if free disk drive storage space is or will fall below critical
       
    32      * level. Static configuration values stored in Central Repository are
       
    33      * used to determine a critical level for each drive.
       
    34      * 
       
    35      * If aBytesToWrite is more than zero, function returns false otherwise true.
       
    36      * By defining aBytesToWrite to zero it is possible to get fake fulldisk error.
       
    37      *  
       
    38      */
       
    39     static TBool DiskSpaceBelowCriticalLevel(
       
    40         RFs* aFs,
       
    41         TInt aBytesToWrite,
       
    42         TInt aDrive);
       
    43     };
       
    44 
       
    45 #endif // CXEFAKESYSUTIL_H