| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | |
| 3 | |
| 4 | #include <glibmm.h> |
| 5 | |
| 6 | #include <gstreamermm/tocsetter.h> |
| 7 | #include <gstreamermm/private/tocsetter_p.h> |
| 8 | |
| 9 | |
| 10 | /* gstreamermm - a C++ wrapper for gstreamer |
| 11 | * |
| 12 | * Copyright 2013-2016 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/handle_error.h> |
| 30 | #include <gstreamermm/toc.h> |
| 31 | |
| 32 | namespace Gst |
| 33 | { |
| 34 | } |
| 35 | |
| 36 | |
| 37 | namespace |
| 38 | { |
| 39 | } // anonymous namespace |
| 40 | |
| 41 | |
| 42 | namespace Glib |
| 43 | { |
| 44 | |
| 45 | Glib::RefPtr<Gst::TocSetter> wrap(GstTocSetter* object, bool take_copy) |
| 46 | { |
| 47 | return Glib::RefPtr<Gst::TocSetter>( dynamic_cast<Gst::TocSetter*> (Glib::wrap_auto_interface<Gst::TocSetter> ((GObject*)(object), take_copy)) ); |
| 48 | //We use dynamic_cast<> in case of multiple inheritance. |
| 49 | } |
| 50 | |
| 51 | } // namespace Glib |
| 52 | |
| 53 | |
| 54 | namespace Gst |
| 55 | { |
| 56 | |
| 57 | |
| 58 | /* The *_Class implementation: */ |
| 59 | |
| 60 | const Glib::Interface_Class& TocSetter_Class::init() |
| 61 | { |
| 62 | if(!gtype_) // create the GType if necessary |
| 63 | { |
| 64 | // Glib::Interface_Class has to know the interface init function |
| 65 | // in order to add interfaces to implementing types. |
| 66 | class_init_func_ = &TocSetter_Class::iface_init_function; |
| 67 | |
| 68 | // We can not derive from another interface, and it is not necessary anyway. |
| 69 | gtype_ = gst_toc_setter_get_type(); |
| 70 | } |
| 71 | |
| 72 | return *this; |
| 73 | } |
| 74 | |
| 75 | void TocSetter_Class::iface_init_function(void* g_iface, void*) |
| 76 | { |
| 77 | const auto klass = static_cast<BaseClassType*>(g_iface); |
| 78 | |
| 79 | //This is just to avoid an "unused variable" warning when there are no vfuncs or signal handlers to connect. |
| 80 | //This is a temporary fix until I find out why I can not seem to derive a GtkFileChooser interface. murrayc |
| 81 | g_assert(klass != nullptr); |
| 82 | |
| 83 | |
| 84 | } |
| 85 | |
| 86 | |
| 87 | Glib::ObjectBase* TocSetter_Class::wrap_new(GObject* object) |
| 88 | { |
| 89 | return new TocSetter((GstTocSetter*)(object)); |
| 90 | } |
| 91 | |
| 92 | |
| 93 | /* The implementation: */ |
| 94 | |
| 95 | TocSetter::TocSetter() |
| 96 | : |
| 97 | Glib::Interface(tocsetter_class_.init()) |
| 98 | {} |
| 99 | |
| 100 | TocSetter::TocSetter(GstTocSetter* castitem) |
| 101 | : |
| 102 | Glib::Interface((GObject*)(castitem)) |
| 103 | {} |
| 104 | |
| 105 | TocSetter::TocSetter(const Glib::Interface_Class& interface_class) |
| 106 | : Glib::Interface(interface_class) |
| 107 | { |
| 108 | } |
| 109 | |
| 110 | TocSetter::TocSetter(TocSetter&& src) noexcept |
| 111 | : Glib::Interface(std::move(src)) |
| 112 | {} |
| 113 | |
| 114 | TocSetter& TocSetter::operator=(TocSetter&& src) noexcept |
| 115 | { |
| 116 | Glib::Interface::operator=(std::move(src)); |
| 117 | return *this; |
| 118 | } |
| 119 | |
| 120 | TocSetter::~TocSetter() noexcept |
| 121 | {} |
| 122 | |
| 123 | // static |
| 124 | void TocSetter::add_interface(GType gtype_implementer) |
| 125 | { |
| 126 | tocsetter_class_.init().add_interface(gtype_implementer); |
| 127 | } |
| 128 | |
| 129 | TocSetter::CppClassType TocSetter::tocsetter_class_; // initialize static member |
| 130 | |
| 131 | GType TocSetter::get_type() |
| 132 | { |
| 133 | return tocsetter_class_.init().get_type(); |
| 134 | } |
| 135 | |
| 136 | |
| 137 | GType TocSetter::get_base_type() |
| 138 | { |
| 139 | return gst_toc_setter_get_type(); |
| 140 | } |
| 141 | |
| 142 | |
| 143 | void TocSetter::set_toc(const Glib::RefPtr<Gst::Toc>& toc) |
| 144 | { |
| 145 | gst_toc_setter_set_toc(gobj(), Glib::unwrap(toc)); |
| 146 | } |
| 147 | |
| 148 | Glib::RefPtr<Gst::Toc> TocSetter::get_toc() const |
| 149 | { |
| 150 | return Glib::wrap(gst_toc_setter_get_toc(const_cast<GstTocSetter*>(gobj()))); |
| 151 | } |
| 152 | |
| 153 | void TocSetter::reset() |
| 154 | { |
| 155 | gst_toc_setter_reset(gobj()); |
| 156 | } |
| 157 | |
| 158 | |
| 159 | } // namespace Gst |
| 160 | |
| 161 |