32 #ifndef CXDATALOCATIONS_H_
33 #define CXDATALOCATIONS_H_
35 #include "cxResourceExport.h"
39 #include "boost/shared_ptr.hpp"
55 static QString getBundlePath();
56 static QString getRootConfigPath();
57 static QStringList getRootConfigPaths();
59 static QString getTestDataPath();
60 static QString getLargeTestDataPath();
61 static QString getExistingTestData(QString pathRelativeToTestDataRoot, QString filename=
"");
63 static QString getDocPath();
64 static QString getPersistentWritablePath();
65 static QString getCachePath();
66 static QStringList getDefaultPluginsPath();
68 static void setTestMode();
69 static QString findExecutableInStandardLocations(QString filename);
71 static QStringList appendStringToAllElements(QStringList root, QString suffix);
73 static QString findConfigFolder(QString pathRelativeToConfigRoot, QString alternativeAbsolutePath =
"");
74 static QString findConfigFilePath(QString fileName, QString pathRelativeToConfigRoot, QString alternativeAbsolutePath =
"");
75 static QString findConfigPath(QString fileName, QString pathRelativeToConfigRoot, QString alternativeAbsolutePath =
"");
76 static QString getNoPatientFolder();
78 static bool mTestMode;
79 static QString readTestDataPathFromFile(QString filename);
80 static QString checkExecutableExist(QString path, QString filename);