PasswordInputDialog.h 625 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. * Copyright (c) 2022, the SerenityOS developers.
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <LibGUI/Dialog.h>
  9. namespace GUI {
  10. class PasswordInputDialog : public Dialog {
  11. C_OBJECT(PasswordInputDialog);
  12. public:
  13. virtual ~PasswordInputDialog() override = default;
  14. static ExecResult show(Window* parent_window, String& text_value, String title, String server, String username);
  15. private:
  16. explicit PasswordInputDialog(Window* parent_window, String title, String server, String username);
  17. String m_password;
  18. };
  19. }