#include <QGCFileDialogController.h>
|
| static Q_INVOKABLE QStringList | getFiles (const QString &directoryPath, const QStringList &nameFilters) |
| | Return all file in the specified path which match the specified extension.
|
| |
| static Q_INVOKABLE QString | fullyQualifiedFilename (const QString &directoryPath, const QString &filename, const QStringList &nameFilters=QStringList()) |
| |
| static Q_INVOKABLE bool | fileExists (const QString &filename) |
| | Check for file existence of specified fully qualified file name.
|
| |
| static Q_INVOKABLE void | deleteFile (const QString &filename) |
| | Deletes the file specified by the fully qualified file name.
|
| |
| static Q_INVOKABLE QString | urlToLocalFile (QUrl url) |
| |
| static Q_INVOKABLE QString | fullFolderPathToShortMobilePath (const QString &fullFolderPath) |
| |
Definition at line 7 of file QGCFileDialogController.h.
◆ QGCFileDialogController()
| QGCFileDialogController::QGCFileDialogController |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~QGCFileDialogController()
| QGCFileDialogController::~QGCFileDialogController |
( |
| ) |
|
◆ deleteFile()
| void QGCFileDialogController::deleteFile |
( |
const QString & |
filename | ) |
|
|
static |
◆ fileExists()
| bool QGCFileDialogController::fileExists |
( |
const QString & |
filename | ) |
|
|
static |
◆ fileImported
| void QGCFileDialogController::fileImported |
( |
const QString & |
filePath | ) |
|
|
signal |
Emitted when the selected file has been successfully imported to the Missions directory.
- Parameters
-
| filePath | Fully-qualified path of the imported file in the Missions directory. |
◆ fullFolderPathToShortMobilePath()
| QString QGCFileDialogController::fullFolderPathToShortMobilePath |
( |
const QString & |
fullFolderPath | ) |
|
|
static |
◆ fullyQualifiedFilename()
| QString QGCFileDialogController::fullyQualifiedFilename |
( |
const QString & |
directoryPath, |
|
|
const QString & |
filename, |
|
|
const QStringList & |
nameFilters = QStringList() |
|
) |
| |
|
static |
Returns the fully qualified file name from the specified parts. If filename has no file extension the first file extension is nameFilters is added to the filename.
Definition at line 47 of file QGCFileDialogController.cc.
◆ getFiles()
| QStringList QGCFileDialogController::getFiles |
( |
const QString & |
directoryPath, |
|
|
const QStringList & |
nameFilters |
|
) |
| |
|
static |
◆ importFailed
| void QGCFileDialogController::importFailed |
( |
const QString & |
errorMessage | ) |
|
|
signal |
Emitted when the import operation fails.
- Parameters
-
| errorMessage | Human-readable description of the error. |
Referenced by importFromNativePicker().
◆ importFromNativePicker()
| void QGCFileDialogController::importFromNativePicker |
( |
| ) |
|
◆ urlToLocalFile()
| QString QGCFileDialogController::urlToLocalFile |
( |
QUrl |
url | ) |
|
|
static |
The documentation for this class was generated from the following files: