| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/typefindfactory.h> |
| 7 | #include <gstreamermm/private/typefindfactory_p.h> |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2009 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 <gstreamermm/caps.h> |
| 30 | #include <gstreamermm/typefind.h> |
| 31 | |
| 32 | |
| 33 | namespace |
| 34 | { |
| 35 | } // anonymous namespace |
| 36 | |
| 37 | |
| 38 | namespace Glib |
| 39 | { |
| 40 | |
| 41 | Glib::RefPtr<Gst::TypeFindFactory> wrap(GstTypeFindFactory* object, bool take_copy) |
| 42 | { |
| 43 | return Glib::RefPtr<Gst::TypeFindFactory>( dynamic_cast<Gst::TypeFindFactory*> (Glib::wrap_auto ((GObject*)(object), take_copy)) ); |
| 44 | //We use dynamic_cast<> in case of multiple inheritance. |
| 45 | } |
| 46 | |
| 47 | } /* namespace Glib */ |
| 48 | |
| 49 | |
| 50 | namespace Gst |
| 51 | { |
| 52 | |
| 53 | |
| 54 | /* The *_Class implementation: */ |
| 55 | |
| 56 | const Glib::Class& TypeFindFactory_Class::init() |
| 57 | { |
| 58 | if(!gtype_) // create the GType if necessary |
| 59 | { |
| 60 | // Glib::Class has to know the class init function to clone custom types. |
| 61 | class_init_func_ = &TypeFindFactory_Class::class_init_function; |
| 62 | |
| 63 | // This is actually just optimized away, apparently with no harm. |
| 64 | // Make sure that the parent type has been created. |
| 65 | //CppClassParent::CppObjectType::get_type(); |
| 66 | |
| 67 | // Create the wrapper type, with the same class/instance size as the base type. |
| 68 | register_derived_type(gst_type_find_factory_get_type()); |
| 69 | |
| 70 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 71 | |
| 72 | } |
| 73 | |
| 74 | return *this; |
| 75 | } |
| 76 | |
| 77 | |
| 78 | void TypeFindFactory_Class::class_init_function(void* g_class, void* class_data) |
| 79 | { |
| 80 | const auto klass = static_cast<BaseClassType*>(g_class); |
| 81 | CppClassParent::class_init_function(klass, class_data); |
| 82 | |
| 83 | |
| 84 | } |
| 85 | |
| 86 | |
| 87 | Glib::ObjectBase* TypeFindFactory_Class::wrap_new(GObject* object) |
| 88 | { |
| 89 | return new TypeFindFactory((GstTypeFindFactory*)object); |
| 90 | } |
| 91 | |
| 92 | |
| 93 | /* The implementation: */ |
| 94 | |
| 95 | GstTypeFindFactory* TypeFindFactory::gobj_copy() |
| 96 | { |
| 97 | reference(); |
| 98 | return gobj(); |
| 99 | } |
| 100 | |
| 101 | TypeFindFactory::TypeFindFactory(const Glib::ConstructParams& construct_params) |
| 102 | : |
| 103 | PluginFeature(construct_params) |
| 104 | { |
| 105 | |
| 106 | } |
| 107 | |
| 108 | TypeFindFactory::TypeFindFactory(GstTypeFindFactory* castitem) |
| 109 | : |
| 110 | PluginFeature((GstPluginFeature*)(castitem)) |
| 111 | {} |
| 112 | |
| 113 | |
| 114 | TypeFindFactory::TypeFindFactory(TypeFindFactory&& src) noexcept |
| 115 | : PluginFeature(std::move(src)) |
| 116 | {} |
| 117 | |
| 118 | TypeFindFactory& TypeFindFactory::operator=(TypeFindFactory&& src) noexcept |
| 119 | { |
| 120 | PluginFeature::operator=(std::move(src)); |
| 121 | return *this; |
| 122 | } |
| 123 | |
| 124 | |
| 125 | TypeFindFactory::~TypeFindFactory() noexcept |
| 126 | {} |
| 127 | |
| 128 | |
| 129 | TypeFindFactory::CppClassType TypeFindFactory::typefindfactory_class_; // initialize static member |
| 130 | |
| 131 | GType TypeFindFactory::get_type() |
| 132 | { |
| 133 | return typefindfactory_class_.init().get_type(); |
| 134 | } |
| 135 | |
| 136 | |
| 137 | GType TypeFindFactory::get_base_type() |
| 138 | { |
| 139 | return gst_type_find_factory_get_type(); |
| 140 | } |
| 141 | |
| 142 | |
| 143 | Glib::ListHandle< Glib::RefPtr<Gst::TypeFindFactory> > TypeFindFactory::get_list() |
| 144 | { |
| 145 | return Glib::ListHandle< Glib::RefPtr<Gst::TypeFindFactory> >(gst_type_find_factory_get_list(), Glib::OWNERSHIP_DEEP); |
| 146 | } |
| 147 | |
| 148 | std::vector<Glib::ustring> TypeFindFactory::get_extensions() const |
| 149 | { |
| 150 | return Glib::ArrayHandler<Glib::ustring>::array_to_vector(gst_type_find_factory_get_extensions(const_cast<GstTypeFindFactory*>(gobj())), Glib::OWNERSHIP_NONE); |
| 151 | } |
| 152 | |
| 153 | Glib::RefPtr<Gst::Caps> TypeFindFactory::get_caps() |
| 154 | { |
| 155 | return Glib::wrap(gst_type_find_factory_get_caps(gobj())); |
| 156 | } |
| 157 | |
| 158 | Glib::RefPtr<const Gst::Caps> TypeFindFactory::get_caps() const |
| 159 | { |
| 160 | return const_cast<TypeFindFactory*>(this)->get_caps(); |
| 161 | } |
| 162 | |
| 163 | void TypeFindFactory::call_slot(Gst::TypeFind& find) |
| 164 | { |
| 165 | gst_type_find_factory_call_function(gobj(), find.gobj()); |
| 166 | } |
| 167 | |
| 168 | bool TypeFindFactory::has_function() const |
| 169 | { |
| 170 | return gst_type_find_factory_has_function(const_cast<GstTypeFindFactory*>(gobj())); |
| 171 | } |
| 172 | |
| 173 | |
| 174 | } // namespace Gst |
| 175 | |
| 176 |