Export qHash(QNdefRecord)

The symbol is used by the library itself. We may as well export it
for wider use.

The patch adds qHash usage to the unit tests to confirm the export of
the function and to ensure catch changes of the hashing algorithm.

Task-number: QTBUG-31951
Change-Id: Ic6e6e2a0cf7ee5aa9f5bd6c91a8a6c31030c5848
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Fix test error in qnearfieldtagtype2 auto test due to race condition.

This assumes the use of the nfc emulator.

The block selector call in tests/auto/qnearfieldtagtype2/tst_qnearfieldtagtype2.cpp
line 221 fails as the execution of the sector selection requires multiple
event loop turns.

First it must loop to execute the second "SECTOR SELECT" packet
(Command Packet 2). This will set NfcTagType2::currentSector to the
new sector. The same packet will trigger a timer event in
QNearFieldTagType2::handleResponse.

During the second event loop run the above timer event will set
QNearFieldTagType2::d->m_currentSector to the new sector. This will
set the request ID for the sector select request to processed/finished.

While the above two events have to happen the tst starts waiting for the
completion of the sector selection request. The waiting period is merely
1 ms which is too short for the timer event to execute. Subsequently
the test returns with an incomplete sector select request.

Change-Id: I980e440b3431d2fb828e1753f5ef8ea622dd6d3a
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Fix QNearFieldTarget::AccessMethods flags to permit OR concatenation

Adds an UnknownAccess enum value for tag types not yet known by
the library/backend.

Task-number: QTBUG-26027
Change-Id: Ic7654c0906b22bbd5c71bafd3e90a924bf913e23
Reviewed-by: Stuart Burge <sburge@blackberry.com>
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>