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

Orchestrates clipboard management, pass signal handling, and application-level operations for the QtPass application. More...

#include <qtpass.h>

Inheritance diagram for QtPass:
Collaboration diagram for QtPass:

Public Slots

void clearClipboard ()
 Clear the system clipboard contents immediately.
void copyTextToClipboard (const QString &text)
 Copy text into the system clipboard.
void showTextAsQRCode (const QString &text)
 Request display of text as a QR code in the UI.

Public Member Functions

 QtPass (MainWindow *mainWindow)
 Construct a QtPass instance associated with the given main window.
auto init () -> bool
 Initialize internal state and signal connections.
void setClippedText (const QString &text, const QString &p_output=QString())
 Update the tracked clipped text value.
void clearClippedText ()
 Remove any stored clipped text value.
void setClipboardTimer ()
 Configure and start the clipboard-clear timer.
auto isFreshStart () -> bool
 Return whether this instance is in a fresh-start state.
void setFreshStart (const bool &fs)
 Set the fresh-start state.

Static Public Member Functions

static QDialog * createQRCodePopup (const QPixmap &image)
 Create a modal dialog configured to display the given QR code.

Detailed Description

Orchestrates clipboard management, pass signal handling, and application-level operations for the QtPass application.

Definition at line 38 of file qtpass.h.

Constructor & Destructor Documentation

◆ QtPass()

QtPass::QtPass ( MainWindow * mainWindow)

Construct a QtPass instance associated with the given main window.

Parameters
mainWindowPointer to the application's MainWindow.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ copyTextToClipboard

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

Copy text into the system clipboard.

Parameters
textText to copy.

◆ createQRCodePopup()

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

Create a modal dialog configured to display the given QR code.

Parameters
imagePixmap containing the rendered QR code.
Returns
Pointer to a QDialog showing the image; caller takes ownership.

◆ init()

auto QtPass::init ( ) -> bool

Initialize internal state and signal connections.

Returns
true if initialization succeeded.

◆ isFreshStart()

auto QtPass::isFreshStart ( ) -> bool
inline

Return whether this instance is in a fresh-start state.

Returns
true if in fresh-start state.

Definition at line 77 of file qtpass.h.

◆ setClippedText()

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

Update the tracked clipped text value.

Parameters
textPrimary text to store.
p_outputOptional additional output used when determining the final clipped text value.

◆ setFreshStart()

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

Set the fresh-start state.

Parameters
fsNew fresh-start state value.

Definition at line 83 of file qtpass.h.

◆ showTextAsQRCode

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

Request display of text as a QR code in the UI.

Parameters
textText to convert into a QR code.

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