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

Detailed Description

Some static utilities to be used elsewhere.

Definition at line 16 of file util.h.

Member Function Documentation

◆ checkConfig()

bool Util::checkConfig ( )
static

Util::checkConfig do we have prequisite settings?

Returns

Definition at line 142 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 182 of file util.cpp.

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

◆ endsWithGpg()

const QRegularExpression & Util::endsWithGpg ( )
static

Definition at line 198 of file util.cpp.

+ Here is the caller graph for this function:

◆ findBinaryInPath()

QString Util::findBinaryInPath ( QString  binary)
static

Util::findBinaryInPath search for executables.

Parameters
binary
Returns

Definition at line 90 of file util.cpp.

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

◆ findPasswordStore()

QString Util::findPasswordStore ( )
static

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

Returns

Definition at line 56 of file util.cpp.

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

◆ getDir()

QString Util::getDir ( const QModelIndex &  index,
bool  forPass,
const QFileSystemModel &  model,
const StoreModel storeModel 
)
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 160 of file util.cpp.

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

◆ normalizeFolderPath()

QString Util::normalizeFolderPath ( QString  path)
static

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

Parameters
path
Returns

Definition at line 79 of file util.cpp.

+ Here is the caller graph for this function:

◆ protocolRegex()

const QRegularExpression & Util::protocolRegex ( )
static

Definition at line 203 of file util.cpp.


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