summaryrefslogtreecommitdiffstats
path: root/src/maingui/pwgui.h
blob: fa3f465077d79d457781d6738b9f69bec20257e9 (plain) (blame)
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
39
40
#ifndef AUTHENTICATION_H
#define AUTHENTICATION_H

#include <QDialog>
#include <QDebug>

namespace Ui
{
class PwGui;
}

class QTimer;

class PwGui : public QDialog
{
	Q_OBJECT

public:
	explicit PwGui(QWidget *parent = 0);
	~PwGui();
	const QString getUser() const;
	const QString getPassword() const;
	const bool isCancelled() const { return cancelled; };
	int exec();

protected:
	void hideEvent(QHideEvent * e);
	void keyPressEvent(QKeyEvent * e);

private slots:
	void on_accept();
	void on_reject();

private:
	Ui::PwGui *ui;
	void initializeUI(char *username);
	bool cancelled;
};

#endif // AUTHENTICATION_H