Created SMTPClient class.

This commit is contained in:
Relintai 2023-12-22 20:29:15 +01:00
parent be379405d2
commit 85d60b67e8
5 changed files with 105 additions and 0 deletions

View File

@ -56,6 +56,8 @@ sources = [
"nodes/redirect/redirect_web_page.cpp",
"nodes/redirect/alias_web_page.cpp",
"smtp/smtp_client.cpp",
]
if env["tools"]:

View File

@ -77,6 +77,8 @@ def get_doc_classes():
"RedirectWebPage",
"AliasWebPage",
"SMTPClient",
"HTTPSessionManagerDB",
]

View File

@ -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<RedirectWebPage>();
ClassDB::register_class<AliasWebPage>();
ClassDB::register_class<SMTPClient>();
#ifdef MODULE_DATABASE_ENABLED
ClassDB::register_class<HTTPSessionManagerDB>();
#endif

View File

@ -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");
}

View File

@ -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