summaryrefslogtreecommitdiffstats
path: root/util.h
blob: e3ec61bc69eb69fda3514e7fc5f934b481d5313e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef UTIL_H_
#define UTIL_H_

#include <QString>
#include <QProcessEnvironment>

class Util {
 public:
  static QString findBinaryInPath(QString binary);
  static QString findPasswordStore();
  static QString normalizeFolderPath(QString path);
  static bool checkConfig(QString passStore, QString passExecutable,
                          QString gpgExecutable);
  static void qSleep(int ms);

 private:
  static void initialiseEnvironment();
  static QProcessEnvironment _env;
  static bool _envInitialised;
};

#endif  // UTIL_H_