RhythmGame 1.4.3
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | List of all members
qml_components::FileQuery Class Reference

#include <FileQuery.h>

Inheritance diagram for qml_components::FileQuery:
Inheritance graph
[legend]
Collaboration diagram for qml_components::FileQuery:
Collaboration graph
[legend]

Public Member Functions

 FileQuery (resource_managers::SongAssetStore *assetStore=nullptr, QObject *parent=nullptr)
 
Q_INVOKABLE bool openFolder (const QString &path) const
 
Q_INVOKABLE QString localFileUrl (const QString &path) const
 
Q_INVOKABLE QString readTextFile (const QString &path, const QString &encoding="UTF-8") const
 
Q_INVOKABLE QList< QString > getSelectableFilesForDirectory (const QString &directory) const
 Get a list of all files in a directory EXCLUDING ini files.
 
Q_INVOKABLE QList< QString > getSelectableFilesForDirectory (const QString &directory, const QStringList &filters) const
 
Q_INVOKABLE QList< QString > getSelectableFontFilesForDirectory (const QString &directory, bool fixedPitchOnly, bool tabularDigitsOnly) const
 
Q_INVOKABLE QList< QString > getSystemFontFamilies (bool fixedPitchOnly, bool tabularDigitsOnly) const
 
Q_INVOKABLE QString getDefaultSystemFontFamily (bool fixedPitchOnly, bool tabularDigitsOnly) const
 

Protected Member Functions

virtual bool openUrl (const QUrl &url) const
 

Constructor & Destructor Documentation

◆ FileQuery()

qml_components::FileQuery::FileQuery ( resource_managers::SongAssetStore *  assetStore = nullptr,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ getDefaultSystemFontFamily()

auto qml_components::FileQuery::getDefaultSystemFontFamily ( bool  fixedPitchOnly,
bool  tabularDigitsOnly 
) const

◆ getSelectableFilesForDirectory() [1/2]

auto qml_components::FileQuery::getSelectableFilesForDirectory ( const QString &  directory) const

Get a list of all files in a directory EXCLUDING ini files.

Parameters
directoryThe directory to search.
Returns
A list of all files in the directory EXCLUDING ini files.

◆ getSelectableFilesForDirectory() [2/2]

auto qml_components::FileQuery::getSelectableFilesForDirectory ( const QString &  directory,
const QStringList &  filters 
) const

◆ getSelectableFontFilesForDirectory()

auto qml_components::FileQuery::getSelectableFontFilesForDirectory ( const QString &  directory,
bool  fixedPitchOnly,
bool  tabularDigitsOnly 
) const

◆ getSystemFontFamilies()

auto qml_components::FileQuery::getSystemFontFamilies ( bool  fixedPitchOnly,
bool  tabularDigitsOnly 
) const

◆ localFileUrl()

auto qml_components::FileQuery::localFileUrl ( const QString &  path) const

◆ openFolder()

auto qml_components::FileQuery::openFolder ( const QString &  path) const

◆ openUrl()

auto qml_components::FileQuery::openUrl ( const QUrl &  url) const
protectedvirtual

◆ readTextFile()

auto qml_components::FileQuery::readTextFile ( const QString &  path,
const QString &  encoding = "UTF-8" 
) const

Reads local or virtual text, honoring a BOM. The fallback is UTF-8; legacy chart readmes can request CP932 explicitly.


The documentation for this class was generated from the following files: