Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qjniobject.cpp File Reference
#include "qjniobject.h"
#include "qjnihelpers_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qhash.h>
#include <QtCore/qreadwritelock.h>
+ Include dependency graph for qjniobject.cpp:

Go to the source code of this file.

Classes

class  QJniObjectPrivate
 

Typedefs

typedef QHash< QString, jclass > JClassHash
 
typedef QHash< QString, jmethodID > JMethodIDHash
 
typedef QHash< QString, jfieldID > JFieldIDHash
 

Functions

static QLatin1StringView keyBase ()
 
static QString qt_convertJString (jstring string)
 
static jclass getCachedClass (const QByteArray &classBinEnc, bool *isCached=nullptr)
 

Typedef Documentation

◆ JClassHash

typedef QHash<QString, jclass> JClassHash

Definition at line 320 of file qjniobject.cpp.

◆ JFieldIDHash

typedef QHash<QString, jfieldID> JFieldIDHash

Definition at line 446 of file qjniobject.cpp.

◆ JMethodIDHash

typedef QHash<QString, jmethodID> JMethodIDHash

Definition at line 373 of file qjniobject.cpp.

Function Documentation

◆ getCachedClass()

static jclass getCachedClass ( const QByteArray classBinEnc,
bool *  isCached = nullptr 
)
static

Definition at line 324 of file qjniobject.cpp.

References QSet< T >::constEnd(), QSet< T >::constFind(), QString::fromLatin1(), and it.

Referenced by QtAndroidPrivate::findClass().

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

◆ keyBase()

static QLatin1StringView keyBase ( )
inlinestatic

Definition at line 306 of file qjniobject.cpp.

◆ qt_convertJString()

static QString qt_convertJString ( jstring  string)
static

Definition at line 311 of file qjniobject.cpp.

References Qt::Uninitialized.