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
QNearFieldTargetPrivateImpl Class Reference

#include <qnearfieldtarget_android_p.h>

+ Inheritance diagram for QNearFieldTargetPrivateImpl:
+ Collaboration diagram for QNearFieldTargetPrivateImpl:

Public Slots

void onDisconnected ()
 
void onInvalidated ()
 
void onRequestCompleted (const QNearFieldTarget::RequestId &request, QNearFieldTarget::Error reason, const QVariant &result)
 
void onNdefMessageRead (const QNdefMessage &message)
 
- Public Slots inherited from QObject
void deleteLater ()
 \threadsafe
 

Signals

void targetDestroyed (const QByteArray &tagId)
 
void targetLost (QNearFieldTargetPrivateImpl *target)
 
void ndefMessageRead (const QNdefMessage &message, const QNearFieldTarget::RequestId &id)
 
void targetLost (QNearFieldTargetPrivateImpl *target)
 
void disconnectRequest ()
 
void sendCommandRequest (const QNearFieldTarget::RequestId &request, const QByteArray &command)
 
void readNdefMessagesRequest (const QNearFieldTarget::RequestId &request)
 
void writeNdefMessagesRequest (const QNearFieldTarget::RequestId &request, const QList< QNdefMessage > &messages)
 
void targetLost (QNearFieldTargetPrivate *target)
 
- Signals inherited from QNearFieldTargetPrivate
void disconnected ()
 
void ndefMessageRead (const QNdefMessage &message)
 
void requestCompleted (const QNearFieldTarget::RequestId &id)
 
void error (QNearFieldTarget::Error error, const QNearFieldTarget::RequestId &id)
 
- Signals inherited from QObject
void destroyed (QObject *=nullptr)
 This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked.
 
void objectNameChanged (const QString &objectName, QPrivateSignal)
 This signal is emitted after the object's name has been changed.
 

Public Member Functions

 QNearFieldTargetPrivateImpl (QJniObject intent, const QByteArray uid, QObject *parent=nullptr)
 
 ~QNearFieldTargetPrivateImpl () override
 
QByteArray uid () const override
 
QNearFieldTarget::Type type () const override
 
QNearFieldTarget::AccessMethods accessMethods () const override
 
bool disconnect () override
 
bool hasNdefMessage () override
 
QNearFieldTarget::RequestId readNdefMessages () override
 
QNearFieldTarget::RequestId writeNdefMessages (const QList< QNdefMessage > &messages) override
 
int maxCommandLength () const override
 
QNearFieldTarget::RequestId sendCommand (const QByteArray &command) override
 
void setIntent (QJniObject intent)
 
 QNearFieldTargetPrivateImpl (void *tag, QObject *parent=nullptr)
 
 QNearFieldTargetPrivateImpl (void *sessionDelegate, void *tag, QObject *parent=nullptr)
 
 ~QNearFieldTargetPrivateImpl () override
 
void invalidate ()
 
QByteArray uid () const override
 
QNearFieldTarget::Type type () const override
 
QNearFieldTarget::AccessMethods accessMethods () const override
 
int maxCommandLength () const override
 
QNearFieldTarget::RequestId sendCommand (const QByteArray &command) override
 
bool hasNdefMessage () override
 
QNearFieldTarget::RequestId readNdefMessages () override
 
QNearFieldTarget::RequestId writeNdefMessages (const QList< QNdefMessage > &messages) override
 
bool isAvailable () const
 
 QNearFieldTargetPrivateImpl (QObject *parent, QDBusObjectPath interfacePath)
 
 ~QNearFieldTargetPrivateImpl ()
 
bool isValid ()
 
QByteArray uid () const override
 
QNearFieldTarget::Type type () const override
 
QNearFieldTarget::AccessMethods accessMethods () const override
 
bool hasNdefMessage () override
 
QNearFieldTarget::RequestId readNdefMessages () override
 
QNearFieldTarget::RequestId sendCommand (const QByteArray &command) override
 
QNearFieldTarget::RequestId writeNdefMessages (const QList< QNdefMessage > &messages) override
 
 QNearFieldTargetPrivateImpl (const QByteArray &uid, QNearFieldTarget::AccessMethods accessMethods, int maxInputLength, QObject *parent)
 
 ~QNearFieldTargetPrivateImpl () override
 
