diff -r feebad15db8c -r c826656d6714 camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxediskmonitor/cxesysutil.cpp --- a/camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxediskmonitor/cxesysutil.cpp Thu Jul 15 01:53:45 2010 +0300 +++ b/camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxediskmonitor/cxesysutil.cpp Fri Aug 06 10:03:37 2010 +0300 @@ -24,29 +24,24 @@ * Checks if free disk drive storage space is or will fall below critical * level. Static configuration values stored in Central Repository are * used to determine a critical level for each drive. - * + * * If aBytesToWrite is more than zero, function returns false otherwise true. * By defining aBytesToWrite to zero it is possible to get fake fulldisk error. - * + * */ -TBool CxeSysUtil::DiskSpaceBelowCriticalLevel( +bool CxeSysUtil::DiskSpaceBelowCriticalLevel( RFs* /*aFs*/, TInt aBytesToWrite, TInt /*aDrive*/ ) { - CX_DEBUG_IN_FUNCTION(); - - if (aBytesToWrite > 0) { - return EFalse; - } - else { - return ETrue; - } + CX_DEBUG_IN_FUNCTION(); + + return (aBytesToWrite <= 0); } qint64 CxeSysUtil::spaceAvailable( - RFs & /*fs*/, - int /*index*/, + RFs & /*fs*/, + int /*index*/, CxeSettings & /*settings*/) { CX_DEBUG_IN_FUNCTION();