equal
deleted
inserted
replaced
22 |
22 |
23 /** |
23 /** |
24 * Checks if free disk drive storage space is or will fall below critical |
24 * Checks if free disk drive storage space is or will fall below critical |
25 * level. Static configuration values stored in Central Repository are |
25 * level. Static configuration values stored in Central Repository are |
26 * used to determine a critical level for each drive. |
26 * used to determine a critical level for each drive. |
27 * |
27 * |
28 * If aBytesToWrite is more than zero, function returns false otherwise true. |
28 * If aBytesToWrite is more than zero, function returns false otherwise true. |
29 * By defining aBytesToWrite to zero it is possible to get fake fulldisk error. |
29 * By defining aBytesToWrite to zero it is possible to get fake fulldisk error. |
30 * |
30 * |
31 */ |
31 */ |
32 TBool CxeSysUtil::DiskSpaceBelowCriticalLevel( |
32 bool CxeSysUtil::DiskSpaceBelowCriticalLevel( |
33 RFs* /*aFs*/, |
33 RFs* /*aFs*/, |
34 TInt aBytesToWrite, |
34 TInt aBytesToWrite, |
35 TInt /*aDrive*/ ) |
35 TInt /*aDrive*/ ) |
36 { |
36 { |
37 CX_DEBUG_IN_FUNCTION(); |
37 CX_DEBUG_IN_FUNCTION(); |
38 |
38 |
39 if (aBytesToWrite > 0) { |
39 return (aBytesToWrite <= 0); |
40 return EFalse; |
|
41 } |
|
42 else { |
|
43 return ETrue; |
|
44 } |
|
45 } |
40 } |
46 |
41 |
47 qint64 CxeSysUtil::spaceAvailable( |
42 qint64 CxeSysUtil::spaceAvailable( |
48 RFs & /*fs*/, |
43 RFs & /*fs*/, |
49 int /*index*/, |
44 int /*index*/, |
50 CxeSettings & /*settings*/) |
45 CxeSettings & /*settings*/) |
51 { |
46 { |
52 CX_DEBUG_IN_FUNCTION(); |
47 CX_DEBUG_IN_FUNCTION(); |
53 return CxeSysUtil::mSpaceAvailable; |
48 return CxeSysUtil::mSpaceAvailable; |
54 } |
49 } |