QByteArray uid () const override
 
QNearFieldTarget::Type type () const override
 
QNearFieldTarget::AccessMethods accessMethods () const override
 
bool disconnect () override
 
int maxCommandLength () const override
 
QNearFieldTarget::RequestId sendCommand (const QByteArray &command) override
 
QNearFieldTarget::RequestId readNdefMessages () override
 
QNearFieldTarget::RequestId writeNdefMessages (const QList< QNdefMessage > &messages) override
 
- Public Member Functions inherited from QNearFieldTargetPrivate
 QNearFieldTargetPrivate (QObject *parent=nullptr)
 
virtual ~QNearFieldTargetPrivate ()=default
 
bool waitForRequestCompleted (const QNearFieldTarget::RequestId &id, int msecs=5000)
 
QVariant requestResponse (const QNearFieldTarget::RequestId &id) const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=nullptr)
 Constructs an object with parent object parent.
 
virtual ~QObject ()
 Destroys the object, deleting all its child objects.
 
virtual bool event (QEvent *event)
 This virtual function receives events to an object and should return true if the event e was recognized and processed.
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 Filters events if this object has been installed as an event filter for the watched object.
 
QString objectName () const
 
Q_WEAK_OVERLOAD void setObjectName (const QString &name)
 Sets the object's name to name.
 
void setObjectName (QAnyStringView name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QBindable< QStringbindableObjectName ()
 
bool isWidgetType () const
 Returns true if the object is a widget; otherwise returns false.
 
bool isWindowType () const
 Returns true if the object is a window; otherwise returns false.
 
bool isQuickItemType () const
 Returns true if the object is a QQuickItem; otherwise returns false.
 
bool signalsBlocked () const noexcept
 Returns true if signals are blocked; otherwise returns false.
 
bool blockSignals (bool b) noexcept
 If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it).
 
QThreadthread () const
 Returns the thread in which the object lives.
 
bool moveToThread (QThread *thread QT6_DECL_NEW_OVERLOAD_TAIL)
 Changes the thread affinity for this object and its children and returns true on success.
 
int startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer)
 This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds.
 
int startTimer (std::chrono::nanoseconds time, Qt::TimerType timerType=Qt::CoarseTimer)
 
void killTimer (int id)
 Kills the timer with timer identifier, id.
 
void killTimer (Qt::TimerId id)
 
template<typename T >
findChild (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object.
 
template<typename T >
QList< T > findChildren (QAnyStringView aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects.
 
template<typename T >
findChild (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
template<typename T >
QList< T > findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const QObjectListchildren () const
 Returns a list of child objects.
 
void setParent (QObject *parent)
 Makes the object a child of parent.
 
void installEventFilter (QObject *filterObj)
 Installs an event filter filterObj on this object.
 
void removeEventFilter (QObject *obj)
 Removes an event filter object obj from this object.
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const
 
bool disconnect (const QObject *receiver, const char *member=nullptr) const
 
void dumpObjectTree () const
 Dumps a tree of children to the debug output.
 
void dumpObjectInfo () const
 Dumps information about signal connections, etc.
 
bool setProperty (const char *name, const QVariant &value)
 Sets the value of the object's name property to value.
 
bool setProperty (const char *name, QVariant &&value)
 
QVariant property (const char *name) const
 Returns the value of the object's name property.
 
QList< QByteArraydynamicPropertyNames () const
 
QBindingStoragebindingStorage ()
 
const QBindingStoragebindingStorage () const
 
QObjectparent () const
 Returns a pointer to the parent object.
 
bool inherits (const char *classname) const
 Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false.
 

Protected Slots

void checkIsTargetLost ()
 

Protected Member Functions

void releaseIntent ()
 
void updateTechList ()
 
void updateType ()
 
QNearFieldTarget::Type getTagType () const
 
void setupTargetCheckTimer ()
 
void handleTargetLost ()
 
QJniObject getTagTechnology (const QString &tech) const
 
bool setTagTechnology (const QStringList &technologies)
 
bool connect ()
 
bool setCommandTimeout (int timeout)
 
QByteArray jbyteArrayToQByteArray (const jbyteArray &byteArray) const
 
- Protected Member Functions inherited from QNearFieldTargetPrivate
virtual void setResponseForRequest (const QNearFieldTarget::RequestId &id, const QVariant &response, bool emitRequestCompleted=true)
 
void reportError (QNearFieldTarget::Error error, const QNearFieldTarget::RequestId &id)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr.
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 Returns the number of receivers connected to the signal.
 
bool isSignalConnected (const QMetaMethod &signal) const
 
virtual void timerEvent (QTimerEvent *event)
 This event handler can be reimplemented in a subclass to receive timer events for the object.
 
virtual void childEvent (QChildEvent *event)
 This event handler can be reimplemented in a subclass to receive child events.
 
virtual void customEvent (QEvent *event)
 This event handler can be reimplemented in a subclass to receive custom events.
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=nullptr)
 

Protected Attributes

QJniObject targetIntent
 
QByteArray targetUid
 
QTimertargetCheckTimer
 
QString selectedTech
 
QStringList techList
 
QNearFieldTarget::Type tagType
 
QJniObject tagTech
 
- Protected Attributes inherited from QNearFieldTargetPrivate
QMap< QNearFieldTarget::RequestId, QVariantm_decodedResponses
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
static QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 \threadsafe
 
static QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 \threadsafe
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static bool disconnect (const QMetaObject::Connection &)
 Disconnect a connection.
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot)
 
template<typename Func1 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero)
 
