equal
deleted
inserted
replaced
23 #include "s60commonutils.h" |
23 #include "s60commonutils.h" |
24 #include "fileutilities.h" |
24 #include "fileutilities.h" |
25 #include "s60filesystemutilities.h" |
25 #include "s60filesystemutilities.h" |
26 #include "javasymbianoslayer.h" |
26 #include "javasymbianoslayer.h" |
27 |
27 |
|
28 #define BUF_LEN 255 |
28 using namespace std; |
29 using namespace std; |
29 using namespace java::util; |
30 using namespace java::util; |
30 using namespace java::fileutils; |
31 using namespace java::fileutils; |
31 |
32 |
32 /* |
33 /* |
92 } |
93 } |
93 |
94 |
94 OS_EXPORT std::wstring FileUtilities::listRoots() |
95 OS_EXPORT std::wstring FileUtilities::listRoots() |
95 { |
96 { |
96 JELOG2(EJavaFile); |
97 JELOG2(EJavaFile); |
97 TDesC16 aDes(S60FileSystemUtilities::GetSupportedDrives()); |
98 TBuf<BUF_LEN> buf; |
98 std::wstring retString((wchar_t*)aDes.Ptr()); |
99 buf.Copy(S60FileSystemUtilities::GetSupportedDrives()); |
|
100 std::wstring retString((wchar_t*)buf.Ptr()); |
99 return retString; |
101 return retString; |
100 } |
102 } |
101 |
103 |
102 OS_EXPORT int FileUtilities::setReadable(const std::wstring& /*aFile*/, bool /*aReadable*/) |
104 OS_EXPORT int FileUtilities::setReadable(const std::wstring& /*aFile*/, bool /*aReadable*/) |
103 { |
105 { |