QtPass 1.5.1
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Util Class Reference

Some static utilities to be used elsewhere. More...

#include <util.h>

Static Public Member Functions

static auto findBinaryInPath (QString binary) -> QString
 Util::findBinaryInPath search for executables.
 
static auto findPasswordStore () -> QString
 Util::findPasswordStore look for common .password-store folder location.
 
static auto normalizeFolderPath (QString path) -> QString
 Util::normalizeFolderPath let's always end folders with a QDir::separator()
 
static auto checkConfig () -> bool
 Util::checkConfig do we have prequisite settings?
 
static auto getDir (const QModelIndex &index, bool forPass, const QFileSystemModel &model, const StoreModel &storeModel) -> QString
 Util::getDir get selectd folder path.
 
static void copyDir (const QString &src, const QString &dest)
 Util::copyDir.
 
static auto endsWithGpg () -> const QRegularExpression &
 
static auto protocolRegex () -> const QRegularExpression &
 
static auto newLinesRegex () -> const QRegularExpression &
 

Detailed Description

Some static utilities to be used elsewhere.

Definition at line 20 of file util.h.

Member Function Documentation

◆ checkConfig()

auto Util::checkConfig ( ) -> bool
static

Util::checkConfig do we have prequisite settings?

Returns

Definition at line 146 of file util.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ copyDir()

void Util::copyDir ( const QString &  src,
const QString &  dest 
)
static

Util::copyDir.

Parameters
src
dest

Definition at line 187 of file util.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ endsWithGpg()

auto Util::endsWithGpg ( ) -> const QRegularExpression &
static

Definition at line 203 of file util.cpp.

+ Here is the caller graph for this function:

◆ findBinaryInPath()

auto Util::findBinaryInPath ( QString  binary) -> QString
static

Util::findBinaryInPath search for executables.

Parameters
binary
Returns

Definition at line 93 of file util.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findPasswordStore()

auto Util::findPasswordStore ( ) -> QString
static

Util::findPasswordStore look for common .password-store folder location.

Returns

Definition at line 58 of file util.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDir()

auto Util::getDir ( const QModelIndex &  index,
bool  forPass,
const QFileSystemModel &  model,
const StoreModel storeModel 
) -> QString
static

Util::getDir get selectd folder path.

Parameters
index
forPassshort or full path
modelthe filesystem model to operate on
storeModelour storemodel to operate on
Returns
path

Definition at line 164 of file util.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ newLinesRegex()

auto Util::newLinesRegex ( ) -> const QRegularExpression &
static

Definition at line 214 of file util.cpp.

+ Here is the caller graph for this function:

◆ normalizeFolderPath()

auto Util::normalizeFolderPath ( QString  path) -> QString
static

Util::normalizeFolderPath let's always end folders with a QDir::separator()

Parameters
path
Returns

Definition at line 81 of file util.cpp.

+ Here is the caller graph for this function:

◆ protocolRegex()

auto Util::protocolRegex ( ) -> const QRegularExpression &
static

Definition at line 208 of file util.cpp.


The documentation for this class was generated from the following files: