Open-Typer
Open source typewriting tutor program
|
The FileUtils class contains functions for file or directory paths. More...
#include "framework/global/internal/FileUtils.h"
Public Member Functions | |
Q_INVOKABLE QString | configLocation (void) override |
Q_INVOKABLE QString | mainSettingsLocation (void) override |
Q_INVOKABLE QString | fileName (QString path) override |
Static Public Member Functions | |
static std::shared_ptr< FileUtils > | instance () |
Static Private Attributes | |
static std::shared_ptr< FileUtils > | m_instance = std::make_shared<FileUtils>() |
The FileUtils class contains functions for file or directory paths.
|
overridevirtual |
Returns the path to the program configuration directory.
For example: /home/user/.config/Open-Typer
Implements IFileUtils.
|
overridevirtual |
Uses QFileInfo to get the file name of a file.
Implements IFileUtils.
|
static |
Returns the static instance of FileUtils.
|
overridevirtual |
Returns the path to the main configuration file, currently config.ini
in the program configuration directory.
Implements IFileUtils.