equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2004-2007 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: Contains the RsUtils class definitions. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef RSUTILS_H |
|
20 #define RSUTILS_H |
|
21 |
|
22 #include <e32std.h> |
|
23 #include <f32file.h> |
|
24 |
|
25 /** |
|
26 * The RsUtils class contains static utility functions useful to the whole application |
|
27 * such as descriptor manipulations. |
|
28 */ |
|
29 class RsUtils |
|
30 { |
|
31 public: |
|
32 |
|
33 static TBool FileExists( const TDesC& aFileName, RFs& aFs ); |
|
34 static TBool PathExists( const TDesC& aFilePath, RFs& aFs ); |
|
35 static TInt DriveFreeSpace( TChar aDrive, RFs& aFs, TUint32& aSpace ); |
|
36 static TInt CumulativeFileSize( const TDesC& aFileName, RFs& aFs, TInt& aCumulativeSize ); |
|
37 static TBool FileInDir( const TDesC& aFileName, const TDesC& aDirName ); |
|
38 static TBool FileOnDrive( TChar aDrive, const TDesC& aFileName ); |
|
39 }; |
|
40 |
|
41 #endif // RSUTILS_H |
|
42 |
|
43 // End of File |
|