QtPass  1.2.0-pre
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 void qSleep (int ms)
 Util::qSleep because . . windows sleep. 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)
 
static int rand ()
 

Detailed Description

Some static utilities to be used elsewhere.

Definition at line 14 of file util.h.

Member Function Documentation

◆ checkConfig()

bool Util::checkConfig ( )
static

Util::checkConfig do we have prequisite settings?

Returns

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

◆ findBinaryInPath()

QString Util::findBinaryInPath ( QString  binary)
static

Util::findBinaryInPath search for executables.

Parameters
binary
Returns

Definition at line 78 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 44 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 149 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 67 of file util.cpp.

+ Here is the caller graph for this function:

◆ qSleep()

void Util::qSleep ( int  ms)
static

Util::qSleep because . . windows sleep.

Parameters
ms

Definition at line 132 of file util.cpp.

◆ rand()

int Util::rand ( )
static

Definition at line 181 of file util.cpp.

+ Here is the caller graph for this function:

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