Classified ads
passwd_dialog.h
Go to the documentation of this file.
1 /* -*-C++-*- -*-coding: utf-8-unix;-*-
2  Classified Ads is Copyright (c) Antti Järvinen 2013.
3 
4  This file is part of Classified Ads.
5 
6  Classified Ads is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Classified Ads is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with Classified Ads. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef PASSWD_DIALOG_H
21 #define PASSWD_DIALOG_H
22 
23 #include <QDialog>
24 #include "../mcontroller.h"
25 #include "../ui_passwordDialog.h"
26 
27 class MController ;
28 
37 class PasswdDialog : public QDialog
38 {
39  Q_OBJECT
40 
41  public:
51  PasswdDialog(QWidget *aParent,
52  MController& aController,
53  const QString &aPrompt,
54  bool aIsPwdQueryDialog = true );
55  ~PasswdDialog();
56  private slots:
57  void okClicked();
58 signals:
60  const QString& aExplanation) ;
61  private:
62  Ui_PasswordDialog ui ;
64  QString iPrompt ;
66 };
67 
68 #endif
class for querying a password from user.
Definition: passwd_dialog.h:37
bool iIsPwdQueryDialog
Definition: passwd_dialog.h:65
Ui_PasswordDialog ui
Definition: passwd_dialog.h:62
void error(MController::CAErrorSituation aError, const QString &aExplanation)
CAErrorSituation
Definition: mcontroller.h:48
PasswdDialog(QWidget *aParent, MController &aController, const QString &aPrompt, bool aIsPwdQueryDialog=true)
void okClicked()
MController & iController
Definition: passwd_dialog.h:63
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
QString iPrompt
Definition: passwd_dialog.h:64