QtPass 2.0.0
Developer documentation
Loading...
Searching...
No Matches
plainmessagebox.h File Reference

QMessageBox helpers that force Qt::PlainText so store-controlled names can never be read as rich-text markup. More...

#include <QMessageBox>
#include <functional>
Include dependency graph for plainmessagebox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  PlainMessageBox
 Message boxes whose text is shown as the text it is.

Functions

auto PlainMessageBox::show (QWidget *parent, QMessageBox::Icon icon, const QString &title, const QString &text, QMessageBox::StandardButtons buttons=QMessageBox::Ok) -> QMessageBox::StandardButton
 Show a modal message box with plain text and wait for it.
auto PlainMessageBox::askYes (QWidget *parent, const QString &title, const QString &text) -> bool
 Ask a yes/no question in plain text.
auto PlainMessageBox::askToGiveNewReaders (QWidget *parent, const QString &store, const QStringList &entries) -> bool
 Ask whether to go on although entries would gain readers: with the pass backend, pass re-encrypts every entry of a folder itself, so a copy someone planted from a folder you are not on would be handed to this folder's recipients.
auto PlainMessageBox::confirmPassRun (QWidget *parent, const QString &store, const std::function< QStringList()> &check) -> bool
 Run check (which lists the entries a pass run would give new readers, one gpg call each) under a wait cursor, and ask about what it finds (askToGiveNewReaders()).
void PlainMessageBox::warning (QWidget *parent, const QString &title, const QString &text)
 Show a warning in plain text.
void PlainMessageBox::critical (QWidget *parent, const QString &title, const QString &text)
 Show an error in plain text.

Detailed Description

QMessageBox helpers that force Qt::PlainText so store-controlled names can never be read as rich-text markup.

Definition in file plainmessagebox.h.