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
androidcontentfileengine.cpp File Reference

(fd295f4bf6002b499f1f238efa5a7c8d9c90be39)

#include "androidcontentfileengine.h"
#include <QtCore/qcoreapplication.h>
#include <QtCore/qjnienvironment.h>
#include <QtCore/qjniobject.h>
#include <QtCore/qurl.h>
#include <QtCore/qdatetime.h>
#include <QtCore/qmimedatabase.h>
+ Include dependency graph for androidcontentfileengine.cpp:

Go to the source code of this file.

Classes

class  Cursor
 

Namespaces

namespace  DocumentsContract
 DocumentsContract Api.
 
namespace  DocumentsContract::Document
 

Functions

 Q_DECLARE_JNI_CLASS (ContentResolverType, "android/content/ContentResolver")
 
 Q_DECLARE_JNI_CLASS (UriType, "android/net/Uri")
 
 Q_DECLARE_JNI_CLASS (Uri, "android/net/Uri")
 
 Q_DECLARE_JNI_CLASS (ParcelFileDescriptorType, "android/os/ParcelFileDescriptor")
 
 Q_DECLARE_JNI_CLASS (CursorType, "android/database/Cursor")
 
 Q_DECLARE_JNI_TYPE (StringArray, "[Ljava/lang/String;")
 
static QJniObjectcontentResolverInstance ()
 
 Q_DECLARE_JNI_CLASS (DocumentsContract, "android/provider/DocumentsContract")
 
QString DocumentsContract::documentId (const QJniObject &uri)
 
QString DocumentsContract::treeDocumentId (const QJniObject &uri)
 
QJniObject DocumentsContract::buildChildDocumentsUriUsingTree (const QJniObject &uri, const QString &parentDocumentId)
 
QJniObject DocumentsContract::buildDocumentUriUsingTree (const QJniObject &treeUri, const QString &documentId)
 
bool DocumentsContract::isDocumentUri (const QJniObject &uri)
 
bool DocumentsContract::isTreeUri (const QJniObject &uri)
 
QJniObject DocumentsContract::createDocument (const QJniObject &parentDocumentUri, const QString &mimeType, const QString &displayName)
 
bool DocumentsContract::deleteDocument (const QJniObject &documentUri)
 
QJniObject DocumentsContract::moveDocument (const QJniObject &sourceDocumentUri, const QJniObject &sourceParentDocumentUri, const QJniObject &targetParentDocumentUri)
 
QJniObject DocumentsContract::renameDocument (const QJniObject &documentUri, const QString &displayName)
 
QJniObject parseUri (const QString &uri)
 

Variables

const QLatin1String DocumentsContract::Document::COLUMN_DISPLAY_NAME ("_display_name")
 
const QLatin1String DocumentsContract::Document::COLUMN_DOCUMENT_ID ("document_id")
 
const QLatin1String DocumentsContract::Document::COLUMN_FLAGS ("flags")
 
const QLatin1String DocumentsContract::Document::COLUMN_LAST_MODIFIED ("last_modified")
 
const QLatin1String DocumentsContract::Document::COLUMN_MIME_TYPE ("mime_type")
 
const QLatin1String DocumentsContract::Document::COLUMN_SIZE ("_size")
 
constexpr int DocumentsContract::Document::FLAG_DIR_SUPPORTS_CREATE = 0x00000008
 
constexpr int DocumentsContract::Document::FLAG_SUPPORTS_DELETE = 0x00000004
 
constexpr int DocumentsContract::Document::FLAG_SUPPORTS_MOVE = 0x00000100
 
constexpr int DocumentsContract::Document::FLAG_SUPPORTS_RENAME = 0x00000040
 
constexpr int DocumentsContract::Document::FLAG_SUPPORTS_WRITE = 0x00000002
 
constexpr int DocumentsContract::Document::FLAG_VIRTUAL_DOCUMENT = 0x00000200
 
const QLatin1String DocumentsContract::Document::MIME_TYPE_DIR ("vnd.android.document/directory")
 

Function Documentation

◆ contentResolverInstance()

static QJniObject & contentResolverInstance ( )
static

Definition at line 26 of file androidcontentfileengine.cpp.

Referenced by DocumentsContract::createDocument(), DocumentsContract::deleteDocument(), DocumentsContract::moveDocument(), AndroidContentFileEngine::open(), and DocumentsContract::renameDocument().

+ Here is the caller graph for this function:

◆ parseUri()

QJniObject parseUri ( const QString & uri)

Definition at line 593 of file androidcontentfileengine.cpp.

References QString::replace(), and QUrl::toPercentEncoding().

Referenced by DocumentFile::parseFromAnyUri(), and DocumentFile::rename().

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

◆ Q_DECLARE_JNI_CLASS() [1/6]

Q_DECLARE_JNI_CLASS ( ContentResolverType ,
"android/content/ContentResolver"  )

◆ Q_DECLARE_JNI_CLASS() [2/6]

Q_DECLARE_JNI_CLASS ( CursorType ,
"android/database/Cursor"  )

◆ Q_DECLARE_JNI_CLASS() [3/6]

Q_DECLARE_JNI_CLASS ( DocumentsContract ,
"android/provider/DocumentsContract"  )

◆ Q_DECLARE_JNI_CLASS() [4/6]

Q_DECLARE_JNI_CLASS ( ParcelFileDescriptorType ,
"android/os/ParcelFileDescriptor"  )

◆ Q_DECLARE_JNI_CLASS() [5/6]

Q_DECLARE_JNI_CLASS ( Uri ,
"android/net/Uri"  )

◆ Q_DECLARE_JNI_CLASS() [6/6]

Q_DECLARE_JNI_CLASS ( UriType ,
"android/net/Uri"  )

◆ Q_DECLARE_JNI_TYPE()

Q_DECLARE_JNI_TYPE ( StringArray )