Debian Codegraph @

gstreamer/gstreamermm/netclientclock.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_NETCLIENTCLOCK_H
3 #define _GSTREAMERMM_NETCLIENTCLOCK_H
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2016 The gstreamermm Development Team
12 *
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Lesser General Public
15 * License as published by the Free Software Foundation; either
16 * version 2.1 of the License, or (at your option) any later version.
17 *
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Lesser General Public License for more details.
22 *
23 * You should have received a copy of the GNU Lesser General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 */
27
28 #include <gstreamermm/systemclock.h>
29
30
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
32 using GstNetClientClock = struct _GstNetClientClock;
33 using GstNetClientClockClass = struct _GstNetClientClockClass;
34 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
35
36
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 namespace Gst
39 { class NetClientClock_Class; } // namespace Gst
40 #endif //DOXYGEN_SHOULD_SKIP_THIS
41
42 namespace Gst
43 {
44
45 class Bus;
46
47 /** Special clock that synchronizes to a remote time provider.
48 *
49 * Gst::NetClientClock implements a custom Gst::Clock that synchronizes its time
50 * to a remote time provider such as Gst::NetTimeProvider. Gst::NtpClock
51 * implements a Gst::Clock that synchronizes its time to a remote NTPv4 server.
52 *
53 * A new clock is created with create() or gst_ntp_clock_new(), which takes
54 * the address and port of the remote time provider along with a name and an
55 * initial time.
56 *
57 * This clock will poll the time provider and will update its calibration
58 * parameters based on the local and remote observations.
59 *
60 * The "round-trip" property limits the maximum round trip packets can take.
61 *
62 * Various parameters of the clock can be configured with the parent Gst::Clock
63 * "timeout", "window-size" and "window-threshold" object properties.
64 *
65 * A Gst::NetClientClock and Gst::NtpClock is typically set on a Gst::Pipeline with
66 * Gst::Pipeline::use_clock().
67 *
68 * If you set a Gst::Bus on the clock via the "bus" object property, it will
69 * send Gst::MESSAGE_ELEMENT messages with an attached Gst::Structure containing
70 * statistics about clock accuracy and network traffic.
71 *
72 * Last reviewed on 2016-12-02 (1.8.1)
73 */
74
75 class NetClientClock : public SystemClock
76 {
77
78 #ifndef DOXYGEN_SHOULD_SKIP_THIS
79
80 public:
81 using CppObjectType = NetClientClock;
82 using CppClassType = NetClientClock_Class;
83 using BaseObjectType = GstNetClientClock;
84 using BaseClassType = GstNetClientClockClass;
85
86 // noncopyable
87 NetClientClock(const NetClientClock&) = delete;
88 NetClientClock& operator=(const NetClientClock&) = delete;
89
90 private: friend class NetClientClock_Class;
91 static CppClassType netclientclock_class_;
92
93 protected:
94 explicit NetClientClock(const Glib::ConstructParams& construct_params);
95 explicit NetClientClock(GstNetClientClock* castitem);
96
97 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
98
99 public:
100
101 NetClientClock(NetClientClock&& src) noexcept;
102 NetClientClock& operator=(NetClientClock&& src) noexcept;
103
104 ~NetClientClock() noexcept override;
105
106 /** Get the GType for this class, for use with the underlying GObject type system.
107 */
108 static GType get_type() G_GNUC_CONST;
109
110 #ifndef DOXYGEN_SHOULD_SKIP_THIS
111
112
113 static GType get_base_type() G_GNUC_CONST;
114 #endif
115
116 ///Provides access to the underlying C GObject.
117 GstNetClientClock* gobj() { return reinterpret_cast<GstNetClientClock*>(gobject_); }
118
119 ///Provides access to the underlying C GObject.
120 const GstNetClientClock* gobj() const { return reinterpret_cast<GstNetClientClock*>(gobject_); }
121
122 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
123 GstNetClientClock* gobj_copy();
124
125 private:
126
127
128 protected:
129 NetClientClock(const Glib::ustring& name, const Glib::ustring& address, int remote_port, Gst::ClockTime base_time);
130
131 public:
132
133 static Glib::RefPtr<NetClientClock> create(const Glib::ustring& name, const Glib::ustring& remote_address, int remote_port, Gst::ClockTime base_time);
134
135
136 /** The IP address of the machine providing a time server.
137 *
138 * @return A PropertyProxy that allows you to get or set the value of the property,
139 * or receive notification when the value of the property changes.
140 */
141 Glib::PropertyProxy< Glib::ustring > property_address() ;
142
143 /** The IP address of the machine providing a time server.
144 *
145 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
146 * or receive notification when the value of the property changes.
147 */
148 Glib::PropertyProxy_ReadOnly< Glib::ustring > property_address() const;
149
150 /** Initial time that is reported before synchronization.
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< guint64 > property_base_time() const;
156
157
158 /** A GstBus on which to send clock status information.
159 *
160 * @return A PropertyProxy that allows you to get or set the value of the property,
161 * or receive notification when the value of the property changes.
162 */
163 Glib::PropertyProxy< Glib::RefPtr<Gst::Bus> > property_bus() ;
164
165 /** A GstBus on which to send clock status information.
166 *
167 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
168 * or receive notification when the value of the property changes.
169 */
170 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Bus> > property_bus() const;
171
172 /** Internal clock that directly slaved to the remote clock.
173 *
174 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
175 * or receive notification when the value of the property changes.
176 */
177 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Gst::Clock> > property_internal_clock() const;
178
179
180 /** Minimum polling interval for packets, in nanoseconds(0 = no limit).
181 *
182 * @return A PropertyProxy that allows you to get or set the value of the property,
183 * or receive notification when the value of the property changes.
184 */
185 Glib::PropertyProxy< guint64 > property_minimum_update_interval() ;
186
187 /** Minimum polling interval for packets, in nanoseconds(0 = no limit).
188 *
189 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
190 * or receive notification when the value of the property changes.
191 */
192 Glib::PropertyProxy_ReadOnly< guint64 > property_minimum_update_interval() const;
193
194 /** The port on which the remote server is listening.
195 *
196 * @return A PropertyProxy that allows you to get or set the value of the property,
197 * or receive notification when the value of the property changes.
198 */
199 Glib::PropertyProxy< int > property_port() ;
200
201 /** The port on which the remote server is listening.
202 *
203 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
204 * or receive notification when the value of the property changes.
205 */
206 Glib::PropertyProxy_ReadOnly< int > property_port() const;
207
208 /** Maximum tolerable round-trip interval for packets, in nanoseconds (0 = no limit).
209 *
210 * @return A PropertyProxy that allows you to get or set the value of the property,
211 * or receive notification when the value of the property changes.
212 */
213 Glib::PropertyProxy< guint64 > property_round_trip_limit() ;
214
215 /** Maximum tolerable round-trip interval for packets, in nanoseconds (0 = no limit).
216 *
217 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
218 * or receive notification when the value of the property changes.
219 */
220 Glib::PropertyProxy_ReadOnly< guint64 > property_round_trip_limit() const;
221
222
223 public:
224
225 public:
226 //C++ methods used to invoke GTK+ virtual functions:
227
228 protected:
229 //GTK+ Virtual Functions (override these to change behaviour):
230
231 //Default Signal Handlers::
232
233
234 };
235
236 } //namespace Gst
237
238
239 namespace Glib
240 {
241 /** A Glib::wrap() method for this object.
242 *
243 * @param object The C instance.
244 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
245 * @result A C++ instance that wraps this C instance.
246 *
247 * @relates Gst::NetClientClock
248 */
249 Glib::RefPtr<Gst::NetClientClock> wrap(GstNetClientClock* object, bool take_copy = false);
250 }
251
252
253 #endif /* _GSTREAMERMM_NETCLIENTCLOCK_H */
254