2021-08-02 10:09:59 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
2022-02-26 10:50:04 -07:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2021-08-02 10:09:59 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibGUI/Dialog.h>
|
|
|
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
|
|
class PasswordInputDialog : public Dialog {
|
|
|
|
|
C_OBJECT(PasswordInputDialog);
|
|
|
|
|
|
|
|
|
|
public:
|
2022-02-26 10:50:04 -07:00
|
|
|
virtual ~PasswordInputDialog() override = default;
|
2021-08-02 10:09:59 +02:00
|
|
|
|
2022-12-04 18:02:33 +00:00
|
|
|
static ExecResult show(Window* parent_window, DeprecatedString& text_value, DeprecatedString title, DeprecatedString server, DeprecatedString username);
|
2021-08-02 10:09:59 +02:00
|
|
|
|
|
|
|
|
private:
|
2022-12-04 18:02:33 +00:00
|
|
|
explicit PasswordInputDialog(Window* parent_window, DeprecatedString title, DeprecatedString server, DeprecatedString username);
|
2021-08-02 10:09:59 +02:00
|
|
|
|
2022-12-04 18:02:33 +00:00
|
|
|
DeprecatedString m_password;
|
2021-08-02 10:09:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|