2021-08-02 05:09:59 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
2022-02-26 14:50:04 -03:00
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
2021-08-02 05:09:59 -03: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 14:50:04 -03:00
|
|
|
virtual ~PasswordInputDialog() override = default;
|
2021-08-02 05:09:59 -03:00
|
|
|
|
2022-12-04 15:02:33 -03:00
|
|
|
static ExecResult show(Window* parent_window, DeprecatedString& text_value, DeprecatedString title, DeprecatedString server, DeprecatedString username);
|
2021-08-02 05:09:59 -03:00
|
|
|
|
|
|
|
|
private:
|
2022-12-04 15:02:33 -03:00
|
|
|
explicit PasswordInputDialog(Window* parent_window, DeprecatedString title, DeprecatedString server, DeprecatedString username);
|
2021-08-02 05:09:59 -03:00
|
|
|
|
2022-12-04 15:02:33 -03:00
|
|
|
DeprecatedString m_password;
|
2021-08-02 05:09:59 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|