|
openPilotLog
|
18 #ifndef ASTANDARDPATHS_H
19 #define ASTANDARDPATHS_H
21 #include <QStandardPaths>
39 static QMap<Directories, QDir> directories;
45 static bool scan_directories();
57 static const QDir &
directory(Directories location);
62 static const QString
asChildOfDir(Directories location,
const QString& filename);
71 #endif // ASTANDARDPATHS_H
static const QDir & directory(Directories location)
Returns the QDir for the standard directory referenced by the Directories enum 'loc'.
Definition: astandardpaths.cpp:41
static bool setup()
Creates and verifies a static map of the standard paths used in the app.
Definition: astandardpaths.cpp:23
static const QMap< Directories, QDir > & allDirectories()
returns the static map of all standard directories
Definition: astandardpaths.cpp:51
static const QString asChildOfDir(Directories location, const QString &filename)
Returns a string of the absolute path to directory location concatenated with filename.
Definition: astandardpaths.cpp:46
The AStandardAppPaths class encapsulates a static QMap holding the standard paths of the application.
Definition: astandardpaths.h:30