equal
deleted
inserted
replaced
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: LinuxFileSystemUtils |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef LINUXFILESYSTEMUTILS_H |
|
20 #define LINUXFILESYSTEMUTILS_H |
|
21 |
|
22 #include <string> |
|
23 |
|
24 #include "jni.h" |
|
25 |
|
26 namespace java |
|
27 { |
|
28 namespace fileutils |
|
29 { |
|
30 |
|
31 class LinuxFileSystemUtils |
|
32 { |
|
33 public: |
|
34 static unsigned long getAvailableSize(const char* aPath); |
|
35 |
|
36 static unsigned long getUsedSize(const char* aPath); |
|
37 |
|
38 static unsigned long getTotalSize(const char* aPath); |
|
39 |
|
40 static bool isHidden(const char* aFile); |
|
41 |
|
42 static int setHidden(const char* aFile, const bool aHide); |
|
43 |
|
44 static std::string listRoots(); |
|
45 }; |
|
46 |
|
47 } //end namespace fileutils |
|
48 } //end namespace java |
|
49 |
|
50 #endif // LINUXFILESYSTEMUTILS_H |
|