Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
DocumentsContract Namespace Reference

DocumentsContract Api. More...

Namespaces

namespace  Document
 

Functions

QString documentId (const QJniObject &uri)
 
QString treeDocumentId (const QJniObject &uri)
 
QJniObject buildChildDocumentsUriUsingTree (const QJniObject &uri, const QString &parentDocumentId)
 
QJniObject buildDocumentUriUsingTree (const QJniObject &treeUri, const QString &documentId)
 
bool isDocumentUri (const QJniObject &uri)
 
bool isTreeUri (const QJniObject &uri)
 
QJniObject createDocument (const QJniObject &parentDocumentUri, const QString &mimeType, const QString &displayName)
 
bool deleteDocument (const QJniObject &documentUri)
 
QJniObject moveDocument (const QJniObject &sourceDocumentUri, const QJniObject &sourceParentDocumentUri, const QJniObject &targetParentDocumentUri)
 
QJniObject renameDocument (const QJniObject &documentUri, const QString &displayName)
 

Detailed Description

DocumentsContract Api.

Check https://developer.android.com/reference/android/provider/DocumentsContract for more information.

Note
This does not implement all facilities of the native API.

Function Documentation

◆ buildChildDocumentsUriUsingTree()

QJniObject DocumentsContract::buildChildDocumentsUriUsingTree ( const QJniObject uri,
const QString parentDocumentId 
)

Definition at line 481 of file androidcontentfileengine.cpp.

Referenced by DocumentFile::listFiles().

+ Here is the caller graph for this function:

◆ buildDocumentUriUsingTree()

QJniObject DocumentsContract::buildDocumentUriUsingTree ( const QJniObject treeUri,
const QString documentId 
)

Definition at line 491 of file androidcontentfileengine.cpp.

References documentId().

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

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

◆ createDocument()

QJniObject DocumentsContract::createDocument ( const QJniObject parentDocumentUri,
const QString mimeType,
const QString displayName 
)

Definition at line 517 of file androidcontentfileengine.cpp.

References contentResolverInstance(), displayName(), and mimeType.

Referenced by DocumentFile::createDirectory(), and DocumentFile::createFile().

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

◆ deleteDocument()

bool DocumentsContract::deleteDocument ( const QJniObject documentUri)

Definition at line 529 of file androidcontentfileengine.cpp.

References DocumentsContract::Document::COLUMN_FLAGS, contentResolverInstance(), DocumentsContract::Document::FLAG_SUPPORTS_DELETE, Cursor::queryColumn(), and QVariant::toInt().

Referenced by DocumentFile::remove().

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

◆ documentId()

QString DocumentsContract::documentId ( const QJniObject uri)

Definition at line 465 of file androidcontentfileengine.cpp.

Referenced by buildDocumentUriUsingTree(), DocumentFile::fromTreeUri(), DocumentFile::id(), and DocumentFile::listFiles().

+ Here is the caller graph for this function:

◆ isDocumentUri()

bool DocumentsContract::isDocumentUri ( const QJniObject uri)

Definition at line 500 of file androidcontentfileengine.cpp.

Referenced by DocumentFile::fromTreeUri(), DocumentFile::isVirtual(), and DocumentFile::parseFromAnyUri().

+ Here is the caller graph for this function:

◆ isTreeUri()

bool DocumentsContract::isTreeUri ( const QJniObject uri)

Definition at line 509 of file androidcontentfileengine.cpp.

◆ moveDocument()

QJniObject DocumentsContract::moveDocument ( const QJniObject sourceDocumentUri,
const QJniObject sourceParentDocumentUri,
const QJniObject targetParentDocumentUri 
)

Definition at line 542 of file androidcontentfileengine.cpp.

References DocumentsContract::Document::COLUMN_FLAGS, contentResolverInstance(), DocumentsContract::Document::FLAG_SUPPORTS_MOVE, Cursor::queryColumn(), and QVariant::toInt().

Referenced by DocumentFile::rename().

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

◆ renameDocument()

QJniObject DocumentsContract::renameDocument ( const QJniObject documentUri,
const QString displayName 
)

Definition at line 559 of file androidcontentfileengine.cpp.

References DocumentsContract::Document::COLUMN_FLAGS, contentResolverInstance(), displayName(), DocumentsContract::Document::FLAG_SUPPORTS_RENAME, Cursor::queryColumn(), and QVariant::toInt().

Referenced by DocumentFile::rename().

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

◆ treeDocumentId()

QString DocumentsContract::treeDocumentId ( const QJniObject uri)

Definition at line 473 of file androidcontentfileengine.cpp.

Referenced by DocumentFile::fromTreeUri().

+ Here is the caller graph for this function: