|
FOSSredder 0.5.0
|
Exposes directory listing and application-directory lookup to QML. More...
#include <FileSystemBrowser.h>


Public Member Functions | |
| FileSystemBrowser (QObject *parent=nullptr) | |
| Create the filesystem helper exposed to QML. | |
| Q_INVOKABLE QVariantList | listDir (const QString &path) const |
| List the contents of a directory in a QML-friendly payload shape. | |
| Q_INVOKABLE QString | appDir () const |
| Return the current application directory path. | |
| Q_INVOKABLE bool | openLocation (const QString &path) const |
| Opens the containing folder for a file or directory path. | |
Exposes directory listing and application-directory lookup to QML.
Definition at line 17 of file FileSystemBrowser.h.
|
explicit |
Create the filesystem helper exposed to QML.
Definition at line 18 of file FileSystemBrowser.cpp.
| QString ui::FileSystemBrowser::appDir | ( | ) | const |
Return the current application directory path.
Definition at line 37 of file FileSystemBrowser.cpp.
| QVariantList ui::FileSystemBrowser::listDir | ( | const QString & | path | ) | const |
List the contents of a directory in a QML-friendly payload shape.
| path | Directory path |
Definition at line 20 of file FileSystemBrowser.cpp.
| bool ui::FileSystemBrowser::openLocation | ( | const QString & | path | ) | const |
Opens the containing folder for a file or directory path.
| path | File or directory path. |
Definition at line 41 of file FileSystemBrowser.cpp.