summaryrefslogtreecommitdiffstats
path: root/src/nfc/qndefrecord.h
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 /src/nfc/qndefrecord.h
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 'src/nfc/qndefrecord.h')
-rw-r--r--src/nfc/qndefrecord.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/nfc/qndefrecord.h b/src/nfc/qndefrecord.h
index a1ab59b6..8e7b4b7d 100644
--- a/src/nfc/qndefrecord.h
+++ b/src/nfc/qndefrecord.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
@@ -49,6 +49,8 @@
QT_BEGIN_HEADER
+QTNFC_BEGIN_NAMESPACE
+
class QNdefRecordPrivate;
class Q_NFC_EXPORT QNdefRecord
@@ -106,13 +108,17 @@ private:
className(const QNdefRecord &other) : QNdefRecord(other, typeNameFormat, type) { }
#define Q_DECLARE_ISRECORDTYPE_FOR_NDEF_RECORD(className, typeNameFormat_, type_) \
+ QTNFC_BEGIN_NAMESPACE \
template<> inline bool QNdefRecord::isRecordType<className>() const\
{ \
return (typeNameFormat() == typeNameFormat_ && type() == type_); \
- }
+ } \
+ QTNFC_END_NAMESPACE
uint qHash(const QNdefRecord &key);
+QTNFC_END_NAMESPACE
+
QT_END_HEADER
#endif // QNDEFRECORD_H