summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Zanetti <michael.zanetti@nokia.com>2011-10-19 17:53:02 +0200
committerQt by Nokia <qt-info@nokia.com>2011-11-11 07:35:00 +0100
commitf0daca9ff8108b15e0ede3ea638393541d2149e0 (patch)
tree723cab6c932fae3912bfae00a2f3c0ae68ad2e5d /tests
parentae1cbc39bfdbf42a2788e8a94ca1e7f4e1058641 (diff)
added Connectivity namespaces (QtBluetooth and QtNfc)
Change-Id: I5f3062c857e657a6d05ab29edfa2f1b48cb173f8 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qbluetoothaddress/tst_qbluetoothaddress.cpp4
-rw-r--r--tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp4
-rw-r--r--tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp4
-rw-r--r--tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp4
-rw-r--r--tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp4
-rw-r--r--tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp4
-rw-r--r--tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp4
-rw-r--r--tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp7
-rw-r--r--tests/auto/qbluetoothtransferrequest/tst_qbluetoothtransferrequest.cpp4
-rw-r--r--tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp4
-rw-r--r--tests/auto/ql2capserver/tst_ql2capserver.cpp4
-rw-r--r--tests/auto/qndefmessage/tst_qndefmessage.cpp4
-rw-r--r--tests/auto/qndefrecord/tst_qndefrecord.cpp4
-rw-r--r--tests/auto/qnearfieldmanager/tst_qnearfieldmanager.cpp4
-rw-r--r--tests/auto/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp4
-rw-r--r--tests/auto/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp4
-rw-r--r--tests/auto/qrfcommserver/tst_qrfcommserver.cpp4
-rw-r--r--tests/btclient/btclient.c2
-rw-r--r--tests/btclient/btclient.h2
-rw-r--r--tests/nfcsymbianbackend/common/qautomsgbox.cpp2
-rw-r--r--tests/nfcsymbianbackend/common/qautomsgbox.h2
-rw-r--r--tests/nfcsymbianbackend/common/qdummyslot.cpp4
-rw-r--r--tests/nfcsymbianbackend/common/qdummyslot.h2
-rw-r--r--tests/nfcsymbianbackend/common/qnfctagtestcommon.h2
-rw-r--r--tests/nfcsymbianbackend/common/qnfctagutil.cpp4
-rw-r--r--tests/nfcsymbianbackend/common/qnfctagutil.h2
-rw-r--r--tests/nfcsymbianbackend/nfctestserviceprovider/main.cpp4
-rw-r--r--tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.cpp2
-rw-r--r--tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.h2
-rw-r--r--tests/nfcsymbianbackend/qcontenthandler/tst_qcontenthandler.cpp4
-rw-r--r--tests/nfcsymbianbackend/qllcpserver/tst_qllcpserver.cpp4
-rw-r--r--tests/nfcsymbianbackend/qllcpsocketlocal/tst_qllcpsocketlocal.cpp2
-rw-r--r--tests/nfcsymbianbackend/qllcpsocketremote/tst_qllcpsocketremote.cpp4
-rw-r--r--tests/nfcsymbianbackend/qllcpsockettype2/tst_qllcpsockettype2.cpp4
-rw-r--r--tests/nfcsymbianbackend/qnearfieldmanager/tst_qnearfieldmanager.cpp4
-rw-r--r--tests/nfcsymbianbackend/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp4
-rw-r--r--tests/nfcsymbianbackend/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp4
-rw-r--r--tests/nfcsymbianbackend/qnearfieldtagtype3/tst_qnearfieldtagtype3.cpp4
-rw-r--r--tests/nfcsymbianbackend/qnearfieldtagtype4/tst_qnearfieldtagtype4.cpp4
-rw-r--r--tests/nfctestserver/main.cpp2
-rw-r--r--tests/nfctestserver/servercontroller.cpp2
-rw-r--r--tests/nfctestserver/servercontroller.h4
-rw-r--r--tests/nfctestserver/servicenames.h2
-rw-r--r--tests/nfctestserver/socketcontroller.cpp2
-rw-r--r--tests/nfctestserver/socketcontroller.h4
45 files changed, 108 insertions, 47 deletions
diff --git a/tests/auto/qbluetoothaddress/tst_qbluetoothaddress.cpp b/tests/auto/qbluetoothaddress/tst_qbluetoothaddress.cpp
index 80755420..a59dc408 100644
--- a/tests/auto/qbluetoothaddress/tst_qbluetoothaddress.cpp
+++ b/tests/auto/qbluetoothaddress/tst_qbluetoothaddress.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -45,6 +45,8 @@
#include <qbluetoothaddress.h>
+QTBLUETOOTH_USE_NAMESPACE
+
class tst_QBluetoothAddress : public QObject
{
Q_OBJECT
diff --git a/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp b/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp
index 41741bf9..69c8298a 100644
--- a/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp
+++ b/tests/auto/qbluetoothdevicediscoveryagent/tst_qbluetoothdevicediscoveryagent.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -48,6 +48,8 @@
#include <qbluetoothdevicediscoveryagent.h>
#include <qbluetoothlocaldevice.h>
+QTBLUETOOTH_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QBluetoothDeviceInfo)
Q_DECLARE_METATYPE(QBluetoothDeviceDiscoveryAgent::InquiryType)
diff --git a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp
index b5d346a8..fb2dd72b 100644
--- a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp
+++ b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -48,6 +48,8 @@
#include <qbluetoothlocaldevice.h>
#include <qbluetoothuuid.h>
+QTBLUETOOTH_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QBluetoothDeviceInfo::ServiceClasses)
Q_DECLARE_METATYPE(QBluetoothDeviceInfo::MajorDeviceClass)
diff --git a/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp b/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp
index 6f2404ef..fe79a4ac 100644
--- a/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp
+++ b/tests/auto/qbluetoothlocaldevice/tst_qbluetoothlocaldevice.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -47,6 +47,8 @@
#include <qbluetoothaddress.h>
#include <qbluetoothlocaldevice.h>
+QTBLUETOOTH_USE_NAMESPACE
+
#define WAIT_FOR_CONDITION(a,e) \
for (int _i = 0; _i < 5000; _i += 1) { \
if ((a) == (e)) break; \
diff --git a/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp b/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp
index 4b8f41d6..cc2f0822 100644
--- a/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp
+++ b/tests/auto/qbluetoothservicediscoveryagent/tst_qbluetoothservicediscoveryagent.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -50,6 +50,8 @@
#include <qbluetoothservicediscoveryagent.h>
#include <qbluetoothlocaldevice.h>
+QTBLUETOOTH_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QBluetoothDeviceInfo)
Q_DECLARE_METATYPE(QBluetoothServiceDiscoveryAgent::Error)
diff --git a/tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp b/tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp
index 4089b2a0..9562ced6 100644
--- a/tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp
+++ b/tests/auto/qbluetoothserviceinfo/tst_qbluetoothserviceinfo.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -50,6 +50,8 @@
#include <qbluetoothlocaldevice.h>
#include <qbluetoothuuid.h>
+QTBLUETOOTH_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QBluetoothUuid::ProtocolUuid)
Q_DECLARE_METATYPE(QUuid)
Q_DECLARE_METATYPE(QBluetoothServiceInfo::Protocol)
diff --git a/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp b/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp
index 6eda9938..06298ecb 100644
--- a/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp
+++ b/tests/auto/qbluetoothsocket/tst_qbluetoothsocket.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -55,6 +55,8 @@
#include <btclient.h>
+QTBLUETOOTH_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QBluetoothSocket::SocketState)
Q_DECLARE_METATYPE(QBluetoothSocket::SocketType)
diff --git a/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp b/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp
index 76131764..b14329f3 100644
--- a/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp
+++ b/tests/auto/qbluetoothtransfermanager/tst_qbluetoothtransfermanager.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -56,6 +56,7 @@
#include <qbluetoothservicediscoveryagent.h>
#include <btclient.h>
+QTBLUETOOTH_USE_NAMESPACE
typedef QMap<int,QVariant> tst_QBluetoothTransferManager_QParameterMap;
Q_DECLARE_METATYPE(tst_QBluetoothTransferManager_QParameterMap)
@@ -227,7 +228,7 @@ void tst_QBluetoothTransferManager::tst_put()
QCOMPARE(finishedSpy.count(), 1);
int error = reply->error();
- qDebug()<<"QtMobilityBtTester::SendData reply->error ="<<error;
+ qDebug()<<"QtBluetoothTester::SendData reply->error ="<<error;
QVERIFY(error == QBluetoothTransferReply::NoError);
if (error != QBluetoothTransferReply::NoError) {
@@ -283,7 +284,7 @@ void tst_QBluetoothTransferManager::tst_putAbort()
reply->abort();
int error = reply->error();
- qDebug()<<"QtMobilityBtTester::SendData reply->error ="<<error;
+ qDebug()<<"QtBluetoothTester::SendData reply->error ="<<error;
QVERIFY(error == QBluetoothTransferReply::NoError);
if (error != QBluetoothTransferReply::NoError) {
diff --git a/tests/auto/qbluetoothtransferrequest/tst_qbluetoothtransferrequest.cpp b/tests/auto/qbluetoothtransferrequest/tst_qbluetoothtransferrequest.cpp
index 4805d794..20bdf987 100644
--- a/tests/auto/qbluetoothtransferrequest/tst_qbluetoothtransferrequest.cpp
+++ b/tests/auto/qbluetoothtransferrequest/tst_qbluetoothtransferrequest.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -48,6 +48,8 @@
#include <qbluetoothaddress.h>
#include <qbluetoothlocaldevice.h>
+QTBLUETOOTH_USE_NAMESPACE
+
typedef QMap<int,QVariant> tst_QBluetoothTransferRequest_QParameterMap;
Q_DECLARE_METATYPE(tst_QBluetoothTransferRequest_QParameterMap)
diff --git a/tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp b/tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp
index 0c4308da..abe1bbbd 100644
--- a/tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp
+++ b/tests/auto/qbluetoothuuid/tst_qbluetoothuuid.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -53,6 +53,8 @@
#include <bttypes.h>
#endif
+QTBLUETOOTH_USE_NAMESPACE
+
Q_DECLARE_METATYPE(quint128)
class tst_QBluetoothUuid : public QObject
diff --git a/tests/auto/ql2capserver/tst_ql2capserver.cpp b/tests/auto/ql2capserver/tst_ql2capserver.cpp
index 54d99117..1f72eed4 100644
--- a/tests/auto/ql2capserver/tst_ql2capserver.cpp
+++ b/tests/auto/ql2capserver/tst_ql2capserver.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -46,6 +46,8 @@
#include <ql2capserver.h>
#include <qbluetoothsocket.h>
+QTBLUETOOTH_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QBluetooth::SecurityFlags);
// Max time to wait for connection
diff --git a/tests/auto/qndefmessage/tst_qndefmessage.cpp b/tests/auto/qndefmessage/tst_qndefmessage.cpp
index e33cc79c..ab4ea728 100644
--- a/tests/auto/qndefmessage/tst_qndefmessage.cpp
+++ b/tests/auto/qndefmessage/tst_qndefmessage.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -46,6 +46,8 @@
#include <qndefnfctextrecord.h>
#include <qndefnfcurirecord.h>
+QTNFC_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QNdefRecord)
class tst_QNdefMessage : public QObject
diff --git a/tests/auto/qndefrecord/tst_qndefrecord.cpp b/tests/auto/qndefrecord/tst_qndefrecord.cpp
index 3388bdca..793d4d82 100644
--- a/tests/auto/qndefrecord/tst_qndefrecord.cpp
+++ b/tests/auto/qndefrecord/tst_qndefrecord.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -45,6 +45,8 @@
#include <qndefnfctextrecord.h>
#include <qndefnfcurirecord.h>
+QTNFC_USE_NAMESPACE
+
class tst_QNdefRecord : public QObject
{
Q_OBJECT
diff --git a/tests/auto/qnearfieldmanager/tst_qnearfieldmanager.cpp b/tests/auto/qnearfieldmanager/tst_qnearfieldmanager.cpp
index 304a5c10..4a4ed3dc 100644
--- a/tests/auto/qnearfieldmanager/tst_qnearfieldmanager.cpp
+++ b/tests/auto/qnearfieldmanager/tst_qnearfieldmanager.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -50,6 +50,8 @@
#include <qndefmessage.h>
#include <qndefrecord.h>
+QTNFC_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QNearFieldTarget*)
Q_DECLARE_METATYPE(QNearFieldTarget::Type)
Q_DECLARE_METATYPE(QNdefFilter)
diff --git a/tests/auto/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp b/tests/auto/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp
index 12f561cc..869ac061 100644
--- a/tests/auto/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp
+++ b/tests/auto/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -49,6 +49,8 @@
#include <qnearfieldtagtype1.h>
#include <qndefnfctextrecord.h>
+QTNFC_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QNearFieldTarget*)
class tst_QNearFieldTagType1 : public QObject
diff --git a/tests/auto/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp b/tests/auto/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp
index 9aeb5272..bd7b8e5a 100644
--- a/tests/auto/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp
+++ b/tests/auto/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -49,6 +49,8 @@
#include <qnearfieldtagtype2.h>
#include <qndefnfctextrecord.h>
+QTNFC_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QNearFieldTarget*)
static const char * const deadbeef = "\xde\xad\xbe\xef";
diff --git a/tests/auto/qrfcommserver/tst_qrfcommserver.cpp b/tests/auto/qrfcommserver/tst_qrfcommserver.cpp
index df2a10bc..5c1e6718 100644
--- a/tests/auto/qrfcommserver/tst_qrfcommserver.cpp
+++ b/tests/auto/qrfcommserver/tst_qrfcommserver.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -47,6 +47,8 @@
#include <qbluetoothsocket.h>
#include <qbluetoothlocaldevice.h>
+QTBLUETOOTH_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QBluetooth::SecurityFlags);
// Max time to wait for connection
diff --git a/tests/btclient/btclient.c b/tests/btclient/btclient.c
index 2d52718f..8a20f6ea 100644
--- a/tests/btclient/btclient.c
+++ b/tests/btclient/btclient.c
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/btclient/btclient.h b/tests/btclient/btclient.h
index d6ab932c..6d2a9b8c 100644
--- a/tests/btclient/btclient.h
+++ b/tests/btclient/btclient.h
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtBluetooth module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfcsymbianbackend/common/qautomsgbox.cpp b/tests/nfcsymbianbackend/common/qautomsgbox.cpp
index c6576ea4..3e97d1ac 100644
--- a/tests/nfcsymbianbackend/common/qautomsgbox.cpp
+++ b/tests/nfcsymbianbackend/common/qautomsgbox.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfcsymbianbackend/common/qautomsgbox.h b/tests/nfcsymbianbackend/common/qautomsgbox.h
index ec27e77b..baca88f9 100644
--- a/tests/nfcsymbianbackend/common/qautomsgbox.h
+++ b/tests/nfcsymbianbackend/common/qautomsgbox.h
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfcsymbianbackend/common/qdummyslot.cpp b/tests/nfcsymbianbackend/common/qdummyslot.cpp
index 8503c244..90b6973d 100644
--- a/tests/nfcsymbianbackend/common/qdummyslot.cpp
+++ b/tests/nfcsymbianbackend/common/qdummyslot.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -41,6 +41,8 @@
#include "qdummyslot.h"
#include "qnfctagtestcommon.h"
+QTNFC_USE_NAMESPACE
+
QDummySlot::QDummySlot(QObject *parent) :
QObject(parent)
{
diff --git a/tests/nfcsymbianbackend/common/qdummyslot.h b/tests/nfcsymbianbackend/common/qdummyslot.h
index 92f58008..6655b2a4 100644
--- a/tests/nfcsymbianbackend/common/qdummyslot.h
+++ b/tests/nfcsymbianbackend/common/qdummyslot.h
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfcsymbianbackend/common/qnfctagtestcommon.h b/tests/nfcsymbianbackend/common/qnfctagtestcommon.h
index 5dc389d8..fe69213e 100644
--- a/tests/nfcsymbianbackend/common/qnfctagtestcommon.h
+++ b/tests/nfcsymbianbackend/common/qnfctagtestcommon.h
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfcsymbianbackend/common/qnfctagutil.cpp b/tests/nfcsymbianbackend/common/qnfctagutil.cpp
index 67d88339..190e087f 100644
--- a/tests/nfcsymbianbackend/common/qnfctagutil.cpp
+++ b/tests/nfcsymbianbackend/common/qnfctagutil.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -41,6 +41,8 @@
#include "qnfctagutil.h"
+QTNFC_USE_NAMESPACE
+
bool QNfcTagUtil::WriteTextNdef2Tag(QNearFieldTarget& target, QString text)
{
QSignalSpy ndefMessageWriteSpy(&target, SIGNAL(ndefMessagesWritten()));
diff --git a/tests/nfcsymbianbackend/common/qnfctagutil.h b/tests/nfcsymbianbackend/common/qnfctagutil.h
index 0a78c6ae..46eb8a3a 100644
--- a/tests/nfcsymbianbackend/common/qnfctagutil.h
+++ b/tests/nfcsymbianbackend/common/qnfctagutil.h
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfcsymbianbackend/nfctestserviceprovider/main.cpp b/tests/nfcsymbianbackend/nfctestserviceprovider/main.cpp
index b519b03e..2b4ac860 100644
--- a/tests/nfcsymbianbackend/nfctestserviceprovider/main.cpp
+++ b/tests/nfcsymbianbackend/nfctestserviceprovider/main.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -61,6 +61,8 @@ using namespace std;
#include <sys/stat.h>
#include <fcntl.h>
+QTNFC_USE_NAMESPACE
+
void MyOutputHandler(QtMsgType type, const char *msg) {
static int fd = -1;
if (fd == -1)
diff --git a/tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.cpp b/tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.cpp
index b6477fc4..3c8cb856 100644
--- a/tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.cpp
+++ b/tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.h b/tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.h
index 31123adf..bc06994b 100644
--- a/tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.h
+++ b/tests/nfcsymbianbackend/nfctestserviceprovider/nfctestserviceprovider.h
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfcsymbianbackend/qcontenthandler/tst_qcontenthandler.cpp b/tests/nfcsymbianbackend/qcontenthandler/tst_qcontenthandler.cpp
index 7bbdcbda..5c68e401 100644
--- a/tests/nfcsymbianbackend/qcontenthandler/tst_qcontenthandler.cpp
+++ b/tests/nfcsymbianbackend/qcontenthandler/tst_qcontenthandler.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -54,6 +54,8 @@
#include <qndefmessage.h>
#include <qndefrecord.h>
+QTNFC_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QNearFieldTarget*)
Q_DECLARE_METATYPE(QNearFieldTarget::Type)
Q_DECLARE_METATYPE(QNdefFilter)
diff --git a/tests/nfcsymbianbackend/qllcpserver/tst_qllcpserver.cpp b/tests/nfcsymbianbackend/qllcpserver/tst_qllcpserver.cpp
index 4018a934..b9ca5b92 100644
--- a/tests/nfcsymbianbackend/qllcpserver/tst_qllcpserver.cpp
+++ b/tests/nfcsymbianbackend/qllcpserver/tst_qllcpserver.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -50,6 +50,8 @@
QString TestUri("urn:nfc:xsn:nokia:symbiantest");
+QTNFC_USE_NAMESPACE
+
static qint64 countBytesWritten(QSignalSpy& bytesWrittenSpy)
{
qint64 ret = 0;
diff --git a/tests/nfcsymbianbackend/qllcpsocketlocal/tst_qllcpsocketlocal.cpp b/tests/nfcsymbianbackend/qllcpsocketlocal/tst_qllcpsocketlocal.cpp
index 657f22e8..fa295fc2 100644
--- a/tests/nfcsymbianbackend/qllcpsocketlocal/tst_qllcpsocketlocal.cpp
+++ b/tests/nfcsymbianbackend/qllcpsocketlocal/tst_qllcpsocketlocal.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfcsymbianbackend/qllcpsocketremote/tst_qllcpsocketremote.cpp b/tests/nfcsymbianbackend/qllcpsocketremote/tst_qllcpsocketremote.cpp
index 550c5458..3fa6e5bd 100644
--- a/tests/nfcsymbianbackend/qllcpsocketremote/tst_qllcpsocketremote.cpp
+++ b/tests/nfcsymbianbackend/qllcpsocketremote/tst_qllcpsocketremote.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -49,6 +49,8 @@
#include "qnfctestcommon.h"
#include "qnfctestutil.h"
+QTNFC_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QNearFieldTarget*)
Q_DECLARE_METATYPE(QLlcpSocket::SocketError);
diff --git a/tests/nfcsymbianbackend/qllcpsockettype2/tst_qllcpsockettype2.cpp b/tests/nfcsymbianbackend/qllcpsockettype2/tst_qllcpsockettype2.cpp
index cefdcd9f..20ccaf64 100644
--- a/tests/nfcsymbianbackend/qllcpsockettype2/tst_qllcpsockettype2.cpp
+++ b/tests/nfcsymbianbackend/qllcpsockettype2/tst_qllcpsockettype2.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -49,6 +49,8 @@
#include "qnfctestcommon.h"
#include "qnfctestutil.h"
+QTNFC_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QNearFieldTarget*)
Q_DECLARE_METATYPE(QLlcpSocket::SocketState)
Q_DECLARE_METATYPE(QLlcpSocket::SocketError)
diff --git a/tests/nfcsymbianbackend/qnearfieldmanager/tst_qnearfieldmanager.cpp b/tests/nfcsymbianbackend/qnearfieldmanager/tst_qnearfieldmanager.cpp
index 6fae1f38..79bdd524 100644
--- a/tests/nfcsymbianbackend/qnearfieldmanager/tst_qnearfieldmanager.cpp
+++ b/tests/nfcsymbianbackend/qnearfieldmanager/tst_qnearfieldmanager.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -53,6 +53,8 @@
#include <qndefmessage.h>
#include <qndefrecord.h>
+QTNFC_USE_NAMESPACE
+
Q_DECLARE_METATYPE(QNearFieldTarget*)
Q_DECLARE_METATYPE(QNearFieldTarget::Type)
Q_DECLARE_METATYPE(QNdefFilter)
diff --git a/tests/nfcsymbianbackend/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp b/tests/nfcsymbianbackend/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp
index 962adf07..f214177f 100644
--- a/tests/nfcsymbianbackend/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp
+++ b/tests/nfcsymbianbackend/qnearfieldtagtype1/tst_qnearfieldtagtype1.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -48,6 +48,8 @@
#include <qnearfieldtagtype1.h>
#include "qnfctestcommon.h"
+QTNFC_USE_NAMESPACE
+
class NfcTagRawCommandOperationType1 : public NfcTagRawCommandOperationCommon
{
public:
diff --git a/tests/nfcsymbianbackend/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp b/tests/nfcsymbianbackend/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp
index 7f8ada31..771a5e60 100644
--- a/tests/nfcsymbianbackend/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp
+++ b/tests/nfcsymbianbackend/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -48,6 +48,8 @@
#include <qnearfieldtagtype2.h>
#include "qnfctestcommon.h"
+QTNFC_USE_NAMESPACE
+
class NfcTagRawCommandOperationType2: public NfcTagRawCommandOperationCommon
{
public:
diff --git a/tests/nfcsymbianbackend/qnearfieldtagtype3/tst_qnearfieldtagtype3.cpp b/tests/nfcsymbianbackend/qnearfieldtagtype3/tst_qnearfieldtagtype3.cpp
index 36417c8c..540c51ba 100644
--- a/tests/nfcsymbianbackend/qnearfieldtagtype3/tst_qnearfieldtagtype3.cpp
+++ b/tests/nfcsymbianbackend/qnearfieldtagtype3/tst_qnearfieldtagtype3.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -48,6 +48,8 @@
#include <qnearfieldtagtype3.h>
#include "qnfctestcommon.h"
+QTNFC_USE_NAMESPACE
+
typedef QMap<quint16,QByteArray> checkResponseType;
Q_DECLARE_METATYPE(checkResponseType)
diff --git a/tests/nfcsymbianbackend/qnearfieldtagtype4/tst_qnearfieldtagtype4.cpp b/tests/nfcsymbianbackend/qnearfieldtagtype4/tst_qnearfieldtagtype4.cpp
index 49f46adb..51389550 100644
--- a/tests/nfcsymbianbackend/qnearfieldtagtype4/tst_qnearfieldtagtype4.cpp
+++ b/tests/nfcsymbianbackend/qnearfieldtagtype4/tst_qnearfieldtagtype4.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -49,6 +49,8 @@
#include "qnfctagtestcommon.h"
#include "qnfctestcommon.h"
+QTNFC_USE_NAMESPACE
+
class NfcTagRawCommandOperationType4: public NfcTagRawCommandOperationCommon
{
public:
diff --git a/tests/nfctestserver/main.cpp b/tests/nfctestserver/main.cpp
index 9e02f4f3..8aa0d0e9 100644
--- a/tests/nfctestserver/main.cpp
+++ b/tests/nfctestserver/main.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfctestserver/servercontroller.cpp b/tests/nfctestserver/servercontroller.cpp
index aafb82d4..ec69a5d6 100644
--- a/tests/nfctestserver/servercontroller.cpp
+++ b/tests/nfctestserver/servercontroller.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfctestserver/servercontroller.h b/tests/nfctestserver/servercontroller.h
index 8cb6ca12..a77bb712 100644
--- a/tests/nfctestserver/servercontroller.h
+++ b/tests/nfctestserver/servercontroller.h
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -46,6 +46,8 @@
#include <qllcpserver.h>
+QTNFC_USE_NAMESPACE
+
class ServerController : public QObject
{
Q_OBJECT
diff --git a/tests/nfctestserver/servicenames.h b/tests/nfctestserver/servicenames.h
index c90fa7b3..f2efdf78 100644
--- a/tests/nfctestserver/servicenames.h
+++ b/tests/nfctestserver/servicenames.h
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfctestserver/socketcontroller.cpp b/tests/nfctestserver/socketcontroller.cpp
index e16f53eb..2e9e12c9 100644
--- a/tests/nfctestserver/socketcontroller.cpp
+++ b/tests/nfctestserver/socketcontroller.cpp
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
diff --git a/tests/nfctestserver/socketcontroller.h b/tests/nfctestserver/socketcontroller.h
index d6273233..1127d4a5 100644
--- a/tests/nfctestserver/socketcontroller.h
+++ b/tests/nfctestserver/socketcontroller.h
@@ -4,7 +4,7 @@
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Qt Mobility Components.
+** This file is part of the QtNfc module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GNU Lesser General Public License Usage
@@ -47,6 +47,8 @@
#include <qnearfieldmanager.h>
#include <qllcpsocket.h>
+QTNFC_USE_NAMESPACE
+
class SocketController : public QObject
{
Q_OBJECT