Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
androidjninfc_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 Centria research and development
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef ANDROIDJNINFC_H
4#define ANDROIDJNINFC_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include "qglobal.h"
18
19#include <QtCore/QJniObject>
20#include <QtCore/qjnitypes.h>
21
23
24Q_DECLARE_JNI_CLASS(QtNfc, "org/qtproject/qt/android/nfc/QtNfc")
25Q_DECLARE_JNI_CLASS(QtNfcBroadcastReceiver, "org/qtproject/qt/android/nfc/QtNfcBroadcastReceiver")
26
27#ifndef QT_DECLARE_JNI_CLASS_STANDARD_TYPES
28Q_DECLARE_JNI_CLASS(String, "java/lang/String")
29Q_DECLARE_JNI_CLASS(Intent, "android/content/Intent")
30Q_DECLARE_JNI_CLASS(Parcelable, "android/os/Parcelable")
31#endif
32
33Q_DECLARE_JNI_CLASS(NdefMessage, "android/nfc/NdefMessage")
34
35namespace QtNfc {
36bool startDiscovery();
37bool stopDiscovery();
38QtJniTypes::Intent getStartIntent();
39bool isEnabled();
40bool isSupported();
41QtJniTypes::Parcelable getTag(const QtJniTypes::Intent &intent);
42} // namespace QtNfc
43
45
46#endif
Combined button and popup list for selecting options.
bool stopDiscovery()
QtJniTypes::Intent getStartIntent()
bool startDiscovery()
bool isEnabled()
QtJniTypes::Parcelable getTag(const QtJniTypes::Intent &intent)
bool isSupported()
QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS(Environment, "android/os/Environment")