javacommons/fileutils/src.s60/s60filesystemutilities.h
branchRCL_3
changeset 14 04becd199f91
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/javacommons/fileutils/src.s60/s60filesystemutilities.h	Tue Apr 27 16:30:29 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 <wchar.h>
+#include <e32def.h>
+#include <e32cmn.h>
+
+#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