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>
|
|
|
|
|
|
2022-10-04 10:10:58 +02:00
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
class QLineEdit;
|
|
|
|
|
QT_END_NAMESPACE
|
2013-06-10 00:57:54 +03:00
|
|
|
|
2022-10-04 10:10:58 +02:00
|
|
|
namespace Mercurial::Internal {
|
2013-06-10 00:57:54 +03:00
|
|
|
|
|
|
|
|
class AuthenticationDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
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;
|
2022-10-04 10:10:58 +02:00
|
|
|
|
2013-06-10 00:57:54 +03:00
|
|
|
void setPasswordEnabled(bool enabled);
|
|
|
|
|
QString getUserName();
|
|
|
|
|
QString getPassword();
|
|
|
|
|
|
|
|
|
|
private:
|
2022-10-04 10:10:58 +02:00
|
|
|
QLineEdit *m_username;
|
|
|
|
|
QLineEdit *m_password;
|
2013-06-10 00:57:54 +03:00
|
|
|
};
|
|
|
|
|
|
2022-10-04 10:10:58 +02:00
|
|
|
} // Mercurial::Internal
|