X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;f=src%2Flibs%2FCommon%2Fapp.h;h=3bcde5aaa045c422acaeff53658b9529e40c6be7;hb=555fa9e86134fda6e631e9178e50b444b1079e4f;hp=c95464179d271d011f1edb7c103876cc77c66ac1;hpb=688e916955a6b848dbbae1f65ae85a73593ed680;p=evaf
diff --git a/src/libs/Common/app.h b/src/libs/Common/app.h
index c954641..3bcde5a 100644
--- a/src/libs/Common/app.h
+++ b/src/libs/Common/app.h
@@ -59,10 +59,24 @@ public:
virtual void restart();
- virtual void quit();
+ virtual void quit(bool err = false);
virtual bool isReady() const { return mReady; }
+ virtual QString const rootDir() const { return mRootDir; }
+
+ virtual QString const dataRootDir() const;
+
+ virtual QString const binDir() const { return mBinDir; }
+
+ virtual QString const etcDir() const;
+
+ virtual QString const logDir() const;
+
+ virtual QString const docDir() const;
+
+ virtual QString const qtPluginsDir() const;
+
private:
@@ -76,7 +90,28 @@ private:
QString mLanguage;
/// Name of the application's XML file
- QString mXmlFile;
+ mutable QString mXmlFile;
+
+ /// Name of the root directry
+ QString mRootDir;
+
+ /// Name of the data root directory
+ mutable QString mDataRootDir;
+
+ /// Name of the binary directory
+ QString mBinDir;
+
+ /// Name of the Qt plugins directory
+ mutable QString mQtPluginsDir;
+
+ /// Name of the configuration files directory
+ mutable QString mEtcDir;
+
+ /// Name of the log files directory
+ mutable QString mLogDir;
+
+ /// Name of the documentation directory
+ mutable QString mDocDir;
};