- Public Attributes inherited from QNearFieldTargetPrivate
QNearFieldTargetq_ptr
 
- Properties inherited from QObject
QString objectName
 the name of this object
 

Detailed Description

Definition at line 30 of file qnearfieldtarget_android_p.h.

Constructor & Destructor Documentation

◆ QNearFieldTargetPrivateImpl() [1/5]

QNearFieldTargetPrivateImpl::QNearFieldTargetPrivateImpl ( QJniObject intent,
const QByteArray uid,
QObject * parent = nullptr )

Definition at line 24 of file qnearfieldtarget_android.cpp.

References setupTargetCheckTimer(), updateTechList(), and updateType().

+ Here is the call graph for this function:

◆ ~QNearFieldTargetPrivateImpl() [1/4]

QNearFieldTargetPrivateImpl::~QNearFieldTargetPrivateImpl ( )
override

Definition at line 36 of file qnearfieldtarget_android.cpp.

References Q_EMIT, releaseIntent(), targetDestroyed(), and targetUid.

+ Here is the call graph for this function:

◆ QNearFieldTargetPrivateImpl() [2/5]

QNearFieldTargetPrivateImpl::QNearFieldTargetPrivateImpl ( void * tag,
QObject * parent = nullptr )

Definition at line 38 of file qnearfieldtarget_ios.mm.

References QObject::connect(), QNearFieldTargetPrivate::error(), Q_ASSERT, ResponseProvider::responseReceived(), QTimer::start(), targetCheckTimer, and QTimer::timeout().

+ Here is the call graph for this function:

◆ QNearFieldTargetPrivateImpl() [3/5]

QNearFieldTargetPrivateImpl::QNearFieldTargetPrivateImpl ( void * sessionDelegate,
void * tag,
QObject * parent = nullptr )

Definition at line 50 of file qnearfieldtarget_ios.mm.

References QObject::connect(), QNearFieldTargetPrivate::error(), Q_ASSERT, Qt::QueuedConnection, QTimer::start(), tag, QNfcNdefNotifier::tagError(), targetCheckTimer, and QTimer::timeout().

+ Here is the call graph for this function:

◆ ~QNearFieldTargetPrivateImpl() [2/4]

QNearFieldTargetPrivateImpl::~QNearFieldTargetPrivateImpl ( )
override

◆ QNearFieldTargetPrivateImpl() [4/5]

QT_BEGIN_NAMESPACE QNearFieldTargetPrivateImpl::QNearFieldTargetPrivateImpl ( QObject * parent,
QDBusObjectPath interfacePath )

Definition at line 14 of file qnearfieldtarget_neard_p.cpp.

