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
|
|
|
|
|
|
|
|
static int show(Window* parent_window, String& text_value, String title, String server, String username);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
explicit PasswordInputDialog(Window* parent_window, String title, String server, String username);
|
|
|
|
|
|
|
|
|
|
String m_password;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|