ImagePrint/ImagePrintEngine/DeviceProtocols/dpof/inc/rsutils.h
branchRCL_3
changeset 27 159fc2f68139
parent 21 26673e532f65
child 28 d59c248c9d36
equal deleted inserted replaced
21:26673e532f65 27:159fc2f68139
     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