/**************************************************************************** * * (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ****************************************************************************/
#ifndef QGCMobileFileDialogController_H#define QGCMobileFileDialogController_H#include <QObject>classQGCMobileFileDialogController:publicQObject{Q_OBJECTpublic:/// Return all file in Documents location which match the specified extensionQ_INVOKABLEQStringListgetFiles(constQString&fileExtension);/// Return the full path for specified file in the Documents location/// @param filename File name, not fully qualified, may not have extension/// @param fileExtension Expected file extension, added if neededQ_INVOKABLEQStringfullPath(constQString&filename,constQString&fileExtension);/// Check for file existance/// @param filename File name, not fully qualified, may not have extension/// @param fileExtension Expected file extension, added if needed/// @return true: File exists at Documents locationQ_INVOKABLEboolfileExists(constQString&filename,constQString&fileExtension);};#endif