diff --git a/modules/web/SCsub b/modules/web/SCsub index 6a9f2b8b6..fd7e1a1a3 100644 --- a/modules/web/SCsub +++ b/modules/web/SCsub @@ -56,6 +56,8 @@ sources = [ "nodes/redirect/redirect_web_page.cpp", "nodes/redirect/alias_web_page.cpp", + + "smtp/smtp_client.cpp", ] if env["tools"]: diff --git a/modules/web/config.py b/modules/web/config.py index 20e611d88..91f194097 100644 --- a/modules/web/config.py +++ b/modules/web/config.py @@ -77,6 +77,8 @@ def get_doc_classes(): "RedirectWebPage", "AliasWebPage", + "SMTPClient", + "HTTPSessionManagerDB", ] diff --git a/modules/web/register_types.cpp b/modules/web/register_types.cpp index 5a2396feb..8bea4773e 100644 --- a/modules/web/register_types.cpp +++ b/modules/web/register_types.cpp @@ -71,6 +71,8 @@ #include "nodes/redirect/alias_web_page.h" #include "nodes/redirect/redirect_web_page.h" +#include "smtp/smtp_client.h" + #if TOOLS_ENABLED #include "editor/web_node_editor_plugin.h" #endif @@ -147,6 +149,8 @@ void register_web_types(ModuleRegistrationLevel p_level) { ClassDB::register_class(); ClassDB::register_class(); + ClassDB::register_class(); + #ifdef MODULE_DATABASE_ENABLED ClassDB::register_class(); #endif diff --git a/modules/web/smtp/smtp_client.cpp b/modules/web/smtp/smtp_client.cpp new file mode 100644 index 000000000..df9b3bd3b --- /dev/null +++ b/modules/web/smtp/smtp_client.cpp @@ -0,0 +1,47 @@ +/*************************************************************************/ +/* smtp_client.h */ +/*************************************************************************/ +/* This file is part of: */ +/* PANDEMONIUM ENGINE */ +/* https://github.com/Relintai/pandemonium_engine */ +/*************************************************************************/ +/* Copyright (c) 2022-present Péter Magyar. */ +/* Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md). */ +/* Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/*************************************************************************/ + +#include "smtp_client.h" + +void SMTPClient::_notification(const int what) { +} + +SMTPClient::SMTPClient() { +} + +SMTPClient::~SMTPClient() { +} + +void SMTPClient::_bind_methods() { + ////ClassDB::bind_method(D_METHOD("get_uri_segment"), &SMTPClient::get_uri_segment); + //ClassDB::bind_method(D_METHOD("set_uri_segment", "val"), &SMTPClient::set_uri_segment); + //ADD_PROPERTY(PropertyInfo(Variant::STRING, "uri_segment"), "set_uri_segment", "get_uri_segment"); +} diff --git a/modules/web/smtp/smtp_client.h b/modules/web/smtp/smtp_client.h new file mode 100644 index 000000000..9fbb3d929 --- /dev/null +++ b/modules/web/smtp/smtp_client.h @@ -0,0 +1,50 @@ +#ifndef SMTP_CLIENT_H +#define SMTP_CLIENT_H + +/*************************************************************************/ +/* smtp_client.h */ +/*************************************************************************/ +/* This file is part of: */ +/* PANDEMONIUM ENGINE */ +/* https://github.com/Relintai/pandemonium_engine */ +/*************************************************************************/ +/* Copyright (c) 2022-present Péter Magyar. */ +/* Copyright (c) 2014-2022 Godot Engine contributors (cf. AUTHORS.md). */ +/* Copyright (c) 2007-2022 Juan Linietsky, Ariel Manzur. */ +/* */ +/* Permission is hereby granted, free of charge, to any person obtaining */ +/* a copy of this software and associated documentation files (the */ +/* "Software"), to deal in the Software without restriction, including */ +/* without limitation the rights to use, copy, modify, merge, publish, */ +/* distribute, sublicense, and/or sell copies of the Software, and to */ +/* permit persons to whom the Software is furnished to do so, subject to */ +/* the following conditions: */ +/* */ +/* The above copyright notice and this permission notice shall be */ +/* included in all copies or substantial portions of the Software. */ +/* */ +/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */ +/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */ +/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/ +/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */ +/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */ +/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ +/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ +/*************************************************************************/ + +#include "scene/main/node.h" + +class SMTPClient : public Node { + GDCLASS(SMTPClient, Node); + +public: + SMTPClient(); + ~SMTPClient(); + +protected: + void _notification(const int what); + + static void _bind_methods(); +}; + +#endif