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
|
|
|
|
2023-12-16 17:49:34 +03:30
|
|
|
static ExecResult show(Window* parent_window, ByteString& text_value, ByteString title, ByteString server, ByteString username);
|
2021-08-02 10:09:59 +02:00
|
|
|
|
|
|
|
|
private:
|
2023-12-16 17:49:34 +03:30
|
|
|
explicit PasswordInputDialog(Window* parent_window, ByteString title, ByteString server, ByteString username);
|
2021-08-02 10:09:59 +02:00
|
|
|
|
2023-12-16 17:49:34 +03:30
|
|
|
ByteString m_password;
|
2021-08-02 10:09:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|