| 1 | // Generated by gmmproc 2.50.1 -- DO NOT MODIFY! |
| 2 | |
| 3 | |
| 4 | #include <gstreamermmconfig.h> |
| 5 | #ifndef GSTREAMERMM_DISABLE_DEPRECATED |
| 6 | |
| 7 | |
| 8 | #include <glibmm.h> |
| 9 | |
| 10 | #include <gstreamermm/queue.h> |
| 11 | #include <gstreamermm/private/queue_p.h> |
| 12 | |
| 13 | |
| 14 | // Generated by generate_plugin_gmmproc_file. Don't edit this file. |
| 15 | |
| 16 | |
| 17 | extern "C" |
| 18 | { |
| 19 | |
| 20 | static GType gst_queue_leaky_get_type() |
| 21 | { |
| 22 | static GType const type = g_type_from_name("GstQueueLeaky"); |
| 23 | return type; |
| 24 | } |
| 25 | |
| 26 | GType gst_queue_gstreamermm_get_type() |
| 27 | { |
| 28 | static GType type = 0; |
| 29 | GstElementFactory* factory = 0; |
| 30 | GstPluginFeature* feature = 0; |
| 31 | |
| 32 | if(!type) |
| 33 | { |
| 34 | factory = gst_element_factory_find("queue"); |
| 35 | // Make sure that the feature is actually loaded: |
| 36 | if(factory) |
| 37 | { |
| 38 | feature = |
| 39 | gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory)); |
| 40 | |
| 41 | g_object_unref(factory); |
| 42 | factory = GST_ELEMENT_FACTORY(feature); |
| 43 | type = gst_element_factory_get_element_type(factory); |
| 44 | g_object_unref(factory); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | return type; |
| 49 | } |
| 50 | |
| 51 | } // extern "C" |
| 52 | |
| 53 | namespace Gst |
| 54 | { |
| 55 | |
| 56 | Queue::Queue() |
| 57 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 58 | Glib::ObjectBase(nullptr), |
| 59 | Gst::Element(Glib::ConstructParams(queue_class_.init(), "name",static_cast<char*>(0), nullptr)) |
| 60 | {} |
| 61 | |
| 62 | Queue::Queue(const Glib::ustring& name) |
| 63 | : // Mark this class as non-derived to allow C++ vfuncs to be skipped. |
| 64 | Glib::ObjectBase(nullptr), |
| 65 | Gst::Element(Glib::ConstructParams(queue_class_.init(), "name",name.c_str(), nullptr)) |
| 66 | {} |
| 67 | |
| 68 | } |
| 69 | |
| 70 | namespace |
| 71 | { |
| 72 | |
| 73 | |
| 74 | static const Glib::SignalProxyInfo Queue_signal_underrun_info = |
| 75 | { |
| 76 | "underrun", |
| 77 | (GCallback) &Glib::SignalProxyNormal::slot0_void_callback, |
| 78 | (GCallback) &Glib::SignalProxyNormal::slot0_void_callback |
| 79 | }; |
| 80 | |
| 81 | |
| 82 | static const Glib::SignalProxyInfo Queue_signal_running_info = |
| 83 | { |
| 84 | "running", |
| 85 | (GCallback) &Glib::SignalProxyNormal::slot0_void_callback, |
| 86 | (GCallback) &Glib::SignalProxyNormal::slot0_void_callback |
| 87 | }; |
| 88 | |
| 89 | |
| 90 | static const Glib::SignalProxyInfo Queue_signal_overrun_info = |
| 91 | { |
| 92 | "overrun", |
| 93 | (GCallback) &Glib::SignalProxyNormal::slot0_void_callback, |
| 94 | (GCallback) &Glib::SignalProxyNormal::slot0_void_callback |
| 95 | }; |
| 96 | |
| 97 | |
| 98 | static const Glib::SignalProxyInfo Queue_signal_pushing_info = |
| 99 | { |
| 100 | "pushing", |
| 101 | (GCallback) &Glib::SignalProxyNormal::slot0_void_callback, |
| 102 | (GCallback) &Glib::SignalProxyNormal::slot0_void_callback |
| 103 | }; |
| 104 | |
| 105 | |
| 106 | } // anonymous namespace |
| 107 | |
| 108 | // static |
| 109 | GType Glib::Value<Gst::QueueLeaky>::value_type() |
| 110 | { |
| 111 | return gst_queue_leaky_get_type(); |
| 112 | } |
| 113 | |
| 114 | |
| 115 | namespace Glib |
| 116 | { |
| 117 | |
| 118 | Glib::RefPtr<Gst::Queue> wrap(GstQueue* object, bool take_copy) |
| 119 | { |
| 120 | return Glib::RefPtr<Gst::Queue>( dynamic_cast<Gst::Queue*> (Glib::wrap_auto ((GObject*)(object), take_copy)) ); |
| 121 | //We use dynamic_cast<> in case of multiple inheritance. |
| 122 | } |
| 123 | |
| 124 | } /* namespace Glib */ |
| 125 | |
| 126 | |
| 127 | namespace Gst |
| 128 | { |
| 129 | |
| 130 | |
| 131 | /* The *_Class implementation: */ |
| 132 | |
| 133 | const Glib::Class& Queue_Class::init() |
| 134 | { |
| 135 | if(!gtype_) // create the GType if necessary |
| 136 | { |
| 137 | // Glib::Class has to know the class init function to clone custom types. |
| 138 | class_init_func_ = &Queue_Class::class_init_function; |
| 139 | |
| 140 | // This is actually just optimized away, apparently with no harm. |
| 141 | // Make sure that the parent type has been created. |
| 142 | //CppClassParent::CppObjectType::get_type(); |
| 143 | |
| 144 | // Create the wrapper type, with the same class/instance size as the base type. |
| 145 | register_derived_type(gst_queue_gstreamermm_get_type()); |
| 146 | |
| 147 | // Add derived versions of interfaces, if the C type implements any interfaces: |
| 148 | |
| 149 | } |
| 150 | |
| 151 | return *this; |
| 152 | } |
| 153 | |
| 154 | |
| 155 | void Queue_Class::class_init_function(void* g_class, void* class_data) |
| 156 | { |
| 157 | const auto klass = static_cast<BaseClassType*>(g_class); |
| 158 | CppClassParent::class_init_function(klass, class_data); |
| 159 | |
| 160 | |
| 161 | } |
| 162 | |
| 163 | |
| 164 | Glib::ObjectBase* Queue_Class::wrap_new(GObject* object) |
| 165 | { |
| 166 | return new Queue((GstQueue*)object); |
| 167 | } |
| 168 | |
| 169 | |
| 170 | /* The implementation: */ |
| 171 | |
| 172 | GstQueue* Queue::gobj_copy() |
| 173 | { |
| 174 | reference(); |
| 175 | return gobj(); |
| 176 | } |
| 177 | |
| 178 | Queue::Queue(const Glib::ConstructParams& construct_params) |
| 179 | : |
| 180 | Gst::Element(construct_params) |
| 181 | { |
| 182 | |
| 183 | } |
| 184 | |
| 185 | Queue::Queue(GstQueue* castitem) |
| 186 | : |
| 187 | Gst::Element((GstElement*)(castitem)) |
| 188 | {} |
| 189 | |
| 190 | |
| 191 | Queue::Queue(Queue&& src) noexcept |
| 192 | : Gst::Element(std::move(src)) |
| 193 | {} |
| 194 | |
| 195 | Queue& Queue::operator=(Queue&& src) noexcept |
| 196 | { |
| 197 | Gst::Element::operator=(std::move(src)); |
| 198 | return *this; |
| 199 | } |
| 200 | |
| 201 | |
| 202 | Queue::~Queue() noexcept |
| 203 | {} |
| 204 | |
| 205 | |
| 206 | Queue::CppClassType Queue::queue_class_; // initialize static member |
| 207 | |
| 208 | GType Queue::get_type() |
| 209 | { |
| 210 | return queue_class_.init().get_type(); |
| 211 | } |
| 212 | |
| 213 | |
| 214 | GType Queue::get_base_type() |
| 215 | { |
| 216 | return gst_queue_gstreamermm_get_type(); |
| 217 | } |
| 218 | |
| 219 | |
| 220 | Glib::RefPtr<Queue> Queue::create() |
| 221 | { |
| 222 | return Glib::RefPtr<Queue>( new Queue() ); |
| 223 | } |
| 224 | |
| 225 | Glib::RefPtr<Queue> Queue::create(const Glib::ustring& name) |
| 226 | { |
| 227 | return Glib::RefPtr<Queue>( new Queue(name) ); |
| 228 | } |
| 229 | |
| 230 | |
| 231 | Glib::SignalProxy< void > Queue::signal_underrun() |
| 232 | { |
| 233 | return Glib::SignalProxy< void >(this, &Queue_signal_underrun_info); |
| 234 | } |
| 235 | |
| 236 | |
| 237 | Glib::SignalProxy< void > Queue::signal_running() |
| 238 | { |
| 239 | return Glib::SignalProxy< void >(this, &Queue_signal_running_info); |
| 240 | } |
| 241 | |
| 242 | |
| 243 | Glib::SignalProxy< void > Queue::signal_overrun() |
| 244 | { |
| 245 | return Glib::SignalProxy< void >(this, &Queue_signal_overrun_info); |
| 246 | } |
| 247 | |
| 248 | |
| 249 | Glib::SignalProxy< void > Queue::signal_pushing() |
| 250 | { |
| 251 | return Glib::SignalProxy< void >(this, &Queue_signal_pushing_info); |
| 252 | } |
| 253 | |
| 254 | |
| 255 | Glib::PropertyProxy_ReadOnly< guint > Queue::property_current_level_buffers() const |
| 256 | { |
| 257 | return Glib::PropertyProxy_ReadOnly< guint >(this, "current-level-buffers"); |
| 258 | } |
| 259 | |
| 260 | Glib::PropertyProxy_ReadOnly< guint > Queue::property_current_level_bytes() const |
| 261 | { |
| 262 | return Glib::PropertyProxy_ReadOnly< guint >(this, "current-level-bytes"); |
| 263 | } |
| 264 | |
| 265 | Glib::PropertyProxy_ReadOnly< guint64 > Queue::property_current_level_time() const |
| 266 | { |
| 267 | return Glib::PropertyProxy_ReadOnly< guint64 >(this, "current-level-time"); |
| 268 | } |
| 269 | |
| 270 | Glib::PropertyProxy< guint > Queue::property_max_size_buffers() |
| 271 | { |
| 272 | return Glib::PropertyProxy< guint >(this, "max-size-buffers"); |
| 273 | } |
| 274 | |
| 275 | Glib::PropertyProxy_ReadOnly< guint > Queue::property_max_size_buffers() const |
| 276 | { |
| 277 | return Glib::PropertyProxy_ReadOnly< guint >(this, "max-size-buffers"); |
| 278 | } |
| 279 | |
| 280 | Glib::PropertyProxy< guint > Queue::property_max_size_bytes() |
| 281 | { |
| 282 | return Glib::PropertyProxy< guint >(this, "max-size-bytes"); |
| 283 | } |
| 284 | |
| 285 | Glib::PropertyProxy_ReadOnly< guint > Queue::property_max_size_bytes() const |
| 286 | { |
| 287 | return Glib::PropertyProxy_ReadOnly< guint >(this, "max-size-bytes"); |
| 288 | } |
| 289 | |
| 290 | Glib::PropertyProxy< guint64 > Queue::property_max_size_time() |
| 291 | { |
| 292 | return Glib::PropertyProxy< guint64 >(this, "max-size-time"); |
| 293 | } |
| 294 | |
| 295 | Glib::PropertyProxy_ReadOnly< guint64 > Queue::property_max_size_time() const |
| 296 | { |
| 297 | return Glib::PropertyProxy_ReadOnly< guint64 >(this, "max-size-time"); |
| 298 | } |
| 299 | |
| 300 | Glib::PropertyProxy< guint > Queue::property_min_threshold_buffers() |
| 301 | { |
| 302 | return Glib::PropertyProxy< guint >(this, "min-threshold-buffers"); |
| 303 | } |
| 304 | |
| 305 | Glib::PropertyProxy_ReadOnly< guint > Queue::property_min_threshold_buffers() const |
| 306 | { |
| 307 | return Glib::PropertyProxy_ReadOnly< guint >(this, "min-threshold-buffers"); |
| 308 | } |
| 309 | |
| 310 | Glib::PropertyProxy< guint > Queue::property_min_threshold_bytes() |
| 311 | { |
| 312 | return Glib::PropertyProxy< guint >(this, "min-threshold-bytes"); |
| 313 | } |
| 314 | |
| 315 | Glib::PropertyProxy_ReadOnly< guint > Queue::property_min_threshold_bytes() const |
| 316 | { |
| 317 | return Glib::PropertyProxy_ReadOnly< guint >(this, "min-threshold-bytes"); |
| 318 | } |
| 319 | |
| 320 | Glib::PropertyProxy< guint64 > Queue::property_min_threshold_time() |
| 321 | { |
| 322 | return Glib::PropertyProxy< guint64 >(this, "min-threshold-time"); |
| 323 | } |
| 324 | |
| 325 | Glib::PropertyProxy_ReadOnly< guint64 > Queue::property_min_threshold_time() const |
| 326 | { |
| 327 | return Glib::PropertyProxy_ReadOnly< guint64 >(this, "min-threshold-time"); |
| 328 | } |
| 329 | |
| 330 | Glib::PropertyProxy< Gst::QueueLeaky > Queue::property_leaky() |
| 331 | { |
| 332 | return Glib::PropertyProxy< Gst::QueueLeaky >(this, "leaky"); |
| 333 | } |
| 334 | |
| 335 | Glib::PropertyProxy_ReadOnly< Gst::QueueLeaky > Queue::property_leaky() const |
| 336 | { |
| 337 | return Glib::PropertyProxy_ReadOnly< Gst::QueueLeaky >(this, "leaky"); |
| 338 | } |
| 339 | |
| 340 | Glib::PropertyProxy< bool > Queue::property_silent() |
| 341 | { |
| 342 | return Glib::PropertyProxy< bool >(this, "silent"); |
| 343 | } |
| 344 | |
| 345 | Glib::PropertyProxy_ReadOnly< bool > Queue::property_silent() const |
| 346 | { |
| 347 | return Glib::PropertyProxy_ReadOnly< bool >(this, "silent"); |
| 348 | } |
| 349 | |
| 350 | Glib::PropertyProxy< bool > Queue::property_flush_on_eos() |
| 351 | { |
| 352 | return Glib::PropertyProxy< bool >(this, "flush-on-eos"); |
| 353 | } |
| 354 | |
| 355 | Glib::PropertyProxy_ReadOnly< bool > Queue::property_flush_on_eos() const |
| 356 | { |
| 357 | return Glib::PropertyProxy_ReadOnly< bool >(this, "flush-on-eos"); |
| 358 | } |
| 359 | |
| 360 | |
| 361 | } // namespace Gst |
| 362 | |
| 363 | #endif // GSTREAMERMM_DISABLE_DEPRECATED |
| 364 | |
| 365 |