Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
Cursor Class Reference
+ Collaboration diagram for Cursor:

Public Types

enum  Type {
  FIELD_TYPE_NULL = 0x00000000 , FIELD_TYPE_INTEGER = 0x00000001 , FIELD_TYPE_FLOAT = 0x00000002 , FIELD_TYPE_STRING = 0x00000003 ,
  FIELD_TYPE_BLOB = 0x00000004
}
 

Public Member Functions

 Cursor (const QJniObject &object)
 
 ~Cursor ()
 
QVariant data (int columnIndex) const
 
bool isNull (int columnIndex) const
 
int columnCount () const
 
int rowCount () const
 
int row () const
 
bool isFirst () const
 
bool isLast () const
 
bool moveToFirst ()
 
bool moveToLast ()
 
bool moveToNext ()
 

Static Public Member Functions

static std::unique_ptr< CursorqueryUri (const QJniObject &uri, const QStringList &projection={}, const QString &selection={}, const QStringList &selectionArgs={}, const QString &sortOrder={})
 
static QVariant queryColumn (const QJniObject &uri, const QString &column)
 

Detailed Description

Definition at line 323 of file androidcontentfileengine.cpp.

Member Enumeration Documentation

◆ Type

Enumerator
FIELD_TYPE_NULL 
FIELD_TYPE_INTEGER 
FIELD_TYPE_FLOAT 
FIELD_TYPE_STRING 
FIELD_TYPE_BLOB 

Definition at line 335 of file androidcontentfileengine.cpp.

Constructor & Destructor Documentation

◆ Cursor()

Cursor::Cursor ( const QJniObject object)
inlineexplicit

Definition at line 326 of file androidcontentfileengine.cpp.

◆ ~Cursor()

Cursor::~Cursor ( )
inline

Definition at line 329 of file androidcontentfileengine.cpp.

Member Function Documentation

◆ columnCount()

int Cursor::columnCount ( ) const
inline

Definition at line 407 of file androidcontentfileengine.cpp.

◆ data()

QVariant Cursor::data ( int  columnIndex) const
inline

Definition at line 343 of file androidcontentfileengine.cpp.

References FIELD_TYPE_BLOB, FIELD_TYPE_FLOAT, FIELD_TYPE_INTEGER, FIELD_TYPE_NULL, FIELD_TYPE_STRING, and QVariant::fromValue().

+ Here is the call graph for this function:

◆ isFirst()

bool Cursor::isFirst ( ) const
inline

Definition at line 410 of file androidcontentfileengine.cpp.

◆ isLast()

bool Cursor::isLast ( ) const
inline

Definition at line 411 of file androidcontentfileengine.cpp.

◆ isNull()

bool Cursor::isNull ( int  columnIndex) const
inline

Definition at line 402 of file androidcontentfileengine.cpp.

◆ moveToFirst()

bool Cursor::moveToFirst ( )
inline

Definition at line 412 of file androidcontentfileengine.cpp.

◆ moveToLast()

bool Cursor::moveToLast ( )
inline

Definition at line 413 of file androidcontentfileengine.cpp.

◆ moveToNext()

bool Cursor::moveToNext ( )
inline

Definition at line 414 of file androidcontentfileengine.cpp.

◆ queryColumn()

static QVariant Cursor::queryColumn ( const QJniObject uri,
const QString column 
)
inlinestatic

Definition at line 390 of file androidcontentfileengine.cpp.

References queryUri().

Referenced by DocumentFile::canWrite(), DocumentsContract::deleteDocument(), DocumentFile::isVirtual(), DocumentFile::lastModified(), DocumentFile::length(), DocumentFile::mimeType(), DocumentsContract::moveDocument(), DocumentFile::name(), and DocumentsContract::renameDocument().

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

◆ queryUri()

static std::unique_ptr< Cursor > Cursor::queryUri ( const QJniObject uri,
const QStringList projection = {},
const QString selection = {},
const QStringList selectionArgs = {},
const QString sortOrder = {} 
)
inlinestatic

Definition at line 370 of file androidcontentfileengine.cpp.

Referenced by DocumentFile::listFiles(), and queryColumn().

+ Here is the caller graph for this function:

◆ row()

int Cursor::row ( ) const
inline

Definition at line 409 of file androidcontentfileengine.cpp.

◆ rowCount()

int Cursor::rowCount ( ) const
inline

Definition at line 408 of file androidcontentfileengine.cpp.


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