44 #if !defined(Q_OS_WINCE) 46 # if defined(Q_CC_MSVC) 50 # if (_WIN32_WCE >= 0x700) 60 #if !defined(Q_OS_WIN) && !defined(QT_NO_THREAD) && !defined(Q_OS_INTEGRITY) && !defined(Q_OS_QNX) && \ 61 defined(_POSIX_THREAD_SAFE_FUNCTIONS) && _POSIX_VERSION >= 200112L 88 FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,
91 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
96 LocalFree((HLOCAL)
string);
98 if (ret.
isEmpty() && errorCode == ERROR_MOD_NOT_FOUND)
127 #if !defined(QT_NO_THREAD) && defined(_POSIX_THREAD_SAFE_FUNCTIONS) && _POSIX_VERSION >= 200112L && !defined(Q_OS_INTEGRITY) && !defined(Q_OS_QNX) 129 ret = fromstrerror_helper(strerror_r(errorCode, buf.
data(), buf.
size()), buf);
145 static QString symbianErrorString(
int errorCode)
154 case KErrNotSupported:
158 case KErrAlreadyExists:
160 case KErrPathNotFound:
165 return QLatin1String(
"not ready (e.g. FS dismounted, network down)");
168 case KErrAccessDenied:
175 return QLatin1String(
"file system dismounted during operation");
184 case KErrBadDescriptor:
185 return QLatin1String(
"bad descriptor (passed address on stack to async call?)");
194 case KErrHardwareNotAvailable:
196 case KErrSessionClosed:
198 case KErrPermissionDenied:
210 #if defined (Q_OS_WIN) 212 #elif defined (Q_OS_SYMBIAN) static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
#define QT_END_NAMESPACE
This macro expands to.
char * data()
Returns a pointer to the data stored in the byte array.
static QString windowsErrorString(int errorCode)
The QByteArray class provides an array of bytes.
#define QT_TRANSLATE_NOOP(scope, x)
Marks the string literal sourceText for dynamic translation in the given context; i...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
static QString standardLibraryErrorString(int errorCode)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString trimmed() const Q_REQUIRED_RESULT
Returns a string that has whitespace removed from the start and the end.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Q_CORE_EXPORT void qWarning(const char *,...)
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
int size() const
Returns the number of bytes in this byte array.