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

(3c50ad828861bee82e53469deab28b4e286cbeda)

#include "androidjnimain.h"
#include "qandroidassetsfileenginehandler.h"
#include <optional>
#include <QCoreApplication>
#include <QList>
#include <QtCore/QJniEnvironment>
#include <QtCore/QJniObject>
+ Include dependency graph for qandroidassetsfileenginehandler.cpp:

Go to the source code of this file.

Classes

struct  AssetItem
 
class  FolderIterator
 
class  AndroidAbstractFileEngineIterator
 
class  AndroidAbstractFileEngine
 

Typedefs

using AssetItemList = QList<AssetItem>
 

Functions

static QString cleanedAssetPath (QString file)
 
static QString prefixedPath (QString path)
 

Variables

static const auto assetsPrefix = "assets:"_L1
 
static const int prefixSize = 7
 

Typedef Documentation

◆ AssetItemList

Definition at line 60 of file qandroidassetsfileenginehandler.cpp.

Function Documentation

◆ cleanedAssetPath()

static QString cleanedAssetPath ( QString file)
inlinestatic

Definition at line 21 of file qandroidassetsfileenginehandler.cpp.

References assetsPrefix, file, prefixSize, and QFile::remove().

Referenced by AndroidAbstractFileEngineIterator::AndroidAbstractFileEngineIterator(), and AndroidAbstractFileEngine::setFileName().

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

◆ prefixedPath()

static QString prefixedPath ( QString path)
inlinestatic

Definition at line 33 of file qandroidassetsfileenginehandler.cpp.

References assetsPrefix.

Referenced by AndroidAbstractFileEngine::fileName().

+ Here is the caller graph for this function:

Variable Documentation

◆ assetsPrefix

const auto assetsPrefix = "assets:"_L1
static

◆ prefixSize

const int prefixSize = 7
static