QtPass  1.2.3
Multi-platform GUI for pass, the standard unix password manager.
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. More...
 
static QString findPasswordStore ()
 Util::findPasswordStore look for common .password-store folder location. More...
 
static QString normalizeFolderPath (QString path)
 Util::normalizeFolderPath let's always end folders with a QDir::separator() More...
 
static bool checkConfig ()
 Util::checkConfig do we have prequisite settings? More...
 
static QString getDir (const QModelIndex &index, bool forPass, const QFileSystemModel &model, const StoreModel &storeModel)
 Util::getDir get selectd folder path. More...
 
static void copyDir (const QString src, const QString dest)
 

Detailed Description

Some static utilities to be used elsewhere.

Definition at line 15 of file util.h.

Member Function Documentation

◆ checkConfig()

bool Util::checkConfig ( )
static

Util::checkConfig do we have prequisite settings?

Returns

Definition at line 117 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

Definition at line 148 of file util.cpp.

◆ findBinaryInPath()

QString Util::findBinaryInPath ( QString  binary)
static

Util::findBinaryInPath search for executables.

Parameters
binary
Returns

Definition at line 75 of file util.cpp.

+ 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 41 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 132 of file util.cpp.

+ Here is the call 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 64 of file util.cpp.

+ Here is the caller graph for this function:

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