| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
To avoid unnecessary copies, const is used wherever possible.
Change-Id: Ic743716512751cfd24fad5bd37c244b115dd26fe
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
|
|
| |
Add API method isSupported to allow to check if the device supports NFC
Task-number: QTBUG-62169
Change-Id: I4ff7f06348ecc902e66ee79bdd8abde672578904
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|
|
|
|
|
| |
Task-number: QTBUG-59343
Change-Id: Ib474db8e9a8d38b3d5668499f838cb8d38e10625
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
|
|\
| |
| |
| | |
Change-Id: I64352b6cc066255972874e2f9c28abff35f0d613
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since Android 5.0 Google introduce a nasty bug[1] which calls
JNI_OnLoad more than once.
Basically every time when a library is loaded JNI_OnLoad is
called if found, but it calls *again* JNI_OnLoad of its .so
dependencies!
[1] Workaround https://code.google.com/p/android/issues/detail?id=215069
Change-Id: I2894dd24afa9c51582f20ab44d83e9ce86751716
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
|/
|
|
|
|
|
|
|
|
| |
From Qt 5.7 -> LGPL v2.1 isn't an option anymore, see
http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/
Updated license headers to use new LGPL header instead of LGPL21 one
(in those files which will be under LGPL v3)
Change-Id: I856c13e2a6d4d12c46e1286b0ca1c092ee4608f8
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I4e78a2b263fb779253556201fd20fe47a2afc58e
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
Some functions in QNearfieldtarget_android are missing.
They will be ported to QtAndroidExtras in a later
commit.
Change-Id: Ib68f91f394f28c8b19ccea4335c8f0292929f003
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
To support this one have to add a AndroidManifest.xml file
to the project. In that file an intent filter should be added
to get nfc intents while in backround..
The corkboard example was extended to have an example for
this new feature.
Change-Id: I108afd88f9e5a548d62245591ebef11de8eb0d81
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: I7f64cc684780983b5ff6edb2c99dd137be978f54
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
| |
In stopDiscovery we need to call stopDiscoveryId and not
startDiscoveryId.
Change-Id: If19f36d53a7426d6616caf6599efdf6c8273eae7
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In Anroid the foreground activity get an onResume/onPause
by implemmenting callbacks. This callback will
be called from android when your activity go into
foreground or background. In Nfc we need to know if we
are the activity in foreground for calling enableForegroundDispatch.
In Android this is mandatory.
To support this callback an API was added in qtbase.
This patch implement an listener of this API to get
that events and use some logic to enable and disable foreground
dispatch of nfc tags.
Change-Id: Ibceed51c5d5905a28f01081027fdf5e0e8b4ef12
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
| |
Change-Id: Iacb162fd7254b8dee28a01dcb8fbdad257289ad3
Reviewed-by: Sergio Ahumada <sahumada@texla.cl>
|
|
|
|
|
|
|
|
| |
The listener of the nfc intents will not be inserted into
the listener list if it is already in.
Change-Id: I572768cccdbd02c49966e5d399e9a3df6903d15b
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In Anroid the foreground activity get an intent by
implemmenting onNewIntent callback. This callback will
be called from android when a nfc tag is in range.
To support this callback an API was added in qtbase.
This patch implement an listener of this API to get
nfc events.
Change-Id: I9ecadf6db53fe1269cb9e66f0062e9ce1ec5a95e
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
|
|
|
|
|
|
|
| |
The namespace is Android backend specific. No need to export it as part
of a separate global header.
Change-Id: Ia6eff3ac6936c427b82c4e81507c6695e40ed11e
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|
|
The code was contributed by
Juhana Jauhiainen <juhana.jauhiainen@gmail.com>
osaukko <osaukko@gmail.com>
waz <markus.liuska@gmail.fi>
List of squashed commits:
Preliminary Android support to QtNFC.
Only receiving Ndef messages to QNearFieldManager.
QNearFieldTarget and LLCP classes need to be implemented for Android
------------------
Added Android buildsettings to nfc.pro
Including Android implementation in QNearFieldManager.h
------------------
QtNfc namespace removed.
------------------
Added Android support to QNearFieldManager::isAvailable() method
------------------
Improved isAvailable method
------------------
Fix QtNfc java module
Added checking for NfcAdapter object so that calling QNearFieldManager::startTargetDetection()
and QNearFieldManager::stopTargetDetection() methods will not crash application.
------------------
Added support for tag types.
NFC tag type is now included in onNdefDiscovered() method call.
Only showing information in debug messages for now.
------------------
Fixing missing return values and releasing acquired resources.
------------------
First proof of concept version of target creation for android.
------------------
Fix for include guards.
------------------
Added QHash container for NearFieldmanager
Added QHash container for NearFieldManager which holds each discovered targets.
Also added setters for NearFieldTarget.
------------------
Using signals and slots to move target information to main thread.
Fixes problem when creating new targets as child of manager.
------------------
Fix for tag detection for tags without NDEF messages
Tag type checking is not working if there is no NDEF messages currently.
Need to find way to check tag type without Ndef object.
------------------
Added error reporting for QNearFieldTarget::readNdefMessages (Android)
------------------
Registering type name for QNearFieltTarget.
Small refactoring for QNearFieldTarget android implementation.
------------------
Sending UID as bytearray.
Also debug messages to show tech list added into QtNfc.java.
------------------
Trying different approach for android version of QtNfc module.
In this approach we pass through intent object(Java) to NearFieldTarget object(c++).
------------------
Fixed nfc.pro so QtNfc.jar is built.
------------------
Added tech list into android version of QNearFieldTarget
Could be used to detect availability of NDEF messages and also to detect tag type.
------------------
Fixed build files so both the C++ and Java libraries are built correctly.
------------------
Support for writing Ndef messages.
------------------
Implementation for NearFieldTarget::hasNdefMessage().
Also nice debug messages to show available technologies for current tag.
------------------
Support for NdefFormatable tags.
------------------
Support for writing NdefFormatable tags.
------------------
Removed debug messages.
------------------
Implemented type() method to Android's QNearFieldTarget.
Conflicts:
src/nfc/qnearfieldtarget_android.cpp
src/nfc/qnearfieldtarget_android_p.h
------------------
Small fixes to remove some of the warnings.
Conflicts:
src/nfc/qnearfieldtarget_android.cpp
src/nfc/qnearfieldtarget_android_p.h
------------------
Committing test code for targetLost signal (Because of Merge)
Conflicts:
src/nfc/qnearfieldtarget_android.cpp
src/nfc/qnearfieldtarget_android_p.h
------------------
Added support for target lost signal
------------------
Using QString::fromUtf8 instead of QString()
Conflicts:
src/nfc/qnearfieldtarget_android.cpp
------------------
Fixed bug with targetLost not emitting when reading or writing Ndef
messages.
Added some untested code for sendCommand.
------------------
Refactoring.
Conflicts:
src/nfc/qnearfieldtarget_android_p.h
------------------
Refactoring and fixes.
------------------
Less debug messages.
------------------
Refactoring and cleaning.
Conflicts:
src/android/android.pro
src/nfc/neard/neard_helper_p.h
src/nfc/nfc.pro
src/nfc/qdeclarativendefrecord.cpp
src/nfc/qdeclarativendefrecord.h
src/nfc/qllcpserver_p.h
src/nfc/qllcpsocket.h
src/nfc/qndefmessage.h
src/nfc/qndefnfcsmartposterrecord_p.h
src/nfc/qnearfieldmanager.cpp
src/nfc/qnearfieldmanager_neard_p.h
src/nfc/qnearfieldtarget.h
src/nfc/qnfcglobal.h
src/src.pro
tests/nfctestserver/socketcontroller.h
Change-Id: Ideb4c8c8064f46b431532ea4870207691bc49c99
Reviewed-by: Peter Rustler <peter.rustler@basyskom.com>
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
|