18 #ifndef ASTANDARDPATHS_H 
   19 #define ASTANDARDPATHS_H 
   21 #include <QStandardPaths> 
   40     static QHash<Directories, QDir> directories;
 
   46     static bool scan_directories();
 
   58     static const QDir &
directory(Directories location);
 
   63     static const QString 
asChildOfDir(Directories location, 
const QString& filename);
 
The AStandardAppPaths class encapsulates a static QHash holding the standard paths of the application...
Definition: astandardpaths.h:30
static const QDir & directory(Directories location)
Returns the QDir for the standard directory referenced by the Directories enum 'loc'.
Definition: astandardpaths.cpp:43
static bool setup()
Creates and verifies a static map of the standard paths used in the app.
Definition: astandardpaths.cpp:23
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:48
static const QHash< Directories, QDir > & allDirectories()
returns the static map of all standard directories
Definition: astandardpaths.cpp:53