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