Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
androidmainnewintentlistener_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 BasysKom GmbH
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 ANDROIDMAINNEWINTENTLISTENER_P_H_
5
#define ANDROIDMAINNEWINTENTLISTENER_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 <QtCore/private/qjnihelpers_p.h>
19
20
#include "
qlist.h
"
21
#include "
qreadwritelock.h
"
22
23
QT_BEGIN_NAMESPACE
24
25
class
QJniObject
;
26
27
class
QAndroidNfcListenerInterface
28
{
29
public
:
30
virtual
~QAndroidNfcListenerInterface
() =
default
;
31
virtual
void
newIntent
(
QJniObject
intent) = 0;
32
};
33
34
class
QMainNfcNewIntentListener
:
public
QtAndroidPrivate::NewIntentListener
,
35
QtAndroidPrivate::ResumePauseListener
36
{
37
public
:
38
QMainNfcNewIntentListener
();
39
~QMainNfcNewIntentListener
();
40
41
//QtAndroidPrivate::NewIntentListener
42
bool
handleNewIntent
(JNIEnv *env, jobject intent);
43
44
bool
registerListener
(
QAndroidNfcListenerInterface
*listener);
45
bool
unregisterListener
(
QAndroidNfcListenerInterface
*listener);
46
47
//QtAndroidPrivate::ResumePauseListener
48
void
handleResume
();
49
void
handlePause
();
50
51
private
:
52
void
updateReceiveState();
53
54
QList<QAndroidNfcListenerInterface *>
listeners;
55
QReadWriteLock
listenersLock;
56
bool
paused;
57
bool
receiving;
58
};
59
60
QT_END_NAMESPACE
61
62
#endif
/* ANDROIDMAINNEWINTENTLISTENER_P_H_ */
QAndroidNfcListenerInterface
Definition
androidmainnewintentlistener_p.h:28
QAndroidNfcListenerInterface::~QAndroidNfcListenerInterface
virtual ~QAndroidNfcListenerInterface()=default
QAndroidNfcListenerInterface::newIntent
virtual void newIntent(QJniObject intent)=0
QJniObject
\inmodule QtCore
QList
Definition
qlist.h:74
QMainNfcNewIntentListener
Definition
androidmainnewintentlistener_p.h:36
QMainNfcNewIntentListener::registerListener
bool registerListener(QAndroidNfcListenerInterface *listener)
Definition
androidmainnewintentlistener.cpp:38
QMainNfcNewIntentListener::unregisterListener
bool unregisterListener(QAndroidNfcListenerInterface *listener)
Definition
androidmainnewintentlistener.cpp:57
QMainNfcNewIntentListener::~QMainNfcNewIntentListener
~QMainNfcNewIntentListener()
Definition
androidmainnewintentlistener.cpp:18
QMainNfcNewIntentListener::handlePause
void handlePause()
Definition
androidmainnewintentlistener.cpp:72
QMainNfcNewIntentListener::handleNewIntent
bool handleNewIntent(JNIEnv *env, jobject intent)
Definition
androidmainnewintentlistener.cpp:24
QMainNfcNewIntentListener::QMainNfcNewIntentListener
QMainNfcNewIntentListener()
Definition
androidmainnewintentlistener.cpp:12
QMainNfcNewIntentListener::handleResume
void handleResume()
Definition
androidmainnewintentlistener.cpp:66
QReadWriteLock
\inmodule QtCore
QtAndroidPrivate::NewIntentListener
Definition
qjnihelpers_p.h:38
QtAndroidPrivate::ResumePauseListener
Definition
qjnihelpers_p.h:45
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
qlist.h
qreadwritelock.h
qtconnectivity
src
nfc
android
androidmainnewintentlistener_p.h
Generated by
1.9.7