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 =
"");
77 static void setWebsiteURL(QString websiteUrl);
78 static QString getWebsiteURL();
79 static QString getUploadsUrl();
80 static QString getWebsiteUserDocumentationURL();
82 static bool isRunFromBuildFolder();
85 static bool mTestMode;
86 static bool mRunFromBuildFolder;
87 static bool mBuildFolderChecked;
88 static QString mWebsiteUrl;
89 static QString readTestDataPathFromFile(QString filename);
90 static QString checkExecutableExist(QString path, QString filename);