diff -r e8e63152f320 -r 2a9601315dfc javacommons/fileutils/src.s60/s60filesystemutilities.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javacommons/fileutils/src.s60/s60filesystemutilities.h Mon May 03 12:27:20 2010 +0300 @@ -0,0 +1,61 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: S60FileSystemUtilities + * +*/ + + +#ifndef S60FILESYSTEMUTILITIES_H +#define S60FILESYSTEMUTILITIES_H + +#include +#include +#include + +#include "javaosheaders.h" + +#include "jni.h" + +namespace java +{ +namespace fileutils +{ + +OS_NONSHARABLE_CLASS(S60FileSystemUtilities) +{ +public: + static void GetAvailableSizeL(TInt64& aRetSize, TChar& aDriveChar); + + static void GetUsedSizeL(TInt64& aRetSize, TChar& aDriveChar); + + static void GetTotalSizeL(TInt64& aRetSize, TChar& aDriveChar); + + static void IsHiddenL(TBool& aIsHidden, const TDesC& aFile); + + IMPORT_C static void SetHiddenL(TDesC& aFile, TBool aHide); + + static void ReplaceCharacters(TPtr& aPtr, TUint8 aReplacedChar, + TUint8 aNewChar); + + static void ReplaceCharacters(TPtr& aPtr, TUint8 aReplacedChar, + TUint8 aNewChar, TBool aOnlyFirstMatch); + + static TDesC16& GetSupportedDrives(); + +}; + +} // end namepsace fileutils +} // end namepsace java + +#endif // S60FILESYSTEMUTILITIES_H