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

(7f4cdb9941ee662b85abe4347a5b818e5ae4077e)

#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")
 
 Q_DECLARE_JNI_CLASS (File, "java/io/File")
 
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 21 of file qstandardpaths_android.cpp.

Function Documentation

◆ getAbsolutePath()

static QString getAbsolutePath ( const QJniObject & file)
inlinestatic

Definition at line 29 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 136 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 115 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 85 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 43 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 61 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 157 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 174 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() [1/2]

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

◆ Q_DECLARE_JNI_CLASS() [2/2]

Q_DECLARE_JNI_CLASS ( File ,
"java/io/File"  )

◆ testDir()

static QString testDir ( )
static

Definition at line 24 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: