| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/urihandler.cc`/ |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/urihandler.h>cxx . . $ `<file>/gstreamer/gstreamermm/urihandler.h`/ |
| 7 | #include <gstreamermm/private/urihandler_p.h>cxx . . $ `<file>/gstreamer/gstreamermm/private/urihandler_p.h`/ |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2008 The gstreamermm Development Team |
| 13 | * |
| 14 | * This library is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU Lesser General Public |
| 16 | * License as published by the Free Software Foundation; either |
| 17 | * version 2.1 of the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This library is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 22 | * Lesser General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU Lesser General Public |
| 25 | * License along with this library; if not, write to the Free |
| 26 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 27 | */ |
| 28 | |
| 29 | #include <gst/gst.h> |
| 30 | #include <gstreamermm/element.h>cxx . . $ `<file>/gstreamer/gstreamermm/element.h`/ |
| 31 | |
| 32 | namespace Gstcxx . . $ Gst/ |
| 33 | { |
| 34 | |
| 35 | URITypecxx . . $ Gst/URIType# URIHandlercxx . . $ Gst/URIHandler#::get_type_vfunccxx . . $ Gst/URIHandler#get_type_vfunc(fdb346bd718ba3ff).() |
| 36 | { |
| 37 | BaseClassTypecxx . . $ Gst/URIHandler#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/URIHandler#BaseClassType#*>( |
| 38 | g_type_interface_peek_parent( |
| 39 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_), CppObjectTypecxx . . $ Gst/URIHandler#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).()) |
| 40 | ) ); |
| 41 | |
| 42 | if(base && base->get_typecxx . . $ _GstURIHandlerInterface#get_type.) |
| 43 | { |
| 44 | return static_cast<URITypecxx . . $ Gst/URIType#>((*base->get_typecxx . . $ _GstURIHandlerInterface#get_type.)(CppObjectTypecxx . . $ Gst/URIHandler#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).())); |
| 45 | } |
| 46 | |
| 47 | return URITypecxx . . $ Gst/URIType#(); |
| 48 | } |
| 49 | |
| 50 | GstURIType URIHandler_Classcxx . . $ Gst/URIHandler_Class#::get_type_vfunc_callbackcxx . . $ Gst/URIHandler_Class#get_type_vfunc_callback(ac7702df8bc99190).(GType type) |
| 51 | { |
| 52 | gpointer self = g_object_new(type, nullptr); |
| 53 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase# *const obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 54 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 55 | |
| 56 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 57 | { |
| 58 | CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType# *const obj = dynamic_cast<CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType#* const>(obj_base); |
| 59 | if(obj) |
| 60 | { |
| 61 | #ifdef GLIBMM_EXCEPTIONS_ENABLEDcxx . . $ `<external>/2871488740682878224/glibmmconfig.h:29:9`! |
| 62 | try |
| 63 | { |
| 64 | #endif //GLIBMM_EXCEPTIONS_ENABLED |
| 65 | return static_cast<GstURIType>(obj->get_type_vfunccxx . . $ Gst/URIHandler#get_type_vfunc(fdb346bd718ba3ff).()); |
| 66 | #ifdef GLIBMM_EXCEPTIONS_ENABLEDcxx . . $ `<external>/2871488740682878224/glibmmconfig.h:29:9`! |
| 67 | } |
| 68 | catch(...) |
| 69 | { |
| 70 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 71 | } |
| 72 | #endif //GLIBMM_EXCEPTIONS_ENABLED |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | BaseClassTypecxx . . $ Gst/URIHandler_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/URIHandler_Class#BaseClassType#*>( |
| 77 | g_type_interface_peek_parent( |
| 78 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self), CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).()) |
| 79 | ) ); |
| 80 | |
| 81 | if(base && base->get_typecxx . . $ _GstURIHandlerInterface#get_type.) |
| 82 | { |
| 83 | return (*base->get_typecxx . . $ _GstURIHandlerInterface#get_type.)(type); |
| 84 | } |
| 85 | |
| 86 | return GstURIType(); |
| 87 | } |
| 88 | |
| 89 | const gchar * const * URIHandlercxx . . $ Gst/URIHandler#::get_protocols_vfunccxx . . $ Gst/URIHandler#get_protocols_vfunc(69503a37793e448d).() const |
| 90 | { |
| 91 | BaseClassTypecxx . . $ Gst/URIHandler#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/URIHandler#BaseClassType#*>( |
| 92 | g_type_interface_peek_parent( |
| 93 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_), CppObjectTypecxx . . $ Gst/URIHandler#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).()) |
| 94 | ) ); |
| 95 | |
| 96 | if(base && base->get_protocolscxx . . $ _GstURIHandlerInterface#get_protocols.) |
| 97 | { |
| 98 | return (*base->get_protocolscxx . . $ _GstURIHandlerInterface#get_protocols.)(CppObjectTypecxx . . $ Gst/URIHandler#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).()); |
| 99 | } |
| 100 | static const gchar* protocols[] = {nullptr}; |
| 101 | return protocols; |
| 102 | } |
| 103 | |
| 104 | const gchar * const * URIHandler_Classcxx . . $ Gst/URIHandler_Class#::get_protocols_vfunc_callbackcxx . . $ Gst/URIHandler_Class#get_protocols_vfunc_callback(53086188f627e28a).(GType type) |
| 105 | { |
| 106 | gpointer self = g_object_new(type, nullptr); |
| 107 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase# *const obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 108 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 109 | |
| 110 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 111 | { |
| 112 | CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType# *const obj = dynamic_cast<CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType#* const>(obj_base); |
| 113 | if(obj) |
| 114 | { |
| 115 | #ifdef GLIBMM_EXCEPTIONS_ENABLEDcxx . . $ `<external>/2871488740682878224/glibmmconfig.h:29:9`! |
| 116 | try |
| 117 | { |
| 118 | #endif //GLIBMM_EXCEPTIONS_ENABLED |
| 119 | return obj->get_protocols_vfunccxx . . $ Gst/URIHandler#get_protocols_vfunc(69503a37793e448d).(); |
| 120 | #ifdef GLIBMM_EXCEPTIONS_ENABLEDcxx . . $ `<external>/2871488740682878224/glibmmconfig.h:29:9`! |
| 121 | } |
| 122 | catch(...) |
| 123 | { |
| 124 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 125 | } |
| 126 | #endif //GLIBMM_EXCEPTIONS_ENABLED |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | BaseClassTypecxx . . $ Gst/URIHandler_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/URIHandler_Class#BaseClassType#*>( |
| 131 | g_type_interface_peek_parent( |
| 132 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self), CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).()) |
| 133 | ) ); |
| 134 | |
| 135 | if(base && base->get_protocolscxx . . $ _GstURIHandlerInterface#get_protocols.) |
| 136 | { |
| 137 | return (*base->get_protocolscxx . . $ _GstURIHandlerInterface#get_protocols.)(type); |
| 138 | } |
| 139 | static const gchar *protocols[] = { nullptr }; |
| 140 | return protocols; |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | namespacecxx . . $ `$anonymous_namespace_gstreamer/gstreamermm/urihandler.cc`/ |
| 145 | { |
| 146 | } // anonymous namespace |
| 147 | |
| 148 | // static |
| 149 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::URIType>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 150 | { |
| 151 | return gst_uri_type_get_type(); |
| 152 | } |
| 153 | |
| 154 | // static |
| 155 | GType Glibcxx . . $ Glib/::Valuecxx . . $ Glib/Value#<Gst::URIError>::value_typecxx . . $ Glib/Value#value_type(f708dce9a8856c70).() |
| 156 | { |
| 157 | return gst_uri_error_get_type(); |
| 158 | } |
| 159 | |
| 160 | |
| 161 | namespace Glibcxx . . $ Glib/ |
| 162 | { |
| 163 | |
| 164 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::URIHandlercxx . . $ Gst/URIHandler#> wrapcxx . . $ Glib/wrap(161c240fd3d234bc).(GstURIHandlercxx . . $ GstURIHandler#* object, bool take_copy) |
| 165 | { |
| 166 | return Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::URIHandlercxx . . $ Gst/URIHandler#>( dynamic_cast<Gstcxx . . $ Gst/::URIHandlercxx . . $ Gst/URIHandler#*> (Glibcxx . . $ Glib/::wrap_auto_interfacecxx . . $ Glib/wrap_auto_interface(895573aecd4fc9a4).<Gstcxx . . $ Gst/::URIHandlercxx . . $ Gst/URIHandler#> ((GObjectcxx . . $ GObject#*)(object), take_copy)) ); |
| 167 | //We use dynamic_cast<> in case of multiple inheritance. |
| 168 | } |
| 169 | |
| 170 | } // namespace Glib |
| 171 | |
| 172 | |
| 173 | namespace Gstcxx . . $ Gst/ |
| 174 | { |
| 175 | |
| 176 | |
| 177 | /* The *_Class implementation: */ |
| 178 | |
| 179 | const Glibcxx . . $ Glib/::Interface_Classcxx . . $ Glib/Interface_Class#& URIHandler_Classcxx . . $ Gst/URIHandler_Class#::initcxx . . $ Gst/URIHandler_Class#init(abc04d6bda8aa5b8).() |
| 180 | { |
| 181 | if(!gtype_cxx . . $ Glib/Class#gtype_.) // create the GType if necessary |
| 182 | { |
| 183 | // Glib::Interface_Class has to know the interface init function |
| 184 | // in order to add interfaces to implementing types. |
| 185 | class_init_func_cxx . . $ Glib/Class#class_init_func_. = &URIHandler_Classcxx . . $ Gst/URIHandler_Class#::iface_init_functioncxx . . $ Gst/URIHandler_Class#iface_init_function(6c58c5e2437d25a2).; |
| 186 | |
| 187 | // We can not derive from another interface, and it is not necessary anyway. |
| 188 | gtype_cxx . . $ Glib/Class#gtype_. = gst_uri_handler_get_type(); |
| 189 | } |
| 190 | |
| 191 | return *this; |
| 192 | } |
| 193 | |
| 194 | void URIHandler_Classcxx . . $ Gst/URIHandler_Class#::iface_init_functioncxx . . $ Gst/URIHandler_Class#iface_init_function(6c58c5e2437d25a2).(void* g_iface, void*) |
| 195 | { |
| 196 | const auto klass = static_cast<BaseClassTypecxx . . $ Gst/URIHandler_Class#BaseClassType#*>(g_iface); |
| 197 | |
| 198 | //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect. |
| 199 | //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc |
| 200 | g_assertcxx . . $ `<external>/15287032793271088244/gtestutils.h:275:9`!(klass != nullptr); |
| 201 | |
| 202 | klass->get_uricxx . . $ _GstURIHandlerInterface#get_uri. = &get_uri_vfunc_callbackcxx . . $ Gst/URIHandler_Class#get_uri_vfunc_callback(4b998f6d37343ce1).; |
| 203 | klass->set_uricxx . . $ _GstURIHandlerInterface#set_uri. = &set_uri_vfunc_callbackcxx . . $ Gst/URIHandler_Class#set_uri_vfunc_callback(4b1c06a84fef5ce4).; |
| 204 | klass->get_typecxx . . $ _GstURIHandlerInterface#get_type. = &get_type_vfunc_callbackcxx . . $ Gst/URIHandler_Class#get_type_vfunc_callback(ac7702df8bc99190).; |
| 205 | klass->get_protocolscxx . . $ _GstURIHandlerInterface#get_protocols. = &get_protocols_vfunc_callbackcxx . . $ Gst/URIHandler_Class#get_protocols_vfunc_callback(53086188f627e28a).; |
| 206 | |
| 207 | } |
| 208 | |
| 209 | gchar* URIHandler_Classcxx . . $ Gst/URIHandler_Class#::get_uri_vfunc_callbackcxx . . $ Gst/URIHandler_Class#get_uri_vfunc_callback(4b998f6d37343ce1).(GstURIHandlercxx . . $ GstURIHandler#* self) |
| 210 | { |
| 211 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 212 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 213 | |
| 214 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 215 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 216 | // generated classes can use this optimisation, which avoids the unnecessary |
| 217 | // parameter conversions if there is no possibility of the virtual function |
| 218 | // being overridden: |
| 219 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 220 | { |
| 221 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType#* const>(obj_base); |
| 222 | if(obj) // This can be NULL during destruction. |
| 223 | { |
| 224 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 225 | { |
| 226 | // Call the virtual member method, which derived classes might override. |
| 227 | return g_strdupcxx . . $ `<external>/7822753393113922331/gstrfuncs.h:324:9`!((obj->get_uri_vfunc()).c_str()); |
| 228 | } |
| 229 | catch(...) |
| 230 | { |
| 231 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 232 | } |
| 233 | } |
| 234 | } |
| 235 | |
| 236 | BaseClassTypecxx . . $ Gst/URIHandler_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/URIHandler_Class#BaseClassType#*>( |
| 237 | g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). |
| 238 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self), CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).()) // Get the interface. |
| 239 | ) ); |
| 240 | |
| 241 | // Call the original underlying C function: |
| 242 | if(base && base->get_uricxx . . $ _GstURIHandlerInterface#get_uri.) |
| 243 | return (*base->get_uricxx . . $ _GstURIHandlerInterface#get_uri.)(self); |
| 244 | |
| 245 | using RTypecxx . . $ Gst/URIHandler_Class#get_uri_vfunc_callback(4b998f6d37343ce1).RType# = gchar*; |
| 246 | return RTypecxx . . $ Gst/URIHandler_Class#get_uri_vfunc_callback(4b998f6d37343ce1).RType#(); |
| 247 | } |
| 248 | gboolean URIHandler_Classcxx . . $ Gst/URIHandler_Class#::set_uri_vfunc_callbackcxx . . $ Gst/URIHandler_Class#set_uri_vfunc_callback(4b1c06a84fef5ce4).(GstURIHandlercxx . . $ GstURIHandler#* self, const gchar* uri, GError** error) |
| 249 | { |
| 250 | const auto obj_base = static_cast<Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#*>( |
| 251 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#::_get_current_wrappercxx . . $ Glib/ObjectBase#_get_current_wrapper(893eec6d4349e251).((GObjectcxx . . $ GObject#*)self)); |
| 252 | |
| 253 | // Non-gtkmmproc-generated custom classes implicitly call the default |
| 254 | // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc- |
| 255 | // generated classes can use this optimisation, which avoids the unnecessary |
| 256 | // parameter conversions if there is no possibility of the virtual function |
| 257 | // being overridden: |
| 258 | if(obj_base && obj_base->is_derived_cxx . . $ Glib/ObjectBase#is_derived_(50ce9a9e25b4a850).()) |
| 259 | { |
| 260 | const auto obj = dynamic_cast<CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType#* const>(obj_base); |
| 261 | if(obj) // This can be NULL during destruction. |
| 262 | { |
| 263 | try // Trap C++ exceptions which would normally be lost because this is a C callback. |
| 264 | { |
| 265 | // Call the virtual member method, which derived classes might override. |
| 266 | return static_cast<int>(obj->set_uri_vfunccxx . . $ Gst/URIHandler#set_uri_vfunc(e4aba70b79f269f1).(Glibcxx . . $ Glib/::convert_const_gchar_ptr_to_ustringcxx . . $ Glib/convert_const_gchar_ptr_to_ustring(cf5f32d7f0671127).(uri) |
| 267 | , error)); |
| 268 | } |
| 269 | catch(...) |
| 270 | { |
| 271 | Glibcxx . . $ Glib/::exception_handlers_invokecxx . . $ Glib/exception_handlers_invoke(ced63f7c635d850d).(); |
| 272 | } |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | BaseClassTypecxx . . $ Gst/URIHandler_Class#BaseClassType# *const base = static_cast<BaseClassTypecxx . . $ Gst/URIHandler_Class#BaseClassType#*>( |
| 277 | g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). |
| 278 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(self), CppObjectTypecxx . . $ Gst/URIHandler_Class#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).()) // Get the interface. |
| 279 | ) ); |
| 280 | |
| 281 | // Call the original underlying C function: |
| 282 | if(base && base->set_uricxx . . $ _GstURIHandlerInterface#set_uri.) |
| 283 | return (*base->set_uricxx . . $ _GstURIHandlerInterface#set_uri.)(self, uri, error); |
| 284 | |
| 285 | using RTypecxx . . $ Gst/URIHandler_Class#set_uri_vfunc_callback(4b1c06a84fef5ce4).RType# = gboolean; |
| 286 | return RTypecxx . . $ Gst/URIHandler_Class#set_uri_vfunc_callback(4b1c06a84fef5ce4).RType#(); |
| 287 | } |
| 288 | |
| 289 | |
| 290 | Glibcxx . . $ Glib/::ObjectBasecxx . . $ Glib/ObjectBase#* URIHandler_Classcxx . . $ Gst/URIHandler_Class#::wrap_newcxx . . $ Gst/URIHandler_Class#wrap_new(893eec6d4349e251).(GObjectcxx . . $ GObject#* object) |
| 291 | { |
| 292 | return new URIHandlercxx . . $ Gst/URIHandler#((GstURIHandlercxx . . $ GstURIHandler#*)(object)); |
| 293 | } |
| 294 | |
| 295 | |
| 296 | /* The implementation: */ |
| 297 | |
| 298 | URIHandlercxx . . $ Gst/URIHandler#::URIHandlercxx . . $ Gst/URIHandler#URIHandler(49f6e7a06ebc5aa8).() |
| 299 | : |
| 300 | Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#(urihandler_class_cxx . . $ Gst/URIHandler#urihandler_class_..initcxx . . $ Gst/URIHandler_Class#init(abc04d6bda8aa5b8).()) |
| 301 | {} |
| 302 | |
| 303 | URIHandlercxx . . $ Gst/URIHandler#::URIHandlercxx . . $ Gst/URIHandler#URIHandler(e0e7a9df62fa4608).(GstURIHandlercxx . . $ GstURIHandler#* castitem) |
| 304 | : |
| 305 | Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#((GObjectcxx . . $ GObject#*)(castitem)) |
| 306 | {} |
| 307 | |
| 308 | URIHandlercxx . . $ Gst/URIHandler#::URIHandlercxx . . $ Gst/URIHandler#URIHandler(2ae54c1e3e0dc4a8).(const Glibcxx . . $ Glib/::Interface_Classcxx . . $ Glib/Interface_Class#& interface_class) |
| 309 | : Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#(interface_class) |
| 310 | { |
| 311 | } |
| 312 | |
| 313 | URIHandlercxx . . $ Gst/URIHandler#::URIHandlercxx . . $ Gst/URIHandler#URIHandler(c52ae2c6b3aa780f).(URIHandlercxx . . $ Gst/URIHandler#&& src) noexcept |
| 314 | : Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)) |
| 315 | {} |
| 316 | |
| 317 | URIHandlercxx . . $ Gst/URIHandler#& URIHandlercxx . . $ Gst/URIHandler#::operatorcxx . . $ Gst/URIHandler#`operator=`(4900caa8fea3cdc6).=(URIHandlercxx . . $ Gst/URIHandler#&& src) noexcept |
| 318 | { |
| 319 | Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#::operator=(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(src)); |
| 320 | return *this; |
| 321 | } |
| 322 | |
| 323 | URIHandlercxx . . $ Gst/URIHandler#::~cxx . . $ Gst/URIHandler#`~URIHandler`(ced63f7c635d850d).URIHandlercxx . . $ Gst/URIHandler#() noexcept |
| 324 | {} |
| 325 | |
| 326 | // static |
| 327 | void URIHandlercxx . . $ Gst/URIHandler#::add_interfacecxx . . $ Gst/URIHandler#add_interface(2c44cd906ae4e829).(GType gtype_implementer) |
| 328 | { |
| 329 | urihandler_class_cxx . . $ Gst/URIHandler#urihandler_class_..initcxx . . $ Gst/URIHandler_Class#init(abc04d6bda8aa5b8).().add_interfacecxx . . $ Glib/Interface_Class#add_interface(cf8bf0a838713cc4).(gtype_implementer); |
| 330 | } |
| 331 | |
| 332 | URIHandlercxx . . $ Gst/URIHandler#::CppClassTypecxx . . $ Gst/URIHandler#CppClassType# URIHandlercxx . . $ Gst/URIHandler#::urihandler_class_cxx . . $ Gst/URIHandler#urihandler_class_.; // initialize static member |
| 333 | |
| 334 | GType URIHandlercxx . . $ Gst/URIHandler#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).() |
| 335 | { |
| 336 | return urihandler_class_cxx . . $ Gst/URIHandler#urihandler_class_..initcxx . . $ Gst/URIHandler_Class#init(abc04d6bda8aa5b8).().get_typecxx . . $ Glib/Class#get_type(fe4d2d262d4164a8).(); |
| 337 | } |
| 338 | |
| 339 | |
| 340 | GType URIHandlercxx . . $ Gst/URIHandler#::get_base_typecxx . . $ Gst/URIHandler#get_base_type(f708dce9a8856c70).() |
| 341 | { |
| 342 | return gst_uri_handler_get_type(); |
| 343 | } |
| 344 | |
| 345 | |
| 346 | bool URIHandlercxx . . $ Gst/URIHandler#::protocol_is_validcxx . . $ Gst/URIHandler#protocol_is_valid(7186ea5d16af43ac).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& protocol) |
| 347 | { |
| 348 | return gst_uri_protocol_is_valid(protocol.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).()); |
| 349 | } |
| 350 | |
| 351 | bool URIHandlercxx . . $ Gst/URIHandler#::protocol_is_supportedcxx . . $ Gst/URIHandler#protocol_is_supported(78d2ac3fd91491f6).(const Gstcxx . . $ Gst/::URITypecxx . . $ Gst/URIType# type, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& protocol) |
| 352 | { |
| 353 | return gst_uri_protocol_is_supported((GstURIType)(type), protocol.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).()); |
| 354 | } |
| 355 | |
| 356 | bool URIHandlercxx . . $ Gst/URIHandler#::uri_is_validcxx . . $ Gst/URIHandler#uri_is_valid(7186ea5d16af43ac).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uri) |
| 357 | { |
| 358 | return gst_uri_is_valid(uri.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).()); |
| 359 | } |
| 360 | |
| 361 | bool URIHandlercxx . . $ Gst/URIHandler#::uri_has_protocolcxx . . $ Gst/URIHandler#uri_has_protocol(395448000f6db32c).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uri, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& protocol) |
| 362 | { |
| 363 | return gst_uri_has_protocol(uri.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), protocol.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).()); |
| 364 | } |
| 365 | |
| 366 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# URIHandlercxx . . $ Gst/URIHandler#::get_protocolcxx . . $ Gst/URIHandler#get_protocol(f09497d1ca15336f).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uri) |
| 367 | { |
| 368 | return Glibcxx . . $ Glib/::convert_return_gchar_ptr_to_ustringcxx . . $ Glib/convert_return_gchar_ptr_to_ustring(e404b3c0cee06cd1).(gst_uri_get_protocol(uri.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).())); |
| 369 | } |
| 370 | |
| 371 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# URIHandlercxx . . $ Gst/URIHandler#::get_locationcxx . . $ Gst/URIHandler#get_location(f09497d1ca15336f).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uri) |
| 372 | { |
| 373 | return Glibcxx . . $ Glib/::convert_return_gchar_ptr_to_ustringcxx . . $ Glib/convert_return_gchar_ptr_to_ustring(e404b3c0cee06cd1).(gst_uri_get_location(uri.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).())); |
| 374 | } |
| 375 | |
| 376 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# URIHandlercxx . . $ Gst/URIHandler#::construct_uricxx . . $ Gst/URIHandler#construct_uri(a085081755b563c5).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& protocol, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& location) |
| 377 | { |
| 378 | return Glibcxx . . $ Glib/::convert_return_gchar_ptr_to_ustringcxx . . $ Glib/convert_return_gchar_ptr_to_ustring(e404b3c0cee06cd1).(gst_uri_construct(protocol.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), location.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).())); |
| 379 | } |
| 380 | |
| 381 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# URIHandlercxx . . $ Gst/URIHandler#::filename_to_uricxx . . $ Gst/URIHandler#filename_to_uri(f09497d1ca15336f).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& filename) |
| 382 | { |
| 383 | GError* gerror = nullptr; |
| 384 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# retvalue = Glibcxx . . $ Glib/::convert_return_gchar_ptr_to_ustringcxx . . $ Glib/convert_return_gchar_ptr_to_ustring(e404b3c0cee06cd1).(gst_filename_to_uri(filename.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), &(gerror))); |
| 385 | if(gerror) |
| 386 | ::Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#::throw_exceptioncxx . . $ Glib/Error#throw_exception(a52d1233dfa6cf57).(gerror); |
| 387 | return retvaluecxx . . $ Glib/ustring#ustring(9ff8f5cb794dfdbf).; |
| 388 | } |
| 389 | |
| 390 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> URIHandlercxx . . $ Gst/URIHandler#::make_element_from_uricxx . . $ Gst/URIHandler#make_element_from_uri(bbbbf6d5e6bfcea1).(const Gstcxx . . $ Gst/::URITypecxx . . $ Gst/URIType# type, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uri, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name) |
| 391 | { |
| 392 | GError* gerror = nullptr; |
| 393 | Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#> retvalue = Glibcxx . . $ Glib/::wrapcxx . . $ Glib/wrap(4a5d42c130b18675).(gst_element_make_from_uri((GstURIType)(type), uri.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), name.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), &(gerror))); |
| 394 | if(gerror) |
| 395 | ::Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#::throw_exceptioncxx . . $ Glib/Error#throw_exception(a52d1233dfa6cf57).(gerror); |
| 396 | return retvaluecxx . . $ Glib/RefPtr#RefPtr(560c7fdd049cdfe1).; |
| 397 | } |
| 398 | |
| 399 | URITypecxx . . $ Gst/URIType# URIHandlercxx . . $ Gst/URIHandler#::get_uri_typecxx . . $ Gst/URIHandler#get_uri_type(6b76c8292462901e).() const |
| 400 | { |
| 401 | return ((URITypecxx . . $ Gst/URIType#)(gst_uri_handler_get_uri_type(const_cast<GstURIHandlercxx . . $ GstURIHandler#*>(gobjcxx . . $ Gst/URIHandler#gobj(8fafff96c7fb89f2).())))); |
| 402 | } |
| 403 | |
| 404 | stdcxx . . $ std/::vectorcxx . . $ std/vector#<Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#> URIHandlercxx . . $ Gst/URIHandler#::get_protocolscxx . . $ Gst/URIHandler#get_protocols(875676e3b2759068).() const |
| 405 | { |
| 406 | return Glibcxx . . $ Glib/::ArrayHandlercxx . . $ Glib/ArrayHandler#<Glib::ustring>::array_to_vectorcxx . . $ Glib/ArrayHandler#array_to_vector(29018dfb1d4a3af1).(gst_uri_handler_get_protocols(const_cast<GstURIHandlercxx . . $ GstURIHandler#*>(gobjcxx . . $ Gst/URIHandler#gobj(8fafff96c7fb89f2).())), Glibcxx . . $ Glib/::OWNERSHIP_NONEcxx . . $ Glib/OWNERSHIP_NONE.); |
| 407 | } |
| 408 | |
| 409 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# URIHandlercxx . . $ Gst/URIHandler#::get_uricxx . . $ Gst/URIHandler#get_uri(fff0f585954e56f3).() const |
| 410 | { |
| 411 | return Glibcxx . . $ Glib/::convert_return_gchar_ptr_to_ustringcxx . . $ Glib/convert_return_gchar_ptr_to_ustring(e404b3c0cee06cd1).(gst_uri_handler_get_uri(const_cast<GstURIHandlercxx . . $ GstURIHandler#*>(gobjcxx . . $ Gst/URIHandler#gobj(8fafff96c7fb89f2).()))); |
| 412 | } |
| 413 | |
| 414 | bool URIHandlercxx . . $ Gst/URIHandler#::set_uricxx . . $ Gst/URIHandler#set_uri(7186ea5d16af43ac).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uri) |
| 415 | { |
| 416 | GError* gerror = nullptr; |
| 417 | bool retvalue = gst_uri_handler_set_uri(gobjcxx . . $ Gst/URIHandler#gobj(8a793203d3a54a9b).(), uri.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(), &(gerror)); |
| 418 | if(gerror) |
| 419 | ::Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#::throw_exceptioncxx . . $ Glib/Error#throw_exception(a52d1233dfa6cf57).(gerror); |
| 420 | return retvalue; |
| 421 | } |
| 422 | |
| 423 | |
| 424 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# Gstcxx . . $ Gst/::URIHandlercxx . . $ Gst/URIHandler#::get_uri_vfunccxx . . $ Gst/URIHandler#get_uri_vfunc(fff0f585954e56f3).() const |
| 425 | { |
| 426 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/URIHandler#BaseClassType#*>( |
| 427 | g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). |
| 428 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_), CppObjectTypecxx . . $ Gst/URIHandler#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).()) // Get the interface. |
| 429 | ) ); |
| 430 | |
| 431 | if(base && base->get_uricxx . . $ _GstURIHandlerInterface#get_uri.) |
| 432 | { |
| 433 | Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring# retval(Glibcxx . . $ Glib/::convert_const_gchar_ptr_to_ustringcxx . . $ Glib/convert_const_gchar_ptr_to_ustring(cf5f32d7f0671127).((*base->get_uricxx . . $ _GstURIHandlerInterface#get_uri.)(const_cast<GstURIHandlercxx . . $ GstURIHandler#*>(gobjcxx . . $ Gst/URIHandler#gobj(8fafff96c7fb89f2).())))); |
| 434 | return retvalcxx . . $ Glib/ustring#ustring(9ff8f5cb794dfdbf).; |
| 435 | } |
| 436 | |
| 437 | using RTypecxx . . $ Gst/URIHandler#get_uri_vfunc(fff0f585954e56f3).RType# = Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#; |
| 438 | return RTypecxx . . $ Glib/ustring#ustring(49f6e7a06ebc5aa8).(); |
| 439 | } |
| 440 | bool Gstcxx . . $ Gst/::URIHandlercxx . . $ Gst/URIHandler#::set_uri_vfunccxx . . $ Gst/URIHandler#set_uri_vfunc(e4aba70b79f269f1).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uri, GError** error) |
| 441 | { |
| 442 | const auto base = static_cast<BaseClassTypecxx . . $ Gst/URIHandler#BaseClassType#*>( |
| 443 | g_type_interface_peek_parent( // Get the parent interface of the interface (The original underlying C interface). |
| 444 | g_type_interface_peek(G_OBJECT_GET_CLASScxx . . $ `<external>/1341695927569185362/gobject.h:89:9`!(gobject_), CppObjectTypecxx . . $ Gst/URIHandler#CppObjectType#::get_typecxx . . $ Gst/URIHandler#get_type(f708dce9a8856c70).()) // Get the interface. |
| 445 | ) ); |
| 446 | |
| 447 | if(base && base->set_uricxx . . $ _GstURIHandlerInterface#set_uri.) |
| 448 | { |
| 449 | bool retval((*base->set_uricxx . . $ _GstURIHandlerInterface#set_uri.)(gobjcxx . . $ Gst/URIHandler#gobj(8a793203d3a54a9b).(),uri.c_strcxx . . $ Glib/ustring#c_str(a9f41ea0e82d88cf).(),error)); |
| 450 | return retval; |
| 451 | } |
| 452 | |
| 453 | using RTypecxx . . $ Gst/URIHandler#set_uri_vfunc(e4aba70b79f269f1).RType# = bool; |
| 454 | return RTypecxx . . $ Gst/URIHandler#set_uri_vfunc(e4aba70b79f269f1).RType#(); |
| 455 | } |
| 456 | |
| 457 | |
| 458 | } // namespace Gst |
| 459 | |
| 460 |