References connect(), NeardHelper::instance(), QNearFieldTarget::NfcTagType1, QNearFieldTarget::NfcTagType2, QNearFieldTarget::NfcTagType3, QNearFieldTarget::NfcTagType4, QNearFieldTarget::ProprietaryTag, qCDebug, qCWarning, QStringLiteral, NeardHelper::recordFound(), reply, QDBusConnection::systemBus(), and QTimer::timeout().

+ Here is the call graph for this function:

◆ ~QNearFieldTargetPrivateImpl() [3/4]

QNearFieldTargetPrivateImpl::~QNearFieldTargetPrivateImpl ( )

◆ QNearFieldTargetPrivateImpl() [5/5]

QT_BEGIN_NAMESPACE QNearFieldTargetPrivateImpl::QNearFieldTargetPrivateImpl ( const QByteArray & uid,
QNearFieldTarget::AccessMethods accessMethods,
int maxInputLength,
QObject * parent )

Definition at line 18 of file qnearfieldtarget_pcsc.cpp.

References qCDebug.

◆ ~QNearFieldTargetPrivateImpl() [4/4]

QNearFieldTargetPrivateImpl::~QNearFieldTargetPrivateImpl ( )
override

Member Function Documentation

◆ accessMethods() [1/4]

QNearFieldTarget::AccessMethods QNearFieldTargetPrivateImpl::accessMethods ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

Definition at line 52 of file qnearfieldtarget_android.cpp.

References ISODEPTECHNOLOGY, QNearFieldTarget::NdefAccess, NDEFFORMATABLETECHNOLOGY, NDEFTECHNOLOGY, NFCATECHNOLOGY, NFCBTECHNOLOGY, NFCFTECHNOLOGY, NFCVTECHNOLOGY, QNearFieldTarget::TagTypeSpecificAccess, techList, and QNearFieldTarget::UnknownAccess.

Referenced by sendCommand().

+ Here is the caller graph for this function:

◆ accessMethods() [2/4]

QNearFieldTarget::AccessMethods QNearFieldTargetPrivateImpl::accessMethods ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ accessMethods() [3/4]

QNearFieldTarget::AccessMethods QNearFieldTargetPrivateImpl::accessMethods ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ accessMethods() [4/4]

QNearFieldTarget::AccessMethods QNearFieldTargetPrivateImpl::accessMethods ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ checkIsTargetLost

void QNearFieldTargetPrivateImpl::checkIsTargetLost ( )
protectedslot

Definition at line 284 of file qnearfieldtarget_android.cpp.

References connected, handleTargetLost(), selectedTech, setTagTechnology(), tagTech, and targetIntent.

Referenced by setupTargetCheckTimer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ connect()

bool QNearFieldTargetPrivateImpl::connect ( )
protected

Definition at line 450 of file qnearfieldtarget_android.cpp.

References connected, setCommandTimeout(), and tagTech.

Referenced by readNdefMessages(), sendCommand(), and writeNdefMessages().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ disconnect() [1/2]

bool QNearFieldTargetPrivateImpl::disconnect ( )
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

Definition at line 70 of file qnearfieldtarget_android.cpp.

References connected, and tagTech.

◆ disconnect() [2/2]

bool QNearFieldTargetPrivateImpl::disconnect ( )
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ disconnectRequest

void QNearFieldTargetPrivateImpl::disconnectRequest ( )
signal

Referenced by QNearFieldManagerPrivateImpl::onCardInserted().

+ Here is the caller graph for this function:

◆ getTagTechnology()

QJniObject QNearFieldTargetPrivateImpl::getTagTechnology ( const QString & tech) const
protected

Definition at line 418 of file qnearfieldtarget_android.cpp.

References QString::arg(), QByteArray::constData(), QString::fromUtf8(), QtNfc::getTag(), Q_ASSERT_X, tag, tagTech, targetIntent, and QString::toUtf8().

Referenced by getTagType(), maxCommandLength(), and setTagTechnology().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTagType()

QNearFieldTarget::Type QNearFieldTargetPrivateImpl::getTagType ( ) const
protected

Definition at line 355 of file qnearfieldtarget_android.cpp.

