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 void deletePersistentWritablePath();
66 static QString getCachePath();
67 static QStringList getDefaultPluginsPath();
69 static void setTestMode();
70 static QString findExecutableInStandardLocations(QString filename);
72 static QStringList appendStringToAllElements(QStringList root, QString suffix);
74 static QString findConfigFolder(QString pathRelativeToConfigRoot, QString alternativeAbsolutePath =
"");
75 static QString findConfigFilePath(QString fileName, QString pathRelativeToConfigRoot, QString alternativeAbsolutePath =
"");
76 static QString findConfigPath(QString fileName, QString pathRelativeToConfigRoot, QString alternativeAbsolutePath =
"");
78 static void setWebsiteURL(QString websiteUrl);
79 static QString getWebsiteURL();
80 static QString getUploadsUrl();
81 static QString getWebsiteUserDocumentationURL();
83 static bool isRunFromBuildFolder();
86 static bool mTestMode;
87 static bool mRunFromBuildFolder;
88 static bool mBuildFolderChecked;
89 static QString mWebsiteUrl;
90 static QString readTestDataPathFromFile(QString filename);
91 static QString checkExecutableExist(QString path, QString filename);