Debian Codegraph @

gstreamer/gstreamermm/socketsrc.cc

raw symbols SCIP
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/socketsrc.h>
11 #include <gstreamermm/private/socketsrc_p.h>
12
13
14 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
15
16
17 extern "C"
18 {
19
20 GType gst_socket_src_gstreamermm_get_type()
21 {
22 static GType type = 0;
23 GstElementFactory* factory = 0;
24 GstPluginFeature* feature = 0;
25
26 if(!type)
27 {
28 factory = gst_element_factory_find("socketsrc");
29 // Make sure that the feature is actually loaded:
30 if(factory)
31 {
32 feature =
33 gst_plugin_feature_load(GST_PLUGIN_FEATURE(factory));
34
35 g_object_unref(factory);
36 factory = GST_ELEMENT_FACTORY(feature);
37 type = gst_element_factory_get_element_type(factory);
38 g_object_unref(factory);
39 }
40 }
41
42 return type;
43 }
44
45 } // extern "C"
46
47 namespace Gst
48 {
49
50 SocketSrc::SocketSrc()
51 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
52 Glib::ObjectBase(nullptr),
53 Gst::PushSrc(Glib::ConstructParams(socketsrc_class_.init(), "name",static_cast<char*>(0), nullptr))
54 {}
55
56 SocketSrc::SocketSrc(const Glib::ustring& name)
57 : // Mark this class as non-derived to allow C++ vfuncs to be skipped.
58 Glib::ObjectBase(nullptr),
59 Gst::PushSrc(Glib::ConstructParams(socketsrc_class_.init(), "name",name.c_str(), nullptr))
60 {}
61
62 }
63
64 namespace
65 {
66
67
68 static const Glib::SignalProxyInfo SocketSrc_signal_connection_closed_by_peer_info =
69 {
70 "connection-closed-by-peer",
71 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
72 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
73 };
74
75
76 } // anonymous namespace
77
78
79 namespace Glib
80 {
81
82 Glib::RefPtr<Gst::SocketSrc> wrap(GstSocketSrc* object, bool take_copy)
83 {
84 return Glib::RefPtr<Gst::SocketSrc>( dynamic_cast<Gst::SocketSrc*> (Glib::wrap_auto ((GObject*)(object), take_copy)) );
85 //We use dynamic_cast<> in case of multiple inheritance.
86 }
87
88 } /* namespace Glib */
89
90
91 namespace Gst
92 {
93
94
95 /* The *_Class implementation: */
96
97 const Glib::Class& SocketSrc_Class::init()
98 {
99 if(!gtype_) // create the GType if necessary
100 {
101 // Glib::Class has to know the class init function to clone custom types.
102 class_init_func_ = &SocketSrc_Class::class_init_function;
103
104 // This is actually just optimized away, apparently with no harm.
105 // Make sure that the parent type has been created.
106 //CppClassParent::CppObjectType::get_type();
107
108 // Create the wrapper type, with the same class/instance size as the base type.
109 register_derived_type(gst_socket_src_gstreamermm_get_type());
110
111 // Add derived versions of interfaces, if the C type implements any interfaces:
112
113 }
114
115 return *this;
116 }
117
118
119 void SocketSrc_Class::class_init_function(void* g_class, void* class_data)
120 {
121 const auto klass = static_cast<BaseClassType*>(g_class);
122 CppClassParent::class_init_function(klass, class_data);
123
124
125 }
126
127
128 Glib::ObjectBase* SocketSrc_Class::wrap_new(GObject* object)
129 {
130 return new SocketSrc((GstSocketSrc*)object);
131 }
132
133
134 /* The implementation: */
135
136 GstSocketSrc* SocketSrc::gobj_copy()
137 {
138 reference();
139 return gobj();
140 }
141
142 SocketSrc::SocketSrc(const Glib::ConstructParams& construct_params)
143 :
144 Gst::PushSrc(construct_params)
145 {
146
147 }
148
149 SocketSrc::SocketSrc(GstSocketSrc* castitem)
150 :
151 Gst::PushSrc((GstPushSrc*)(castitem))
152 {}
153
154
155 SocketSrc::SocketSrc(SocketSrc&& src) noexcept
156 : Gst::PushSrc(std::move(src))
157 {}
158
159 SocketSrc& SocketSrc::operator=(SocketSrc&& src) noexcept
160 {
161 Gst::PushSrc::operator=(std::move(src));
162 return *this;
163 }
164
165
166 SocketSrc::~SocketSrc() noexcept
167 {}
168
169
170 SocketSrc::CppClassType SocketSrc::socketsrc_class_; // initialize static member
171
172 GType SocketSrc::get_type()
173 {
174 return socketsrc_class_.init().get_type();
175 }
176
177
178 GType SocketSrc::get_base_type()
179 {
180 return gst_socket_src_gstreamermm_get_type();
181 }
182
183
184 Glib::RefPtr<SocketSrc> SocketSrc::create()
185 {
186 return Glib::RefPtr<SocketSrc>( new SocketSrc() );
187 }
188
189 Glib::RefPtr<SocketSrc> SocketSrc::create(const Glib::ustring& name)
190 {
191 return Glib::RefPtr<SocketSrc>( new SocketSrc(name) );
192 }
193
194
195 Glib::SignalProxy< void > SocketSrc::signal_connection_closed_by_peer()
196 {
197 return Glib::SignalProxy< void >(this, &SocketSrc_signal_connection_closed_by_peer_info);
198 }
199
200
201 Glib::PropertyProxy< Glib::RefPtr<Gio::Socket> > SocketSrc::property_socket()
202 {
203 return Glib::PropertyProxy< Glib::RefPtr<Gio::Socket> >(this, "socket");
204 }
205
206 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gio::Socket> > SocketSrc::property_socket() const
207 {
208 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gio::Socket> >(this, "socket");
209 }
210
211 Glib::PropertyProxy< Glib::RefPtr<Gst::Caps> > SocketSrc::property_caps()
212 {
213 return Glib::PropertyProxy< Glib::RefPtr<Gst::Caps> >(this, "caps");
214 }
215
216 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Caps> > SocketSrc::property_caps() const
217 {
218 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Caps> >(this, "caps");
219 }
220
221 Glib::PropertyProxy< bool > SocketSrc::property_send_messages()
222 {
223 return Glib::PropertyProxy< bool >(this, "send-messages");
224 }
225
226 Glib::PropertyProxy_ReadOnly< bool > SocketSrc::property_send_messages() const
227 {
228 return Glib::PropertyProxy_ReadOnly< bool >(this, "send-messages");
229 }
230
231
232 } // namespace Gst
233
234 #endif // GSTREAMERMM_DISABLE_DEPRECATED
235
236