examples/network/qftp/sym_iap_util.h
changeset 18 2f34d5167611
parent 3 41300fa6a67c
child 19 fcece45ef507
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     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;