References getTagTechnology(), jbyteArrayToQByteArray(), MIFARECLASSICTECHNOLOGY, QNearFieldTarget::MifareTag, MIFARETAG, NDEFTECHNOLOGY, NFCATECHNOLOGY, NFCBTECHNOLOGY, NFCFTECHNOLOGY, QNearFieldTarget::NfcTagType1, NFCTAGTYPE1, QNearFieldTarget::NfcTagType2, NFCTAGTYPE2, QNearFieldTarget::NfcTagType3, NFCTAGTYPE3, QNearFieldTarget::NfcTagType4, NFCTAGTYPE4, QNearFieldTarget::NfcTagType4A, QNearFieldTarget::NfcTagType4B, QNearFieldTarget::ProprietaryTag, techList, and toString().

Referenced by updateType().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handleTargetLost()

void QNearFieldTargetPrivateImpl::handleTargetLost ( )
protected

Definition at line 412 of file qnearfieldtarget_android.cpp.

References Q_EMIT, releaseIntent(), and targetLost().

Referenced by checkIsTargetLost(), sendCommand(), and updateTechList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasNdefMessage() [1/3]

bool QNearFieldTargetPrivateImpl::hasNdefMessage ( )
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

Definition at line 85 of file qnearfieldtarget_android.cpp.

References NDEFTECHNOLOGY, and techList.

Referenced by readNdefMessages().

+ Here is the caller graph for this function:

◆ hasNdefMessage() [2/3]

bool QNearFieldTargetPrivateImpl::hasNdefMessage ( )
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ hasNdefMessage() [3/3]

bool QNearFieldTargetPrivateImpl::hasNdefMessage ( )
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ invalidate()

void QNearFieldTargetPrivateImpl::invalidate ( )

Definition at line 76 of file qnearfieldtarget_ios.mm.

References QList< T >::clear(), QObject::disconnect(), QMetaObject::invokeMethod(), Q_ASSERT, Q_EMIT, Qt::QueuedConnection, QTimer::stop(), targetCheckTimer, and targetLost().

+ Here is the call graph for this function:

◆ isAvailable()

bool QNearFieldTargetPrivateImpl::isAvailable ( ) const

Definition at line 239 of file qnearfieldtarget_ios.mm.

References iOS, QNearFieldTarget::RequestId::isValid(), and tag.

+ Here is the call graph for this function:

◆ isValid()

bool QNearFieldTargetPrivateImpl::isValid ( )

Definition at line 67 of file qnearfieldtarget_neard_p.cpp.

References NeardHelper::instance(), and QDBusAbstractInterface::isValid().

+ Here is the call graph for this function:

◆ jbyteArrayToQByteArray()

QByteArray QNearFieldTargetPrivateImpl::jbyteArrayToQByteArray ( const jbyteArray & byteArray) const
protected

Definition at line 486 of file qnearfieldtarget_android.cpp.

Referenced by getTagType(), readNdefMessages(), and sendCommand().

+ Here is the caller graph for this function:

◆ maxCommandLength() [1/3]

int QNearFieldTargetPrivateImpl::maxCommandLength ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

Definition at line 142 of file qnearfieldtarget_android.cpp.

References getTagTechnology(), ISODEPTECHNOLOGY, NFCATECHNOLOGY, NFCBTECHNOLOGY, NFCFTECHNOLOGY, NFCVTECHNOLOGY, tagTech, and techList.

Referenced by sendCommand().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ maxCommandLength() [2/3]

int QNearFieldTargetPrivateImpl::maxCommandLength ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ maxCommandLength() [3/3]

int QNearFieldTargetPrivateImpl::maxCommandLength ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ ndefMessageRead

void QNearFieldTargetPrivateImpl::ndefMessageRead ( const QNdefMessage & message,
const QNearFieldTarget::RequestId & id )
signal

Referenced by onNdefMessageRead(), and readNdefMessages().

+ Here is the caller graph for this function:

◆ onDisconnected

void QNearFieldTargetPrivateImpl::onDisconnected ( )
slot

Definition at line 137 of file qnearfieldtarget_pcsc.cpp.

References QNearFieldTargetPrivate::disconnected(), Q_EMIT, Q_FUNC_INFO, and qCDebug.

