2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2013-06-10 00:57:54 +03:00
|
|
|
|
2016-02-10 11:30:49 +01:00
|
|
|
#pragma once
|
2013-06-10 00:57:54 +03:00
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
|
|
namespace Mercurial {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
namespace Ui { class AuthenticationDialog; }
|
|
|
|
|
|
|
|
|
|
class AuthenticationDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2018-11-14 01:58:25 +01:00
|
|
|
explicit AuthenticationDialog(const QString &username, const QString &password,
|
|
|
|
|
QWidget *parent = nullptr);
|
2016-02-10 11:30:49 +01:00
|
|
|
~AuthenticationDialog() override;
|
2013-06-10 00:57:54 +03:00
|
|
|
void setPasswordEnabled(bool enabled);
|
|
|
|
|
QString getUserName();
|
|
|
|
|
QString getPassword();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::AuthenticationDialog *ui;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Mercurial
|