5#include <QFileSystemModel>
6#include <QProcessEnvironment>
7#include <QRegularExpression>
22 static QString
getDir(
const QModelIndex &index,
bool forPass,
23 const QFileSystemModel &model,
25 static void copyDir(
const QString &src,
const QString &dest);
30 static void initialiseEnvironment();
31 static QProcessEnvironment _env;
32 static bool _envInitialised;
The QSortFilterProxyModel for handling filesystem searches.
Some static utilities to be used elsewhere.
static bool checkConfig()
Util::checkConfig do we have prequisite settings?
static QString findPasswordStore()
Util::findPasswordStore look for common .password-store folder location.
static QString getDir(const QModelIndex &index, bool forPass, const QFileSystemModel &model, const StoreModel &storeModel)
Util::getDir get selectd folder path.
static const QRegularExpression & protocolRegex()
static const QRegularExpression & endsWithGpg()
static QString normalizeFolderPath(QString path)
Util::normalizeFolderPath let's always end folders with a QDir::separator()
static QString findBinaryInPath(QString binary)
Util::findBinaryInPath search for executables.
static void copyDir(const QString &src, const QString &dest)
Util::copyDir.