1/*
2 * Copyright (C) 2014 by Daniel Molkentin <danimo@owncloud.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * for more details.
13 */
14
15#ifndef MIRALL_AUTHENTICATIONDIALOG_H
16#define MIRALL_AUTHENTICATIONDIALOG_H
17
18#include <QDialog>
19
20class QLineEdit;
21
22namespace OCC {
23
24/**
25 * @brief Authenticate a user for a specific credential given his credentials
26 * @ingroup gui
27 */
28class AuthenticationDialog : public QDialog
29{
30 Q_OBJECT
31public:
32 AuthenticationDialog(const QString &realm, const QString &domain, QWidget *parent = 0);
33
34 QString user() const;
35 QString password() const;
36
37private:
38 QLineEdit *_user;
39 QLineEdit *_password;
40};
41
42
43} // namespace OCC
44
45#endif // MIRALL_AUTHENTICATIONDIALOG_H
46