Referenced by QNearFieldManagerPrivateImpl::onCardInserted().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onInvalidated

void QNearFieldTargetPrivateImpl::onInvalidated ( )
slot

Definition at line 149 of file qnearfieldtarget_pcsc.cpp.

References Q_EMIT, Q_FUNC_INFO, qCDebug, and targetLost().

Referenced by QNearFieldManagerPrivateImpl::onCardInserted().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onNdefMessageRead

void QNearFieldTargetPrivateImpl::onNdefMessageRead ( const QNdefMessage & message)
slot

Definition at line 86 of file qnearfieldtarget_pcsc.cpp.

References ndefMessageRead(), and Q_EMIT.

Referenced by QNearFieldManagerPrivateImpl::onCardInserted().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onRequestCompleted

void QNearFieldTargetPrivateImpl::onRequestCompleted ( const QNearFieldTarget::RequestId & request,
QNearFieldTarget::Error reason,
const QVariant & result )
slot

Definition at line 74 of file qnearfieldtarget_pcsc.cpp.

References QNearFieldTarget::NoError, Q_FUNC_INFO, qCDebug, QNearFieldTargetPrivate::reportError(), request, and QNearFieldTargetPrivate::setResponseForRequest().

Referenced by QNearFieldManagerPrivateImpl::onCardInserted().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readNdefMessages() [1/4]

