javacommons/fileutils/src.s60/s60filesystemutilities.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2008 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:  S60FileSystemUtilities
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef S60FILESYSTEMUTILITIES_H
       
    20 #define S60FILESYSTEMUTILITIES_H
       
    21 
       
    22 #include <wchar.h>
       
    23 #include <e32def.h>
       
    24 #include <e32cmn.h>
       
    25 
       
    26 #include "javaosheaders.h"
       
    27 
       
    28 #include "jni.h"
       
    29 
       
    30 namespace java
       
    31 {
       
    32 namespace fileutils
       
    33 {
       
    34 
       
    35 OS_NONSHARABLE_CLASS(S60FileSystemUtilities)
       
    36 {
       
    37 public:
       
    38     static void GetAvailableSizeL(TInt64& aRetSize, TChar& aDriveChar);
       
    39 
       
    40     static void GetUsedSizeL(TInt64& aRetSize, TChar& aDriveChar);
       
    41 
       
    42     static void GetTotalSizeL(TInt64& aRetSize, TChar& aDriveChar);
       
    43 
       
    44     static void IsHiddenL(TBool& aIsHidden, const TDesC& aFile);
       
    45 
       
    46     IMPORT_C static void SetHiddenL(TDesC& aFile, TBool aHide);
       
    47 
       
    48     static void ReplaceCharacters(TPtr& aPtr, TUint8 aReplacedChar,
       
    49                                   TUint8 aNewChar);
       
    50 
       
    51     static void ReplaceCharacters(TPtr& aPtr, TUint8 aReplacedChar,
       
    52                                   TUint8 aNewChar, TBool aOnlyFirstMatch);
       
    53 
       
    54     static TDesC16& GetSupportedDrives();
       
    55 
       
    56 };
       
    57 
       
    58 } // end namepsace fileutils
       
    59 } // end namepsace java
       
    60 
       
    61 #endif // S60FILESYSTEMUTILITIES_H