mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 03:25:07 +00:00

We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
34 lines
847 B
C++
34 lines
847 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(MailSettingsWidget)
|
|
|
|
public:
|
|
virtual void apply_settings() override;
|
|
virtual void reset_default_values() override;
|
|
|
|
private:
|
|
MailSettingsWidget();
|
|
|
|
DeprecatedString m_server;
|
|
DeprecatedString m_port;
|
|
bool m_tls { false };
|
|
DeprecatedString m_email;
|
|
Vector<DeprecatedString> 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;
|
|
};
|