diff options
Diffstat (limited to 'tests/auto/network-settings.h')
-rw-r--r-- | tests/auto/network-settings.h | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/tests/auto/network-settings.h b/tests/auto/network-settings.h index 9488fda..48ba8e8 100644 --- a/tests/auto/network-settings.h +++ b/tests/auto/network-settings.h @@ -37,12 +37,10 @@ ** ****************************************************************************/ #include <QString> - -/* #ifdef QT_NETWORK_LIB #include <QtNetwork/QHostInfo> #endif -*/ + #ifdef Q_OS_SYMBIAN #include <sys/socket.h> @@ -98,9 +96,9 @@ public: return entry->recordValue(); } #endif - return QString("qttest"); + //return QString("qttest"); //return QString("aspiriniks"); - //return QString("qt-test-server"); + return QString("qt-test-server"); } static QString serverDomainName() { @@ -112,8 +110,9 @@ public: return entry->recordValue(); } #endif - return QString("it.local"); + //return QString("it.local"); //return QString("troll.no"); + return QString("qt-test-net"); } static QString serverName() { @@ -128,10 +127,12 @@ public: } static QString wildcardServerName() { - //return "qt-test-server.wildcard.dev." + serverDomainName(); - return "qttest.wildcard.dev." + serverDomainName(); + return "qt-test-server.wildcard.dev." + serverDomainName(); + //return "qttest.wildcard.dev." + serverDomainName(); } - static const char *serverIP() + +#ifdef QT_NETWORK_LIB + static QHostAddress serverIP() { #ifdef Q_OS_SYMBIAN loadTestSettings(); @@ -141,12 +142,13 @@ public: if(serverIp.isNull()) { serverIp = entry->recordValue().toAscii(); } - return serverIp.data(); + return QHostAddress(serverIp.data()); } -#endif - return "10.10.14.172"; +#endif + return QHostInfo::fromName(serverName()).addresses().first(); } - +#endif + static QByteArray expectedReplyIMAP() { #ifdef Q_OS_SYMBIAN @@ -315,14 +317,6 @@ private: } #endif -/* -#ifdef QT_NETWORK_LIB - static QHostAddress serverIP() - { - return QHostInfo::fromName(serverName()).addresses().first(); - } -#endif -*/ }; #ifdef Q_OS_SYMBIAN |