equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 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". |
75 * @leave Leaves with one of the Symbian error codes if checking the disk |
75 * @leave Leaves with one of the Symbian error codes if checking the disk |
76 * space fails, for instance if the drive contains no media or there |
76 * space fails, for instance if the drive contains no media or there |
77 * is not enough free memory to create a temporary connection to |
77 * is not enough free memory to create a temporary connection to |
78 * file server. |
78 * file server. |
79 */ |
79 */ |
80 TBool CxeSysUtil::DiskSpaceBelowCriticalLevel( |
80 bool CxeSysUtil::DiskSpaceBelowCriticalLevel( |
81 RFs* aFs, |
81 RFs* aFs, |
82 TInt aBytesToWrite, |
82 TInt aBytesToWrite, |
83 TInt aDrive ) |
83 TInt aDrive ) |
84 { |
84 { |
85 TBool fullDisk = EFalse; |
85 bool fullDisk = false; |
86 TRAPD( utilErr, |
86 TRAPD( utilErr, |
87 fullDisk = SysUtil::DiskSpaceBelowCriticalLevelL( |
87 fullDisk = SysUtil::DiskSpaceBelowCriticalLevelL( |
88 aFs, aBytesToWrite, aDrive ) ); |
88 aFs, aBytesToWrite, aDrive ) ); |
89 if(utilErr) { |
89 if(utilErr) { |
90 fullDisk = EFalse; |
90 fullDisk = false; |
91 } |
91 } |
92 return fullDisk; |
92 return fullDisk; |
93 } |
93 } |
94 |
94 |
95 /*! |
95 /*! |