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

(457a1c973d68e705f9cf72ac72b19fc26cdb2917)

#include "qstandardpaths.h"
#include <QtCore/qjniobject.h>
#include <QtCore/qmap.h>
#include <QtCore/qcoreapplication.h>
#include <QDir>
+ Include dependency graph for qstandardpaths_android.cpp:

Go to the source code of this file.

Typedefs

typedef QMap< QString, QStringAndroidDirCache
 

Functions

QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS (Environment, "android/os/Environment")
 
static QString testDir ()
 
static QString getAbsolutePath (const QJniObject &file)
 
static QString getExternalStorageDirectory ()
 
static QString getExternalStoragePublicDirectory (const char *directoryField)
 
static QString getExternalFilesDir (const char *directoryField=nullptr)
 
static QString getExternalCacheDir ()
 
static QString getCacheDir ()
 
static QString getFilesDir ()
 
static QString getSdkBasedExternalDir (const char *directoryField=nullptr)
 

Typedef Documentation

◆ AndroidDirCache

Definition at line 20 of file qstandardpaths_android.cpp.

Function Documentation

◆ getAbsolutePath()

static QString getAbsolutePath ( const QJniObject & file)
inlinestatic

Definition at line 28 of file qstandardpaths_android.cpp.

References file.

Referenced by getCacheDir(), getExternalCacheDir(), getExternalFilesDir(), getExternalStorageDirectory(), getExternalStoragePublicDirectory(), and getFilesDir().

+ Here is the caller graph for this function:

◆ getCacheDir()

static QString getCacheDir ( )
static

Definition at line 135 of file qstandardpaths_android.cpp.

References file, getAbsolutePath(), and QStringLiteral.

Referenced by QStandardPaths::writableLocation().

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

◆ getExternalCacheDir()

static QString getExternalCacheDir ( )
static

Definition at line 114 of file qstandardpaths_android.cpp.

References file, getAbsolutePath(), and QStringLiteral.

Referenced by QStandardPaths::standardLocations().

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

◆ getExternalFilesDir()

static QString getExternalFilesDir ( const char * directoryField = nullptr)
static

Definition at line 84 of file qstandardpaths_android.cpp.

References file, and getAbsolutePath().

Referenced by getSdkBasedExternalDir(), QStandardPaths::standardLocations(), and QStandardPaths::writableLocation().

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

◆ getExternalStorageDirectory()

static QString getExternalStorageDirectory ( )
static

Definition at line 42 of file qstandardpaths_android.cpp.

References file, getAbsolutePath(), and QStringLiteral.

Referenced by QStandardPaths::writableLocation().

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

◆ getExternalStoragePublicDirectory()

static QString getExternalStoragePublicDirectory ( const char * directoryField)
static

Definition at line 60 of file qstandardpaths_android.cpp.

References file, and getAbsolutePath().

Referenced by getSdkBasedExternalDir(), and QStandardPaths::standardLocations().

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

◆ getFilesDir()

static QString getFilesDir ( )
static

Definition at line 156 of file qstandardpaths_android.cpp.

References file, getAbsolutePath(), and QStringLiteral.

Referenced by QStandardPaths::writableLocation().

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

◆ getSdkBasedExternalDir()

static QString getSdkBasedExternalDir ( const char * directoryField = nullptr)
static

Definition at line 173 of file qstandardpaths_android.cpp.

References getExternalFilesDir(), and getExternalStoragePublicDirectory().

Referenced by QStandardPaths::writableLocation().

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

◆ Q_DECLARE_JNI_CLASS()

QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS ( Environment ,
"android/os/Environment"  )

◆ testDir()

static QString testDir ( )
static

Definition at line 23 of file qstandardpaths_android.cpp.

References QStandardPaths::isTestModeEnabled().

Referenced by QStandardPaths::writableLocation().

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