mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 16:40:03 +00:00
This commit un-deprecates DeprecatedString, and repurposes it as a byte
string.
As the null state has already been removed, there are no other
particularly hairy blockers in repurposing this type as a byte string
(what it _really_ is).
This commit is auto-generated:
$ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \
Meta Ports Ladybird Tests Kernel)
$ perl -pie 's/\bDeprecatedString\b/ByteString/g;
s/deprecated_string/byte_string/g' $xs
$ clang-format --style=file -i \
$(git diff --name-only | grep \.cpp\|\.h)
$ gn format $(git ls-files '*.gn' '*.gni')
37 lines
938 B
C++
37 lines
938 B
C++
/*
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
* Copyright (c) 2021, Sam Atkins <atkinssj@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/SettingsWindow.h>
|
|
#include <LibGUI/TextEditor.h>
|
|
#include <LibGUI/Window.h>
|
|
|
|
class MailSettingsWidget final : public GUI::SettingsWindow::Tab {
|
|
C_OBJECT_ABSTRACT(MailSettingsWidget)
|
|
|
|
public:
|
|
static ErrorOr<NonnullRefPtr<MailSettingsWidget>> try_create();
|
|
|
|
virtual void apply_settings() override;
|
|
virtual void reset_default_values() override;
|
|
|
|
private:
|
|
MailSettingsWidget() = default;
|
|
ErrorOr<void> setup();
|
|
|
|
ByteString m_server;
|
|
ByteString m_port;
|
|
bool m_tls { false };
|
|
ByteString m_email;
|
|
Vector<ByteString> m_common_ports;
|
|
|
|
RefPtr<GUI::TextBox> m_server_inputbox;
|
|
RefPtr<GUI::ComboBox> m_port_combobox;
|
|
RefPtr<GUI::CheckBox> m_tls_checkbox;
|
|
RefPtr<GUI::TextBox> m_email_inputbox;
|
|
};
|