mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
31 lines
712 B
C++
31 lines
712 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/Dialog.h>
|
|
|
|
namespace GUI {
|
|
|
|
class PasswordInputDialog : public Dialog {
|
|
C_OBJECT(PasswordInputDialog);
|
|
|
|
public:
|
|
ErrorOr<NonnullRefPtr<GUI::Widget>> try_create();
|
|
|
|
virtual ~PasswordInputDialog() override = default;
|
|
|
|
static ExecResult show(Window* parent_window, ByteString& text_value, ByteString title, ByteString server, ByteString username);
|
|
|
|
private:
|
|
explicit PasswordInputDialog(Window* parent_window, ByteString title, ByteString server, ByteString username);
|
|
|
|
ByteString m_password;
|
|
};
|
|
|
|
}
|