QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCFileDialogController Class Reference

#include <QGCFileDialogController.h>

+ Inheritance diagram for QGCFileDialogController:
+ Collaboration diagram for QGCFileDialogController:

Public Member Functions

 QGCFileDialogController (QObject *parent=nullptr)
 
 ~QGCFileDialogController ()
 

Static Public Member Functions

static QStringList getFiles (const QString &directoryPath, const QStringList &nameFilters)
 Return all file in the specified path which match the specified extension.
 
static QString fullyQualifiedFilename (const QString &directoryPath, const QString &filename, const QStringList &nameFilters=QStringList())
 
static bool fileExists (const QString &filename)
 Check for file existence of specified fully qualified file name.
 
static void deleteFile (const QString &filename)
 Deletes the file specified by the fully qualified file name.
 
static QString urlToLocalFile (QUrl url)
 
static QString fullFolderPathToShortMobilePath (const QString &fullFolderPath)
 

Detailed Description

Definition at line 10 of file QGCFileDialogController.h.

Constructor & Destructor Documentation

◆ QGCFileDialogController()

QGCFileDialogController::QGCFileDialogController ( QObject *  parent = nullptr)
explicit

Definition at line 10 of file QGCFileDialogController.cc.

◆ ~QGCFileDialogController()

QGCFileDialogController::~QGCFileDialogController ( )

Definition at line 16 of file QGCFileDialogController.cc.

Member Function Documentation

◆ deleteFile()

void QGCFileDialogController::deleteFile ( const QString &  filename)
static

Deletes the file specified by the fully qualified file name.

Definition at line 78 of file QGCFileDialogController.cc.

◆ fileExists()

bool QGCFileDialogController::fileExists ( const QString &  filename)
static

Check for file existence of specified fully qualified file name.

Definition at line 37 of file QGCFileDialogController.cc.

◆ fullFolderPathToShortMobilePath()

QString QGCFileDialogController::fullFolderPathToShortMobilePath ( const QString &  fullFolderPath)
static

Important: Should only be used in mobile builds where default save location cannot be changed. Returns the standard QGC location portion of a fully qualified folder path. Example: "/Users/Don/Document/QGroundControl/Missions" returns "QGroundControl/Missions"

Definition at line 83 of file QGCFileDialogController.cc.

References AppSettings::savePath().

◆ 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 42 of file QGCFileDialogController.cc.

◆ getFiles()

QStringList QGCFileDialogController::getFiles ( const QString &  directoryPath,
const QStringList &  nameFilters 
)
static

Return all file in the specified path which match the specified extension.

Definition at line 21 of file QGCFileDialogController.cc.

◆ urlToLocalFile()

QString QGCFileDialogController::urlToLocalFile ( QUrl  url)
static

Definition at line 97 of file QGCFileDialogController.cc.


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