3#include <QtCore/QObject>
5#include <QtQmlIntegration/QtQmlIntegration>
18 Q_INVOKABLE
static QStringList
getFiles(
const QString &directoryPath,
const QStringList &nameFilters);
22 Q_INVOKABLE
static QString
fullyQualifiedFilename(
const QString &directoryPath,
const QString &filename,
const QStringList &nameFilters = QStringList());
25 Q_INVOKABLE
static bool fileExists(
const QString &filename);
28 Q_INVOKABLE
static void deleteFile(
const QString &filename);
52 void _handleImportResult(
const QString& filePath);
void fileImported(const QString &filePath)
static Q_INVOKABLE bool fileExists(const QString &filename)
Check for file existence of specified fully qualified file name.
static Q_INVOKABLE QString fullFolderPathToShortMobilePath(const QString &fullFolderPath)
static Q_INVOKABLE QString urlToLocalFile(QUrl url)
static Q_INVOKABLE void deleteFile(const QString &filename)
Deletes the file specified by the fully qualified file name.
~QGCFileDialogController()
static Q_INVOKABLE QStringList getFiles(const QString &directoryPath, const QStringList &nameFilters)
Return all file in the specified path which match the specified extension.
Q_INVOKABLE void importFromNativePicker()
static Q_INVOKABLE QString fullyQualifiedFilename(const QString &directoryPath, const QString &filename, const QStringList &nameFilters=QStringList())
void importFailed(const QString &errorMessage)