Add Neard dbus xml interfaces

Change-Id: Ie3661fe2b35735e22613e1c7ce0a408652b69970
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Add C++ Dbus neard interfaces

Change-Id: Ice6343bf486f4a908704de14772e8d4464106f4a
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Add neard Tag dbus interface

Change-Id: Id4152a5c6d622d8a0195d30d28b9ac8714491b92
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Initial implementation of the QNearfieldmanager

While the QNearFielManager is not functional yet, this commit contains a
sceleton implementation on which the future implementation can be built on.

Change-Id: I075b42bb74051db4629e7a93b2aaea89785807b9
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Add QNearfieldTarget neard implementation

This is mostly a skeleton implementation.
There is no support yet for reading records or ndef messages.

Change-Id: Id521468517c04b088152e15a327cff9b26fa346f
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Clean up neard implementation

Besides some code cleanups this patch makes sure to only build the neard
implementation if dbus is available. This patch also deals with the
possibility that the neard daemon is not running on the system.

Change-Id: I8546d34b808d8236e0434e00cf5950b31e20cb72
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Introduce a logging category for the neard implementation

Change-Id: I3bee8a5c2e3bee9a83ddcb6f3a5b2b42fdb24d89
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Implement tag detected and tag lost signals

This patch also implements reading the record pathes from the tag.

Change-Id: Ia19ff235149cb91d3cbf7ae7c043d07d6aeae429
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Add neard ndef record parsing

This patch adds the neard dbus interface and provides logic
to parse data from this interface.

Change-Id: Id9a5df88d75c71cf6f2b320afed644a38d03c38d
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Neard: Implement tag write

Change-Id: I423658f5365ed51ccb117f5e388b93cc3ab2b8f9
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Neard: porting to neard v0.14

The dbus interfaces have been adapted to the state of neard v0.14.
Reading from the supported tags works, writing to them works to
a limited extent.

Change-Id: Ib0704c6d951baa31ad58484e0c11534aaad359be
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
QNearFieldManager::registerNdefMessageHandler returns -1 on error

This brings it in line with another function overload.

Change-Id: I9120f755790e60b5073024133955c2b10671308f
Reviewed-by: Martin Leutelt <martin.leutelt@basyskom.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fixing crash when stopping poll loop

When stopping the neard adapter poll loop without
starting it from the same QNearFieldManagerPrivateImpl
instance the m_adapter variable does not hold a
valid pointer to an instance of OrgNeardAdapterInterface.

This patch fixes that issue by creating a temporary
instance on the stack to call the appropriate function
on the D-Bus interface.

Change-Id: I42ced8d00ca9f87756c8f3f81ca78969702344c1
Reviewed-by: Martin Leutelt <martin.leutelt@basyskom.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Updated documentation to include neard

Change-Id: I5fbcc7975f9d01374ac296d6a5528974e8513601
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Extend QML NearField item to support neard

The property 'polling' has been added to query the current state
and to allow the user to start and stop target detection. The
signals 'tagFound' and 'tagRemoved' have been added to allow
the user to react to those events.

Change-Id: Ieb07b5b799679982429a66f1790fa9985c55a24d
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix QLEController::connectToDevice() documentation

A logical condition was inverted.

Change-Id: Ia7b54fe75a8cea4275e3c92c6283bc12f3423b64
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
QLowEnergyController - service discovery (OS X, iOS)

Implement discoverServices and delegate's methods to work with a service
discovery on a peripheral.
- CBUUID (it's internal data) can be only 2 bytes long (16-bit shortened UUID)
  despite of the docs saying 'CBUUID is a 16-bit UUID'.
- property 'isPrimary' did not exist prior to 10.9 SDK (OS X).

Change-Id: If692d147c0479ed69a331514617e3ef2a986cdf4
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Update documentation to reflect new Linux platform support

Fixes a few qdoc errors along the way.

Change-Id: Ia0caf483f5c86dbd5c47f3d96a6d5bcf622db312
Reviewed-by: Martin Leutelt <martin.leutelt@basyskom.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
More clearly specify the Linux and Bluez version for BTLE support

Change-Id: If62bce8794855b8865e02ed87ec3faac80bfc3bd
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Prepare BTLE unit tests for platforms which don't provide handle access

Change-Id: I63a6d31aaa13bf94ef0cc9664dd365ddb1d84b52
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>