1 /* |
1 /* |
2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of the License "Eclipse Public License v1.0" |
5 * under the terms of the License "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
97 * If aTarget is NULL then the function will return the size needed to store |
97 * If aTarget is NULL then the function will return the size needed to store |
98 * the complete conversion of the source string. |
98 * the complete conversion of the source string. |
99 */ |
99 */ |
100 int ConvertMultiByteToWideChar(const char* aSource, int aSourceLen, wchar_t* aTarget, int aTargetLen, TUint32 aCodePage = 0); |
100 int ConvertMultiByteToWideChar(const char* aSource, int aSourceLen, wchar_t* aTarget, int aTargetLen, TUint32 aCodePage = 0); |
101 |
101 |
102 /* |
|
103 Copies an existing file to a new file. |
|
104 @Parameters aSrc : The name of an existing file. |
|
105 @Parameters aDest : The name of the new file. |
|
106 @Parameters aFlag : (only for windows) If this parameter is TRUE and the new file specified by aDest already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds. |
|
107 |
|
108 Return Value |
|
109 If the function succeeds, the return value is zero. |
|
110 If the function fails, the return value is nonzero. |
|
111 */ |
|
112 |
|
113 int FileCopyA(const char* aSrc, const char* aDest, size_t aFlag); |
|
114 |
|
115 |
|
116 /* |
|
117 Moves an existing file or a directory, including its children |
|
118 @Parameters aSrc : The current name of the file or directory on the local computer. |
|
119 @Parameters aDest : The new name for the file or directory. The new name must not already exist. A new file may be on a different file system or drive. A new directory must be on the same drive. |
|
120 |
|
121 Return Value |
|
122 If the function succeeds, the return value is zero. |
|
123 If the function fails, the return value is nonzero. |
|
124 */ |
|
125 |
|
126 int FileMoveA(const char* aSrc, const char* aDest); |
|
127 |
|
128 |
|
129 // interface for only Linux |
102 // interface for only Linux |
130 |
103 |
131 #ifdef __TOOLS2_LINUX__ |
104 #ifdef __TOOLS2_LINUX__ |
132 #include <errno.h> |
105 #include <errno.h> |
133 |
106 |