Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qstandardpaths_android.cpp File Reference
#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_TYPE (File, "Ljava/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()

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

◆ Q_DECLARE_JNI_TYPE()

Q_DECLARE_JNI_TYPE ( File  ,
"Ljava/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: