equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the examples of the Qt Toolkit. |
7 ** This file is part of the examples of the Qt Toolkit. |
8 ** |
8 ** |
296 QString qt_TDesC2QStringL(const TDesC& aDescriptor) |
296 QString qt_TDesC2QStringL(const TDesC& aDescriptor) |
297 { |
297 { |
298 #ifdef QT_NO_UNICODE |
298 #ifdef QT_NO_UNICODE |
299 return QString::fromLocal8Bit(aDescriptor.Ptr(), aDescriptor.Length()); |
299 return QString::fromLocal8Bit(aDescriptor.Ptr(), aDescriptor.Length()); |
300 #else |
300 #else |
301 return QString::fromUtf16(aDescriptor.Ptr(), aDescriptor.Length()); |
301 return QString((const QChar *)aDescriptor.Ptr(), aDescriptor.Length()); |
302 #endif |
302 #endif |
303 } |
303 } |
304 |
304 |
305 static bool qt_SetDefaultIapName(const QString &iapName, int &error) { |
305 static bool qt_SetDefaultIapName(const QString &iapName, int &error) { |
306 struct ifreq ifReq; |
306 struct ifreq ifReq; |