◆ readNdefMessages() [2/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::readNdefMessages ( )
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ readNdefMessages() [3/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::readNdefMessages ( )
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ readNdefMessages() [4/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::readNdefMessages ( )
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ readNdefMessagesRequest

void QNearFieldTargetPrivateImpl::readNdefMessagesRequest ( const QNearFieldTarget::RequestId & request)
signal

Referenced by QNearFieldManagerPrivateImpl::onCardInserted().

+ Here is the caller graph for this function:

◆ releaseIntent()

void QNearFieldTargetPrivateImpl::releaseIntent ( )
protected

Definition at line 318 of file qnearfieldtarget_android.cpp.

References QTimer::stop(), targetCheckTimer, and targetIntent.

Referenced by ~QNearFieldTargetPrivateImpl(), handleTargetLost(), and setIntent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sendCommand() [1/4]

◆ sendCommand() [2/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::sendCommand ( const QByteArray & command)
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ sendCommand() [3/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::sendCommand ( const QByteArray & command)
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ sendCommand() [4/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::sendCommand ( const QByteArray & command)
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ sendCommandRequest

void QNearFieldTargetPrivateImpl::sendCommandRequest ( const QNearFieldTarget::RequestId & request,
const QByteArray & command )
signal

Referenced by QNearFieldManagerPrivateImpl::onCardInserted().

+ Here is the caller graph for this function:

◆ setCommandTimeout()

bool QNearFieldTargetPrivateImpl::setCommandTimeout ( int timeout)
protected

Definition at line 474 of file qnearfieldtarget_android.cpp.

References tagTech, and void.

Referenced by connect().

+ Here is the caller graph for this function:

◆ setIntent()

void QNearFieldTargetPrivateImpl::setIntent ( QJniObject intent)

Definition at line 269 of file qnearfieldtarget_android.cpp.

References releaseIntent(), QTimer::start(), targetCheckTimer, targetIntent, updateTechList(), and updateType().

+ Here is the call graph for this function:

◆ setTagTechnology()

bool QNearFieldTargetPrivateImpl::setTagTechnology ( const QStringList & technologies)
protected

Definition at line 434 of file qnearfieldtarget_android.cpp.

References getTagTechnology(), selectedTech, tagTech, and techList.

Referenced by checkIsTargetLost(), readNdefMessages(), sendCommand(), and writeNdefMessages().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setupTargetCheckTimer()

void QNearFieldTargetPrivateImpl::setupTargetCheckTimer ( )
protected

Definition at line 404 of file qnearfieldtarget_android.cpp.

References checkIsTargetLost(), QObject::connect(), QTimer::setInterval(), QTimer::start(), targetCheckTimer, and QTimer::timeout().

Referenced by QNearFieldTargetPrivateImpl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ targetDestroyed

void QNearFieldTargetPrivateImpl::targetDestroyed ( const QByteArray & tagId)
signal

Referenced by ~QNearFieldTargetPrivateImpl().

+ Here is the caller graph for this function:

◆ targetLost [1/3]

void QNearFieldTargetPrivateImpl::targetLost ( QNearFieldTargetPrivate * target)
signal

◆ targetLost [2/3]

void QNearFieldTargetPrivateImpl::targetLost ( QNearFieldTargetPrivateImpl * target)
signal

Referenced by handleTargetLost(), invalidate(), QNearFieldManagerPrivateImpl::onCardInserted(), and onInvalidated().

+ Here is the caller graph for this function:

◆ targetLost [3/3]

void QNearFieldTargetPrivateImpl::targetLost ( QNearFieldTargetPrivateImpl * target)
signal

◆ type() [1/4]

QNearFieldTarget::Type QNearFieldTargetPrivateImpl::type ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

Definition at line 47 of file qnearfieldtarget_android.cpp.

References tagType.

◆ type() [2/4]

QNearFieldTarget::Type QNearFieldTargetPrivateImpl::type ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ type() [3/4]

QNearFieldTarget::Type QNearFieldTargetPrivateImpl::type ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ type() [4/4]

QNearFieldTarget::Type QNearFieldTargetPrivateImpl::type ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ uid() [1/4]

QByteArray QNearFieldTargetPrivateImpl::uid ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

Definition at line 42 of file qnearfieldtarget_android.cpp.

References targetUid.

◆ uid() [2/4]

QByteArray QNearFieldTargetPrivateImpl::uid ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ uid() [3/4]

QByteArray QNearFieldTargetPrivateImpl::uid ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ uid() [4/4]

QByteArray QNearFieldTargetPrivateImpl::uid ( ) const
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ updateTechList()

void QNearFieldTargetPrivateImpl::updateTechList ( )
protected

Definition at line 325 of file qnearfieldtarget_android.cpp.

References QtNfc::getTag(), handleTargetLost(), i, Q_ASSERT_X, tag, targetIntent, and techList.

Referenced by QNearFieldTargetPrivateImpl(), and setIntent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateType()

void QNearFieldTargetPrivateImpl::updateType ( )
protected

Definition at line 350 of file qnearfieldtarget_android.cpp.

References getTagType(), and tagType.

Referenced by QNearFieldTargetPrivateImpl(), and setIntent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ writeNdefMessages() [1/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::writeNdefMessages ( const QList< QNdefMessage > & messages)
overridevirtual

◆ writeNdefMessages() [2/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::writeNdefMessages ( const QList< QNdefMessage > & messages)
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ writeNdefMessages() [3/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::writeNdefMessages ( const QList< QNdefMessage > & messages)
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ writeNdefMessages() [4/4]

QNearFieldTarget::RequestId QNearFieldTargetPrivateImpl::writeNdefMessages ( const QList< QNdefMessage > & messages)
overridevirtual

Reimplemented from QNearFieldTargetPrivate.

◆ writeNdefMessagesRequest

void QNearFieldTargetPrivateImpl::writeNdefMessagesRequest ( const QNearFieldTarget::RequestId & request,
const QList< QNdefMessage > & messages )
signal

Referenced by QNearFieldManagerPrivateImpl::onCardInserted().

+ Here is the caller graph for this function:

Member Data Documentation

◆ selectedTech

QString QNearFieldTargetPrivateImpl::selectedTech
protected

◆ tagTech

◆ tagType

QNearFieldTarget::Type QNearFieldTargetPrivateImpl::tagType
protected

Definition at line 82 of file qnearfieldtarget_android_p.h.

Referenced by type(), and updateType().

◆ targetCheckTimer

QTimer* QNearFieldTargetPrivateImpl::targetCheckTimer
protected

◆ targetIntent

QJniObject QNearFieldTargetPrivateImpl::targetIntent
protected

◆ targetUid

QByteArray QNearFieldTargetPrivateImpl::targetUid
protected

Definition at line 77 of file qnearfieldtarget_android_p.h.

Referenced by ~QNearFieldTargetPrivateImpl(), and uid().

◆ techList

QStringList QNearFieldTargetPrivateImpl::techList
protected

The documentation for this class was generated from the following files: