Debian Codegraph @

gstreamer/gstreamermm/socketsrc.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_SOCKETSRC_H
3 #define _GSTREAMERMM_SOCKETSRC_H
4
5 #include <gstreamermmconfig.h>
6
7 #ifndef GSTREAMERMM_DISABLE_DEPRECATED
8
9
10 #include <glibmm/ustring.h>
11 #include <sigc++/sigc++.h>
12
13 // Generated by generate_plugin_gmmproc_file. Don't edit this file.
14
15
16 #include <gstreamermm/pushsrc.h>
17 #include <giomm/socket.h>
18 #include <gstreamermm/caps.h>
19
20
21 #ifndef DOXYGEN_SHOULD_SKIP_THIS
22 using GstSocketSrc = struct _GstSocketSrc;
23 using GstSocketSrcClass = struct _GstSocketSrcClass;
24 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
25
26
27 #ifndef DOXYGEN_SHOULD_SKIP_THIS
28 namespace Gst
29 { class SocketSrc_Class; } // namespace Gst
30 #endif //DOXYGEN_SHOULD_SKIP_THIS
31
32 namespace Gst
33 {
34
35 /** A Wrapper for the socketsrc plugin.
36 * Please note that not all plug-ins are available on all systems so care
37 * must be taken that they exist before they are used otherwise there will
38 * be errors and possibly a crash.
39 *
40 * @ingroup GstPlugins
41 * @deprecated Plugins API is deprecated, and should not be used in a new code.
42 */
43
44 class SocketSrc
45 : public Gst::PushSrc
46 {
47
48 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49
50 public:
51 using CppObjectType = SocketSrc;
52 using CppClassType = SocketSrc_Class;
53 using BaseObjectType = GstSocketSrc;
54 using BaseClassType = GstSocketSrcClass;
55
56 // noncopyable
57 SocketSrc(const SocketSrc&) = delete;
58 SocketSrc& operator=(const SocketSrc&) = delete;
59
60 private: friend class SocketSrc_Class;
61 static CppClassType socketsrc_class_;
62
63 protected:
64 explicit SocketSrc(const Glib::ConstructParams& construct_params);
65 explicit SocketSrc(GstSocketSrc* castitem);
66
67 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
68
69 public:
70
71 SocketSrc(SocketSrc&& src) noexcept;
72 SocketSrc& operator=(SocketSrc&& src) noexcept;
73
74 ~SocketSrc() noexcept override;
75
76 /** Get the GType for this class, for use with the underlying GObject type system.
77 */
78 static GType get_type() G_GNUC_CONST;
79
80 #ifndef DOXYGEN_SHOULD_SKIP_THIS
81
82
83 static GType get_base_type() G_GNUC_CONST;
84 #endif
85
86 ///Provides access to the underlying C GObject.
87 GstSocketSrc* gobj() { return reinterpret_cast<GstSocketSrc*>(gobject_); }
88
89 ///Provides access to the underlying C GObject.
90 const GstSocketSrc* gobj() const { return reinterpret_cast<GstSocketSrc*>(gobject_); }
91
92 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
93 GstSocketSrc* gobj_copy();
94
95 private:
96
97
98 protected:
99 SocketSrc();
100 explicit SocketSrc(const Glib::ustring& name);
101
102 public:
103 /** Creates a new socketsrc plugin with a unique name.
104 */
105
106 static Glib::RefPtr<SocketSrc> create();
107
108
109 /** Creates a new socketsrc plugin with the given name.
110 */
111
112 static Glib::RefPtr<SocketSrc> create(const Glib::ustring& name);
113
114
115 /** The socket to receive packets from.
116 *
117 * @return A PropertyProxy that allows you to get or set the value of the property,
118 * or receive notification when the value of the property changes.
119 */
120 Glib::PropertyProxy< Glib::RefPtr<Gio::Socket> > property_socket() ;
121
122 /** The socket to receive packets from.
123 *
124 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
125 * or receive notification when the value of the property changes.
126 */
127 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gio::Socket> > property_socket() const;
128
129 /** The caps of the source pad.
130 *
131 * @return A PropertyProxy that allows you to get or set the value of the property,
132 * or receive notification when the value of the property changes.
133 */
134 Glib::PropertyProxy< Glib::RefPtr<Gst::Caps> > property_caps() ;
135
136 /** The caps of the source pad.
137 *
138 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
139 * or receive notification when the value of the property changes.
140 */
141 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Caps> > property_caps() const;
142
143 /** If GstNetworkMessage events should be handled.
144 *
145 * @return A PropertyProxy that allows you to get or set the value of the property,
146 * or receive notification when the value of the property changes.
147 */
148 Glib::PropertyProxy< bool > property_send_messages() ;
149
150 /** If GstNetworkMessage events should be handled.
151 *
152 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
153 * or receive notification when the value of the property changes.
154 */
155 Glib::PropertyProxy_ReadOnly< bool > property_send_messages() const;
156
157
158 /**
159 * @par Slot Prototype:
160 * <tt>void on_my_%connection_closed_by_peer()</tt>
161 *
162 */
163
164 Glib::SignalProxy< void > signal_connection_closed_by_peer();
165
166
167 public:
168
169 public:
170 //C++ methods used to invoke GTK+ virtual functions:
171
172 protected:
173 //GTK+ Virtual Functions (override these to change behaviour):
174
175 //Default Signal Handlers::
176
177
178 };
179
180 } // namespace Gst
181
182
183 namespace Glib
184 {
185 /** A Glib::wrap() method for this object.
186 *
187 * @param object The C instance.
188 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
189 * @result A C++ instance that wraps this C instance.
190 *
191 * @relates Gst::SocketSrc
192 */
193 Glib::RefPtr<Gst::SocketSrc> wrap(GstSocketSrc* object, bool take_copy = false);
194 }
195
196
197 #endif // GSTREAMERMM_DISABLE_DEPRECATED
198
199
200 #endif /* _GSTREAMERMM_SOCKETSRC_H */
201