QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
QtPass Class Reference

#include <qtpass.h>

Inheritance diagram for QtPass:
Collaboration diagram for QtPass:

Public Slots

void clearClipboard ()
 MainWindow::clearClipboard remove clipboard contents.
void copyTextToClipboard (const QString &text)
 MainWindow::copyTextToClipboard copies text to your clipboard.
void showTextAsQRCode (const QString &text)
 displays the text as qrcode

Public Member Functions

 QtPass (MainWindow *mainWindow)
 Constructs a QtPass instance.
 ~QtPass ()
 QtPass::~QtPass destroy!
auto init () -> bool
 QtPass::init make sure we are ready to go as soon as possible.
void setClippedText (const QString &, const QString &p_output=QString())
 Sets the text to be stored in clipboard and handles clipboard operations.
void clearClippedText ()
 Clears the stored clipped text.
void setClipboardTimer ()
 Sets the clipboard clear timer based on autoclear settings.
auto isFreshStart () -> bool
void setFreshStart (const bool &fs)

Static Public Member Functions

static QDialog * createQRCodePopup (const QPixmap &image)
 QtPass::createQRCodePopup creates a popup dialog with the given QR code image. This is extracted for testability. The caller is responsible for showing and managing the popup lifecycle.

Detailed Description

Examples
/home/annejan/Projects/QtPass/src/mainwindow.cpp.

Definition at line 137 of file qtpass.h.

Constructor & Destructor Documentation

◆ QtPass()

QtPass::QtPass ( MainWindow * mainWindow)

Constructs a QtPass instance.

Parameters
mainWindowThe main window reference

Definition at line 36 of file qtpass.cpp.

Here is the call graph for this function:

◆ ~QtPass()

QtPass::~QtPass ( )

QtPass::~QtPass destroy!

Definition at line 59 of file qtpass.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ clearClipboard

void QtPass::clearClipboard ( )
slot

MainWindow::clearClipboard remove clipboard contents.

Definition at line 451 of file qtpass.cpp.

Here is the caller graph for this function:

◆ clearClippedText()

void QtPass::clearClippedText ( )

Clears the stored clipped text.

Definition at line 438 of file qtpass.cpp.

◆ copyTextToClipboard

void QtPass::copyTextToClipboard ( const QString & text)
slot

MainWindow::copyTextToClipboard copies text to your clipboard.

Parameters
text
Examples
/home/annejan/Projects/QtPass/src/mainwindow.cpp.

Definition at line 499 of file qtpass.cpp.

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

◆ createQRCodePopup()

QDialog * QtPass::createQRCodePopup ( const QPixmap & image)
static

QtPass::createQRCodePopup creates a popup dialog with the given QR code image. This is extracted for testability. The caller is responsible for showing and managing the popup lifecycle.

Parameters
imageThe QR code pixmap to display
Returns
The created popup dialog

Definition at line 549 of file qtpass.cpp.

Here is the caller graph for this function:

◆ init()

auto QtPass::init ( ) -> bool

QtPass::init make sure we are ready to go as soon as possible.

Definition at line 76 of file qtpass.cpp.

Here is the call graph for this function:

◆ isFreshStart()

auto QtPass::isFreshStart ( ) -> bool
inline

Definition at line 148 of file qtpass.h.

◆ setClipboardTimer()

void QtPass::setClipboardTimer ( )

Sets the clipboard clear timer based on autoclear settings.

Definition at line 443 of file qtpass.cpp.

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

◆ setClippedText()

void QtPass::setClippedText ( const QString & password,
const QString & p_output = QString() )

Sets the text to be stored in clipboard and handles clipboard operations.

Parameters
passwordThe password or text to store
p_outputAdditional output text

Definition at line 426 of file qtpass.cpp.

Here is the call graph for this function:

◆ setFreshStart()

void QtPass::setFreshStart ( const bool & fs)
inline

Definition at line 149 of file qtpass.h.

◆ showTextAsQRCode

void QtPass::showTextAsQRCode ( const QString & text)
slot

displays the text as qrcode

Parameters
text
Examples
/home/annejan/Projects/QtPass/src/mainwindow.cpp.

Definition at line 521 of file qtpass.cpp.

Here is the call graph for this function:

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