4 #include <QCoreApplication>
23 const static inline QHash<Directories, QLatin1String> directories = {
24 {
Database, QLatin1String(
"/database")},
25 {Templates, QLatin1String(
"/templates")},
26 {Backup, QLatin1String(
"/backup")},
27 {Log, QLatin1String(
"/log")},
28 {Export, QLatin1String(
"/export")},
33 static const bool setup();
39 static const QDir
directory(Directories location);
41 static const QString path(Directories location);
43 static const QString appDir() {
return QCoreApplication::applicationDirPath();}
45 static const QString filePath(Directories location,
const QString &filename);
The DB class encapsulates the SQL database by providing fast access to hot database data.
Definition: database.h:57
static const QFileInfo databaseFileInfo()
returns a QFileInfo for the default database file.
Definition: paths.cpp:39
static const QDir directory(Directories location)
Returns the QDir for the standard directory referenced by the Directories enum 'loc'.
Definition: paths.cpp:23
A namespace to collect constants and enums used throughout the application.
Definition: paths.cpp:3