Propagate color of selected messages too
[trojita.git] / src / Gui / PasswordDialog.h
blobe70f54728b50cfe0488a644ae65a369bb89f3543
1 /*
2 Copyright (C) 2013 by Glad Deschrijver <glad.deschrijver@gmail.com>
3 Copyright (C) 2006 - 2016 Jan Kundrát <jkt@kde.org>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License as
7 published by the Free Software Foundation; either version 2 of
8 the License or (at your option) version 3 or any later version
9 accepted by the membership of KDE e.V. (or its successor approved
10 by the membership of KDE e.V.), which shall act as a proxy
11 defined in Section 14 of version 3 of the license.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef PASSWORDDIALOG_H
23 #define PASSWORDDIALOG_H
25 #include <QDialog>
26 #include "ui_PasswordDialog.h"
28 class QAction;
29 class QKeySequence;
31 namespace Gui
34 class PasswordDialog : public QDialog
36 Q_OBJECT
38 public:
39 virtual ~PasswordDialog() override;
41 static PasswordDialog *getPassword(QWidget *parent, const QString &windowTitle, const QString &description,
42 const QString &errorMessage = QString());
44 signals:
45 void gotPassword(const QString &password);
47 protected:
48 explicit PasswordDialog(QWidget *parent = 0);
49 virtual void showEvent(QShowEvent *event) override;
51 Ui::PasswordDialog ui;
54 } // namespace Gui
56 #endif // PASSWORDDIALOG_H