summaryrefslogtreecommitdiffstats
path: root/passworddialog.h
blob: 2ab2e5f8e5f6eb868dd67474231ee4d7fd75fe8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef PASSWORDDIALOG_H
#define PASSWORDDIALOG_H

#include <QDialog>
#include "mainwindow.h"

namespace Ui {
class PasswordDialog;
}

class PasswordDialog : public QDialog
{
    Q_OBJECT

public:
    explicit PasswordDialog(MainWindow *parent = 0);
    ~PasswordDialog();
    void setPassword(QString);
    QString getPassword();
    void setTemplate(QString);
    void setFile(QString);
    void useTemplate(bool);
    void templateAll(bool);

private slots:
    void on_checkBoxShow_stateChanged(int arg1);
    void on_createPasswordButton_clicked();

private:
    Ui::PasswordDialog *ui;
    MainWindow *mainWindow;
    QString passTemplate;
    QStringList fields;
    bool templating;
    bool allFields;
};

#endif // PASSWORDDIALOG_H