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
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 480 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 490 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 516 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 528 of file androidcontentfileengine.cpp.

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

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 464 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 499 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 508 of file androidcontentfileengine.cpp.

Referenced by DocumentFile::parseFromAnyUri().

+ Here is the caller graph for this function:

◆ moveDocument()

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

Definition at line 541 of file androidcontentfileengine.cpp.

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

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 558 of file androidcontentfileengine.cpp.

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

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 472 of file androidcontentfileengine.cpp.

Referenced by DocumentFile::fromTreeUri().

+ Here is the caller graph for this function: