Debian Codegraph @

gstreamer/gstreamermm/discoverer.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/discoverer.h`/
2 #ifndef _GSTREAMERMM_DISCOVERER_H
3 #define _GSTREAMERMM_DISCOVERER_Hcxx . . $ `gstreamer/gstreamermm/discoverer.h:3:9`!
4
5
6 #include <glibmm/ustring.h>
7 #include <sigc++/sigc++.h>
8
9 /* gstreamermm - a C++ wrapper for gstreamer
10 *
11 * Copyright 2011-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 <glibmm/object.h>
29 #include <gstreamermm/clock.h>cxx . . $ `<file>/gstreamer/gstreamermm/clock.h`/
30 #include <gst/pbutils/pbutils.h>
31
32
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 using GstDiscoverercxx . . $ GstDiscoverer# = struct _GstDiscoverercxx . . $ _GstDiscoverer#;
35 using GstDiscovererClasscxx . . $ GstDiscovererClass# = struct _GstDiscovererClasscxx . . $ _GstDiscovererClass#;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37
38
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 namespace Gstcxx . . $ Gst/
41 { class Discoverer_Classcxx . . $ Gst/Discoverer_Class#; } // namespace Gst
42 #endif //DOXYGEN_SHOULD_SKIP_THIS
43
44 namespace Gstcxx . . $ Gst/
45 {
46
47 class DiscovererInfocxx . . $ Gst/DiscovererInfo#;
48 class Elementcxx . . $ Gst/Element#;
49
50 /** Discoverer - Utility for discovering information on URIs.
51 * The Discoverer is a utility object which allows to get as much information
52 * as possible from one or many URIs.
53 *
54 * It provides two APIs, allowing usage in blocking or non-blocking mode.
55 *
56 * The blocking mode just requires calling discover_uri() with the URI one
57 * wishes to discover.
58 *
59 * The non-blocking mode requires a running Glib::MainLoop iterating a
60 * Glib::MainContext, where one connects to the various signals, appends the
61 * URIs to be processed (through discover_uri_async()) and then
62 * asks for the discovery to begin (through start()).
63 * By default this will use the GLib default main context unless you have
64 * set a custom context using Glib::MainContext::push_thread_default().
65 *
66 * All the information is returned in a DiscovererInfo structure.
67 *
68 * Last reviewed on 2016-05-18 (1.8.0)
69 */
70
71 class Discoverercxx . . $ Gst/Discoverer# : public Glibcxx . . $ Glib/::Objectcxx . . $ Glib/Object#
72 {
73
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
75
76 public:
77 using CppObjectTypecxx . . $ Gst/Discoverer#CppObjectType# = Discoverercxx . . $ Gst/Discoverer#;
78 using CppClassTypecxx . . $ Gst/Discoverer#CppClassType# = Discoverer_Classcxx . . $ Gst/Discoverer_Class#;
79 using BaseObjectTypecxx . . $ Gst/Discoverer#BaseObjectType# = GstDiscoverercxx . . $ GstDiscoverer#;
80 using BaseClassTypecxx . . $ Gst/Discoverer#BaseClassType# = GstDiscovererClasscxx . . $ GstDiscovererClass#;
81
82 // noncopyable
83 Discoverercxx . . $ Gst/Discoverer#Discoverer(ae17474d06c7306d).(const Discoverercxx . . $ Gst/Discoverer#&) = delete;
84 Discoverercxx . . $ Gst/Discoverer#& operatorcxx . . $ Gst/Discoverer#`operator=`(733a5c04aeaef53c).=(const Discoverercxx . . $ Gst/Discoverer#&) = delete;
85
86 private: friend class Discoverer_Classcxx . . $ Gst/Discoverer_Class#;
87 static CppClassTypecxx . . $ Gst/Discoverer#CppClassType# discoverer_class_cxx . . $ Gst/Discoverer#discoverer_class_.;
88
89 protected:
90 explicit Discoverercxx . . $ Gst/Discoverer#Discoverer(237165b4a42a691a).(const Glibcxx . . $ Glib/::ConstructParamscxx . . $ Glib/ConstructParams#& construct_params);
91 explicit Discoverercxx . . $ Gst/Discoverer#Discoverer(ba5fa9ff8b389ebf).(GstDiscoverercxx . . $ GstDiscoverer#* castitem);
92
93 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
94
95 public:
96
97 Discoverercxx . . $ Gst/Discoverer#Discoverer(9b2987fbae1327c2).(Discoverercxx . . $ Gst/Discoverer#&& src) noexcept;
98 Discoverercxx . . $ Gst/Discoverer#& operatorcxx . . $ Gst/Discoverer#`operator=`(60dd76dff38857a0).=(Discoverercxx . . $ Gst/Discoverer#&& src) noexcept;
99
100 ~cxx . . $ Gst/Discoverer#`~Discoverer`(ced63f7c635d850d).Discoverercxx . . $ Gst/Discoverer#() noexcept override;
101
102 /** Get the GType for this class, for use with the underlying GObject type system.
103 */
104 static GType get_typecxx . . $ Gst/Discoverer#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `gstreamer/gstreamermm/wrap_init.cc:9:9`!;
105
106 #ifndef DOXYGEN_SHOULD_SKIP_THIS
107
108
109 static GType get_base_typecxx . . $ Gst/Discoverer#get_base_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
110 #endif
111
112 ///Provides access to the underlying C GObject.
113 GstDiscoverercxx . . $ GstDiscoverer#* gobjcxx . . $ Gst/Discoverer#gobj(c4d77fda328490b8).() { return reinterpret_cast<GstDiscoverercxx . . $ GstDiscoverer#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
114
115 ///Provides access to the underlying C GObject.
116 const GstDiscoverercxx . . $ GstDiscoverer#* gobjcxx . . $ Gst/Discoverer#gobj(e7bc86870faab8d6).() const { return reinterpret_cast<GstDiscoverercxx . . $ GstDiscoverer#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
117
118 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
119 GstDiscoverercxx . . $ GstDiscoverer#* gobj_copycxx . . $ Gst/Discoverer#gobj_copy(c4d77fda328490b8).();
120
121 private:
122
123
124 protected:
125 explicit Discoverercxx . . $ Gst/Discoverer#Discoverer(2c44cd906ae4e829).(ClockTimecxx . . $ Gst/ClockTime# timeout);
126
127 public:
128
129 /** Creates a new Gst::Discoverer with the provided timeout.
130 *
131 * @param timeout Timeout per file, in nanoseconds. Allowed are values between
132 * one second (Gst::SECOND) and one hour (3600 * Gst::SECOND).
133 * @param err A pointer to a Error. can be <tt>nullptr</tt>.
134 * @return The new Gst::Discoverer.
135 * If an error occurred when creating the discoverer, @a err will be set
136 * accordingly and <tt>nullptr</tt> will be returned. If @a err is set, the caller must
137 * free it when no longer needed using Glib::error_free().
138 */
139
140
141 static Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Discoverercxx . . $ Gst/Discoverer#> createcxx . . $ Gst/Discoverer#create(dc150e828eeb579c).(ClockTimecxx . . $ Gst/ClockTime# timeout);
142
143
144 /** Allow asynchronous discovering of URIs to take place.
145 * A MainLoop must be available for Gst::Discoverer to properly work in
146 * asynchronous mode.
147 */
148 void startcxx . . $ Gst/Discoverer#start(49f6e7a06ebc5aa8).();
149
150 /** Stop the discovery of any pending URIs and clears the list of
151 * pending URIS (if any).
152 */
153 void stopcxx . . $ Gst/Discoverer#stop(49f6e7a06ebc5aa8).();
154
155 /** Synchronously discovers the given @a uri.
156 *
157 * @param uri The URI to run on.
158 * @param If an error occurred, this field will be filled in.
159 * @return The result of the scanning. Can be <tt>nullptr</tt> if an
160 * error occurred.
161 */
162 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::DiscovererInfocxx . . $ Gst/DiscovererInfo#> discover_uricxx . . $ Gst/Discoverer#discover_uri(45d0bea157927073).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uri);
163
164 /** Appends the given @a uri to the list of URIs to discoverer. The actual
165 * discovery of the @a uri will only take place if start() has
166 * been called.
167 *
168 * @param uri The URI to add.
169 * @return <tt>true</tt> if the @a uri was successfully appended to the list of pending
170 * uris, else <tt>false</tt>.
171 */
172 bool discover_uri_asynccxx . . $ Gst/Discoverer#discover_uri_async(7186ea5d16af43ac).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& uri);
173
174 /** Timeout.
175 *
176 * @return A PropertyProxy that allows you to get or set the value of the property,
177 * or receive notification when the value of the property changes.
178 */
179 Glibcxx . . $ Glib/::PropertyProxycxx . . $ Glib/PropertyProxy#< guint64 > property_timeoutcxx . . $ Gst/Discoverer#property_timeout(d486e8c449033ce8).() ;
180
181 /** Timeout.
182 *
183 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
184 * or receive notification when the value of the property changes.
185 */
186 Glibcxx . . $ Glib/::PropertyProxy_ReadOnlycxx . . $ Glib/PropertyProxy_ReadOnly#< guint64 > property_timeoutcxx . . $ Gst/Discoverer#property_timeout(626cd103ac35282).() const;
187
188
189 /**
190 * @par Slot Prototype:
191 * <tt>void on_my_%discovered(const Glib::RefPtr<Gst::DiscovererInfo>& info, const Glib::Error& error)</tt>
192 *
193 * Will be emitted in async mode when all information on a URI could be
194 * discovered, or an error occurred.
195 *
196 * When an error occurs, @a info might still contain some partial information,
197 * depending on the circumstances of the error.
198 *
199 * @param info The results Gst::DiscovererInfo.
200 */
201
202 Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< void,const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::DiscovererInfocxx . . $ Gst/DiscovererInfo#>&,const Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#& > signal_discoveredcxx . . $ Gst/Discoverer#signal_discovered(40469ae762c25e2a).();
203
204
205 /**
206 * @par Slot Prototype:
207 * <tt>void on_my_%finished()</tt>
208 *
209 * Will be emitted in async mode when all pending URIs have been processed.
210 */
211
212 Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< void > signal_finishedcxx . . $ Gst/Discoverer#signal_finished(5db58c3a758c1880).();
213
214
215 /**
216 * @par Slot Prototype:
217 * <tt>void on_my_%starting()</tt>
218 *
219 * Will be emitted when the discover starts analyzing the pending URIs
220 */
221
222 Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< void > signal_startingcxx . . $ Gst/Discoverer#signal_starting(5db58c3a758c1880).();
223
224
225 /**
226 * @par Slot Prototype:
227 * <tt>void on_my_%source_setup(const Glib::RefPtr<Gst::Element>& source)</tt>
228 *
229 * This signal is emitted after the source element has been created for, so
230 * the URI being discovered, so it can be configured by setting additional
231 * properties (e.g.\ set a proxy server for an http source, or set the device
232 * and read speed for an audio cd source).
233 *
234 * This signal is usually emitted from the context of a GStreamer streaming
235 * thread.
236 *
237 * @param source Source element.
238 */
239
240 Glibcxx . . $ Glib/::SignalProxycxx . . $ Glib/SignalProxy#< void,const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#>& > signal_source_setupcxx . . $ Gst/Discoverer#signal_source_setup(89eed8b771d92eb).();
241
242
243 public:
244
245 public:
246 //C++ methods used to invoke GTK+ virtual functions:
247
248 protected:
249 //GTK+ Virtual Functions (override these to change behaviour):
250
251 //Default Signal Handlers::
252 /// This is a default handler for the signal signal_discovered().
253 virtual void on_discoveredcxx . . $ Gst/Discoverer#on_discovered(ded735bf3cf13b67).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::DiscovererInfocxx . . $ Gst/DiscovererInfo#>& info, const Glibcxx . . $ Glib/::Errorcxx . . $ Glib/Error#& error);
254 /// This is a default handler for the signal signal_finished().
255 virtual void on_finishedcxx . . $ Gst/Discoverer#on_finished(49f6e7a06ebc5aa8).();
256 /// This is a default handler for the signal signal_starting().
257 virtual void on_startingcxx . . $ Gst/Discoverer#on_starting(49f6e7a06ebc5aa8).();
258 /// This is a default handler for the signal signal_source_setup().
259 virtual void on_source_setupcxx . . $ Gst/Discoverer#on_source_setup(5d9012a0f12d5b8).(const Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Elementcxx . . $ Gst/Element#>& source);
260
261
262 };
263
264 } //namespace Gst
265
266
267 namespace Glibcxx . . $ Glib/
268 {
269 /** A Glib::wrap() method for this object.
270 *
271 * @param object The C instance.
272 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
273 * @result A C++ instance that wraps this C instance.
274 *
275 * @relates Gst::Discoverer
276 */
277 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Discoverercxx . . $ Gst/Discoverer#> wrapcxx . . $ Glib/wrap(db8dd8f5f4848aa7).(GstDiscoverercxx . . $ GstDiscoverer#* object, bool take_copy = false);
278 }
279
280
281 #endif /* _GSTREAMERMM_DISCOVERER_H */
282