Debian Codegraph @

gstreamer/gstreamermm/systemclock.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_SYSTEMCLOCK_H
3 #define _GSTREAMERMM_SYSTEMCLOCK_H
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2008 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/clock.h>
29
30
31 #ifndef DOXYGEN_SHOULD_SKIP_THIS
32 using GstSystemClock = struct _GstSystemClock;
33 using GstSystemClockClass = struct _GstSystemClockClass;
34 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
35
36
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 namespace Gst
39 { class SystemClock_Class; } // namespace Gst
40 #endif //DOXYGEN_SHOULD_SKIP_THIS
41
42 namespace Gst
43 {
44
45 /** A default clock that uses the current system time.
46 * The GStreamer core provides a Gst::SystemClock based on the system time.
47 * Asynchronous callbacks are scheduled from an internal thread.
48 *
49 * Gst::Clock implementors are encouraged to subclass this systemclock as it
50 * implements the async notification.
51 *
52 * Subclasses can however override all of the important methods for sync and
53 * async notifications to implement their own callback methods or blocking wait
54 * operations.
55 *
56 * Last reviewed on 2006-03-08 (0.10.4)
57 */
58
59 class SystemClock : public Clock
60 {
61
62 #ifndef DOXYGEN_SHOULD_SKIP_THIS
63
64 public:
65 using CppObjectType = SystemClock;
66 using CppClassType = SystemClock_Class;
67 using BaseObjectType = GstSystemClock;
68 using BaseClassType = GstSystemClockClass;
69
70 // noncopyable
71 SystemClock(const SystemClock&) = delete;
72 SystemClock& operator=(const SystemClock&) = delete;
73
74 private: friend class SystemClock_Class;
75 static CppClassType systemclock_class_;
76
77 protected:
78 explicit SystemClock(const Glib::ConstructParams& construct_params);
79 explicit SystemClock(GstSystemClock* castitem);
80
81 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
82
83 public:
84
85 SystemClock(SystemClock&& src) noexcept;
86 SystemClock& operator=(SystemClock&& src) noexcept;
87
88 ~SystemClock() noexcept override;
89
90 /** Get the GType for this class, for use with the underlying GObject type system.
91 */
92 static GType get_type() G_GNUC_CONST;
93
94 #ifndef DOXYGEN_SHOULD_SKIP_THIS
95
96
97 static GType get_base_type() G_GNUC_CONST;
98 #endif
99
100 ///Provides access to the underlying C GObject.
101 GstSystemClock* gobj() { return reinterpret_cast<GstSystemClock*>(gobject_); }
102
103 ///Provides access to the underlying C GObject.
104 const GstSystemClock* gobj() const { return reinterpret_cast<GstSystemClock*>(gobject_); }
105
106 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
107 GstSystemClock* gobj_copy();
108
109 private:
110
111
112 protected:
113 SystemClock();
114
115 public:
116
117 /** Get a handle to the default system clock. The refcount of the
118 * clock will be increased so you need to unref the clock after
119 * usage.
120 *
121 * @return The default clock.
122 *
123 * MT safe.
124 */
125 static Glib::RefPtr<Gst::Clock> obtain();
126
127
128 public:
129
130 public:
131 //C++ methods used to invoke GTK+ virtual functions:
132
133 protected:
134 //GTK+ Virtual Functions (override these to change behaviour):
135
136 //Default Signal Handlers::
137
138
139 };
140
141 } //namespace Gst
142
143
144 namespace Glib
145 {
146 /** A Glib::wrap() method for this object.
147 *
148 * @param object The C instance.
149 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
150 * @result A C++ instance that wraps this C instance.
151 *
152 * @relates Gst::SystemClock
153 */
154 Glib::RefPtr<Gst::SystemClock> wrap(GstSystemClock* object, bool take_copy = false);
155 }
156
157
158 #endif /* _GSTREAMERMM_SYSTEMCLOCK_H */
159