Orchestrates clipboard management, pass signal handling, and application-level operations for the QtPass application.
More...
#include <qtpass.h>
|
|
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.
|
|
| | 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 QDialog * | createQRCodePopup (const QPixmap &image) |
| | Create a modal dialog configured to display the given QR code.
|
Orchestrates clipboard management, pass signal handling, and application-level operations for the QtPass application.
Definition at line 38 of file qtpass.h.
◆ QtPass()
Construct a QtPass instance associated with the given main window.
- Parameters
-
| mainWindow | Pointer to the application's MainWindow. |
◆ copyTextToClipboard
| void QtPass::copyTextToClipboard |
( |
const QString & | text | ) |
|
|
slot |
Copy text into the system clipboard.
- Parameters
-
◆ createQRCodePopup()
| QDialog * QtPass::createQRCodePopup |
( |
const QPixmap & | image | ) |
|
|
static |
Create a modal dialog configured to display the given QR code.
- Parameters
-
| image | Pixmap 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
-
| text | Primary text to store. |
| p_output | Optional additional output used when determining the final clipped text value. |
◆ setFreshStart()
| void QtPass::setFreshStart |
( |
const bool & | fs | ) |
|
|
inline |
Set the fresh-start state.
- Parameters
-
| fs | New 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
-
| text | Text to convert into a QR code. |
The documentation for this class was generated from the following file: