X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fcore%2FSettings.hxx;fp=src%2Fcore%2FSettings.hxx;h=6e40c4dafdbf9e0f7ebf535bbfc9877d2e1aca15;hp=0000000000000000000000000000000000000000;hb=2dc8e8cdaf2e8f767dfd3c0e9e3d107d1f3f4108;hpb=9d118e5302db0c9aefe6b0e662795aef6f7b71a1 diff --git a/src/core/Settings.hxx b/src/core/Settings.hxx new file mode 100644 index 0000000..6e40c4d --- /dev/null +++ b/src/core/Settings.hxx @@ -0,0 +1,21 @@ +#ifndef INCLUDE__Settings_hxx +#define INCLUDE__Settings_hxx + +#include "qt.hxx" +#include "log4cxx/logger.h" + +class Settings : public QSettings { +public: + QDir* getRuntimeDirectory() const {return runtimeDirectory;} + static Settings* get() {return instance;} +private: + Settings(); + + static Settings* instance; + log4cxx::LoggerPtr logger; + QDir* runtimeDirectory; + + friend int main(int argc, char** argv); +}; + +#endif /* INCLUDE__Settings_hxx */