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

#include <SongDirectoryFilePathFetcher.h>

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

Public Member Functions

 SongDirectoryFilePathFetcher (db::SqliteCppDb *db, resource_managers::SongAssetStore *assetStore, QObject *parent=nullptr)
 
Q_INVOKABLE QVariantHash getPreviewFilePaths (QList< QString > directories) const
 Fetches the preview file paths for the given directories.
 
Q_INVOKABLE QVariantHash getReadmeFilePaths (QList< QString > directories) const
 Fetches the readme file paths for the given directories.
 

Constructor & Destructor Documentation

◆ SongDirectoryFilePathFetcher()

qml_components::SongDirectoryFilePathFetcher::SongDirectoryFilePathFetcher ( db::SqliteCppDb *  db,
resource_managers::SongAssetStore *  assetStore,
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ getPreviewFilePaths()

auto qml_components::SongDirectoryFilePathFetcher::getPreviewFilePaths ( QList< QString >  directories) const

Fetches the preview file paths for the given directories.

Parameters
directoriesA list of directories to fetch preview file paths for.
Returns
A hash map where the key is the directory and the value is the preview file path. The result will not contain entries for directories that do not have a preview file path.

◆ getReadmeFilePaths()

auto qml_components::SongDirectoryFilePathFetcher::getReadmeFilePaths ( QList< QString >  directories) const

Fetches the readme file paths for the given directories.

Parameters
directoriesA list of directories to fetch readme file paths for.
Returns
A hash map where the key is the directory and the value is the readme file path. The result will not contain entries for directories that do not have a readme file path.

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