qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
src
widget
form
setpassworddialog.h
Go to the documentation of this file.
1
/*
2
Copyright © 2014-2019 by The qTox Project Contributors
3
4
This file is part of qTox, a Qt-based graphical interface for Tox.
5
6
qTox is libre 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
qTox 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 qTox. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
22
#include <QDialog>
23
24
namespace
Ui
{
25
class
SetPasswordDialog
;
26
}
27
28
class
SetPasswordDialog
:
public
QDialog
29
{
30
Q_OBJECT
31
32
public
:
33
enum
ReturnCode
34
{
35
Rejected
= QDialog::Rejected,
36
Accepted
= QDialog::Accepted,
37
Tertiary
38
};
39
explicit
SetPasswordDialog
(QString
body
, QString extraButton, QWidget* parent =
nullptr
);
40
~SetPasswordDialog
();
41
QString
getPassword
();
42
static
int
getPasswordStrength
(QString pass);
43
44
private
slots:
45
void
onPasswordEdit
();
46
47
private
:
48
Ui::SetPasswordDialog*
ui
;
49
QString
body
;
50
static
const
double
reasonablePasswordLength
;
51
};
SetPasswordDialog::onPasswordEdit
void onPasswordEdit()
Definition:
setpassworddialog.cpp:57
SetPasswordDialog
Definition:
setpassworddialog.h:28
SetPasswordDialog::Tertiary
@ Tertiary
Definition:
setpassworddialog.h:37
SetPasswordDialog::getPasswordStrength
static int getPasswordStrength(QString pass)
Definition:
setpassworddialog.cpp:78
SetPasswordDialog::Rejected
@ Rejected
Definition:
setpassworddialog.h:35
SetPasswordDialog::getPassword
QString getPassword()
Definition:
setpassworddialog.cpp:105
Ui
Definition:
filetransferwidget.h:30
SetPasswordDialog::~SetPasswordDialog
~SetPasswordDialog()
Definition:
setpassworddialog.cpp:52
SetPasswordDialog::reasonablePasswordLength
static const double reasonablePasswordLength
Definition:
setpassworddialog.h:50
SetPasswordDialog::Accepted
@ Accepted
Definition:
setpassworddialog.h:36
SetPasswordDialog::SetPasswordDialog
SetPasswordDialog(QString body, QString extraButton, QWidget *parent=nullptr)
Definition:
setpassworddialog.cpp:28
SetPasswordDialog::ReturnCode
ReturnCode
Definition:
setpassworddialog.h:33
SetPasswordDialog::ui
Ui::SetPasswordDialog * ui
Definition:
setpassworddialog.h:48
SetPasswordDialog::body
QString body
Definition:
setpassworddialog.h:49
Generated by
1.8.17