1 //**********************************************************************************
2 //EncryptPad Copyright 2016 Evgeny Pokhilko
3 //<http://www.evpo.net/encryptpad>
4 //
5 //This file is part of EncryptPad
6 //
7 //EncryptPad is free software: you can redistribute it and/or modify
8 //it under the terms of the GNU General Public License as published by
9 //the Free Software Foundation, either version 2 of the License, or
10 //(at your option) any later version.
11 //
12 //EncryptPad is distributed in the hope that it will be useful,
13 //but WITHOUT ANY WARRANTY; without even the implied warranty of
14 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 //GNU General Public License for more details.
16 //
17 //You should have received a copy of the GNU General Public License
18 //along with EncryptPad.  If not, see <http://www.gnu.org/licenses/>.
19 //**********************************************************************************
20 #include "get_passphrase_dialog.h"
21 #include "ui_get_passphrase_dialog.h"
22 #include "common_definitions.h"
23 
GetPassphraseDialog(QWidget * parent)24 GetPassphraseDialog::GetPassphraseDialog(QWidget *parent) :
25     QDialog(parent, kDefaultWindowFlags),
26     ui(new Ui::GetPassphraseDialog)
27 {
28     ui->setupUi(this);
29 }
30 
~GetPassphraseDialog()31 GetPassphraseDialog::~GetPassphraseDialog()
32 {
33     delete ui;
34 }
35 
GetPassphrase() const36 QString GetPassphraseDialog::GetPassphrase() const
37 {
38     return ui->uiPassphrase->text();
39 }
40