#ifndef GODOT_CPP_UPNPDEVICE_HPP #define GODOT_CPP_UPNPDEVICE_HPP #include #include #include #include #include "UPNPDevice.hpp" #include "Reference.hpp" namespace godot { class UPNPDevice : public Reference { struct ___method_bindings { godot_method_bind *mb_add_port_mapping; godot_method_bind *mb_delete_port_mapping; godot_method_bind *mb_get_description_url; godot_method_bind *mb_get_igd_control_url; godot_method_bind *mb_get_igd_our_addr; godot_method_bind *mb_get_igd_service_type; godot_method_bind *mb_get_igd_status; godot_method_bind *mb_get_service_type; godot_method_bind *mb_is_valid_gateway; godot_method_bind *mb_query_external_address; godot_method_bind *mb_set_description_url; godot_method_bind *mb_set_igd_control_url; godot_method_bind *mb_set_igd_our_addr; godot_method_bind *mb_set_igd_service_type; godot_method_bind *mb_set_igd_status; godot_method_bind *mb_set_service_type; }; static ___method_bindings ___mb; public: static void ___init_method_bindings(); static inline const char *___get_class_name() { return (const char *) "UPNPDevice"; } static inline Object *___get_from_variant(Variant a) { godot_object *o = (godot_object*) a; return (o) ? (Object *) godot::nativescript_1_1_api->godot_nativescript_get_instance_binding_data(godot::_RegisterState::language_index, o) : nullptr; } // enums enum IGDStatus { IGD_STATUS_OK = 0, IGD_STATUS_HTTP_ERROR = 1, IGD_STATUS_HTTP_EMPTY = 2, IGD_STATUS_NO_URLS = 3, IGD_STATUS_NO_IGD = 4, IGD_STATUS_DISCONNECTED = 5, IGD_STATUS_UNKNOWN_DEVICE = 6, IGD_STATUS_INVALID_CONTROL = 7, IGD_STATUS_MALLOC_ERROR = 8, IGD_STATUS_UNKNOWN_ERROR = 9, }; // constants static UPNPDevice *_new(); // methods int64_t add_port_mapping(const int64_t port, const int64_t port_internal = 0, const String desc = "", const String proto = "UDP", const int64_t duration = 0) const; int64_t delete_port_mapping(const int64_t port, const String proto = "UDP") const; String get_description_url() const; String get_igd_control_url() const; String get_igd_our_addr() const; String get_igd_service_type() const; UPNPDevice::IGDStatus get_igd_status() const; String get_service_type() const; bool is_valid_gateway() const; String query_external_address() const; void set_description_url(const String url); void set_igd_control_url(const String url); void set_igd_our_addr(const String addr); void set_igd_service_type(const String type); void set_igd_status(const int64_t status); void set_service_type(const String type); }; } #endif