1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QNEARFIELDMANAGER_P_H
5#define QNEARFIELDMANAGER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qnearfieldmanager.h"
19#include "qnearfieldtarget.h"
20#include "qndefrecord.h"
21
22#include "qtnfcglobal.h"
23
24#include <QtCore/QObject>
25
26QT_BEGIN_NAMESPACE
27
28class QNdefFilter;
29
30class Q_AUTOTEST_EXPORT QNearFieldManagerPrivate : public QObject
31{
32 Q_OBJECT
33
34public:
35 explicit QNearFieldManagerPrivate(QObject *parent = nullptr)
36 : QObject(parent)
37 {
38 }
39
40 virtual ~QNearFieldManagerPrivate()
41 {
42 }
43
44 virtual bool isEnabled() const
45 {
46 return false;
47 }
48
49 virtual bool isSupported(QNearFieldTarget::AccessMethod) const
50 {
51 return false;
52 }
53
54 virtual bool startTargetDetection(QNearFieldTarget::AccessMethod)
55 {
56 return false;
57 }
58
59 virtual void stopTargetDetection(const QString &)
60 {
61 }
62
63 virtual void setUserInformation(const QString &)
64 {
65 }
66
67signals:
68 void adapterStateChanged(QNearFieldManager::AdapterState state);
69 void targetDetectionStopped();
70 void targetDetected(QNearFieldTarget *target);
71 void targetLost(QNearFieldTarget *target);
72};
73
74QT_END_NAMESPACE
75
76#endif // QNEARFIELDMANAGER_P_H
77

source code of qtconnectivity/src/nfc/qnearfieldmanager_p.h