diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h new file mode 100644 index 00000000..e12445ae --- /dev/null +++ b/src/util.h @@ -0,0 +1,25 @@ +#ifndef UTIL_H_ +#define UTIL_H_ + +#include <QProcessEnvironment> +#include <QString> + +/*! + \class Util + \brief Some static utilities to be used elsewhere. + */ +class Util { +public: + static QString findBinaryInPath(QString binary); + static QString findPasswordStore(); + static QString normalizeFolderPath(QString path); + static bool checkConfig(); + static void qSleep(int ms); + +private: + static void initialiseEnvironment(); + static QProcessEnvironment _env; + static bool _envInitialised; +}; + +#endif // UTIL_H_ |