blob: 476e051954de15c4f649d556963213d05c257d10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright (C) 2016 Centria research and development
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef ANDROIDJNINFC_H
#define ANDROIDJNINFC_H
//
// W A R N I N G
// -------------
//
// This file is not part of the Qt API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
//
#include "qglobal.h"
#include <QtCore/QJniObject>
#include <QtCore/qjnitypes.h>
QT_BEGIN_NAMESPACE
Q_DECLARE_JNI_CLASS(QtNfc, "org/qtproject/qt/android/nfc/QtNfc")
Q_DECLARE_JNI_CLASS(QtNfcBroadcastReceiver, "org/qtproject/qt/android/nfc/QtNfcBroadcastReceiver")
Q_DECLARE_JNI_TYPE(StringArray, "[Ljava/lang/String;")
Q_DECLARE_JNI_CLASS(Intent, "android/content/Intent")
Q_DECLARE_JNI_CLASS(Parcellable, "android/os/Parcelable")
Q_DECLARE_JNI_CLASS(NdefMessage, "android/nfc/NdefMessage")
namespace QtNfc {
bool startDiscovery();
bool stopDiscovery();
QJniObject getStartIntent();
bool isEnabled();
bool isSupported();
QJniObject getTag(const QJniObject &intent);
} // namespace QtNfc
QT_END_NAMESPACE
#endif
|