Debian Codegraph @

gstreamer/gstreamermm/filesink.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2 #ifndef _GSTREAMERMM_FILESINK_H
3 #define _GSTREAMERMM_FILESINK_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/basesink.h>
17 #include <gstreamermm/urihandler.h>
18
19
20 #ifndef DOXYGEN_SHOULD_SKIP_THIS
21 using GstFileSink = struct _GstFileSink;
22 using GstFileSinkClass = struct _GstFileSinkClass;
23 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
24
25
26 #ifndef DOXYGEN_SHOULD_SKIP_THIS
27 namespace Gst
28 { class FileSink_Class; } // namespace Gst
29 #endif //DOXYGEN_SHOULD_SKIP_THIS
30
31 namespace Gst
32 {
33
34 /** @addtogroup gstreamermmEnums gstreamermm Enums and Flags */
35
36 /**
37 *
38 * @ingroup gstreamermmEnums
39 */
40 enum FileSinkBufferMode
41 {
42 FILE_SINK_BUFFER_MODE_DEFAULT = -1,
43 FILE_SINK_BUFFER_MODE_FULL = _IOFBF,
44 FILE_SINK_BUFFER_MODE_LINE = _IOLBF,
45 FILE_SINK_BUFFER_MODE_UNBUFFERED = _IONBF
46 };
47
48 } // namespace Gst
49
50 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 namespace Glib
52 {
53
54 template <>
55 class Value<Gst::FileSinkBufferMode> : public Glib::Value_Enum<Gst::FileSinkBufferMode>
56 {
57 public:
58 static GType value_type() G_GNUC_CONST;
59 };
60
61 } // namespace Glib
62 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
63
64 namespace Gst
65 {
66
67
68 /** A Wrapper for the filesink plugin.
69 * Please note that not all plug-ins are available on all systems so care
70 * must be taken that they exist before they are used otherwise there will
71 * be errors and possibly a crash.
72 *
73 * @ingroup GstPlugins
74 * @deprecated Plugins API is deprecated, and should not be used in a new code.
75 */
76
77 class FileSink
78 : public Gst::BaseSink, public Gst::URIHandler
79 {
80
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82
83 public:
84 using CppObjectType = FileSink;
85 using CppClassType = FileSink_Class;
86 using BaseObjectType = GstFileSink;
87 using BaseClassType = GstFileSinkClass;
88
89 // noncopyable
90 FileSink(const FileSink&) = delete;
91 FileSink& operator=(const FileSink&) = delete;
92
93 private: friend class FileSink_Class;
94 static CppClassType filesink_class_;
95
96 protected:
97 explicit FileSink(const Glib::ConstructParams& construct_params);
98 explicit FileSink(GstFileSink* castitem);
99
100 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
101
102 public:
103
104 FileSink(FileSink&& src) noexcept;
105 FileSink& operator=(FileSink&& src) noexcept;
106
107 ~FileSink() noexcept override;
108
109 /** Get the GType for this class, for use with the underlying GObject type system.
110 */
111 static GType get_type() G_GNUC_CONST;
112
113 #ifndef DOXYGEN_SHOULD_SKIP_THIS
114
115
116 static GType get_base_type() G_GNUC_CONST;
117 #endif
118
119 ///Provides access to the underlying C GObject.
120 GstFileSink* gobj() { return reinterpret_cast<GstFileSink*>(gobject_); }
121
122 ///Provides access to the underlying C GObject.
123 const GstFileSink* gobj() const { return reinterpret_cast<GstFileSink*>(gobject_); }
124
125 ///Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
126 GstFileSink* gobj_copy();
127
128 private:
129
130
131 protected:
132 FileSink();
133 explicit FileSink(const Glib::ustring& name);
134
135 public:
136 /** Creates a new filesink plugin with a unique name.
137 */
138
139 static Glib::RefPtr<FileSink> create();
140
141
142 /** Creates a new filesink plugin with the given name.
143 */
144
145 static Glib::RefPtr<FileSink> create(const Glib::ustring& name);
146
147
148 /** Location of the file to write.
149 *
150 * @return A PropertyProxy that allows you to get or set the value of the property,
151 * or receive notification when the value of the property changes.
152 */
153 Glib::PropertyProxy< Glib::ustring > property_location() ;
154
155 /** Location of the file to write.
156 *
157 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
158 * or receive notification when the value of the property changes.
159 */
160 Glib::PropertyProxy_ReadOnly< Glib::ustring > property_location() const;
161
162 /** The buffering mode to use.
163 *
164 * @return A PropertyProxy that allows you to get or set the value of the property,
165 * or receive notification when the value of the property changes.
166 */
167 Glib::PropertyProxy< Gst::FileSinkBufferMode > property_buffer_mode() ;
168
169 /** The buffering mode to use.
170 *
171 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
172 * or receive notification when the value of the property changes.
173 */
174 Glib::PropertyProxy_ReadOnly< Gst::FileSinkBufferMode > property_buffer_mode() const;
175
176 /** Size of buffer in number of bytes for line or full buffer-mode.
177 *
178 * @return A PropertyProxy that allows you to get or set the value of the property,
179 * or receive notification when the value of the property changes.
180 */
181 Glib::PropertyProxy< guint > property_buffer_size() ;
182
183 /** Size of buffer in number of bytes for line or full buffer-mode.
184 *
185 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
186 * or receive notification when the value of the property changes.
187 */
188 Glib::PropertyProxy_ReadOnly< guint > property_buffer_size() const;
189
190 /** Append to an already existing file.
191 *
192 * @return A PropertyProxy that allows you to get or set the value of the property,
193 * or receive notification when the value of the property changes.
194 */
195 Glib::PropertyProxy< bool > property_append() ;
196
197 /** Append to an already existing file.
198 *
199 * @return A PropertyProxy_ReadOnly that allows you to get the value of the property,
200 * or receive notification when the value of the property changes.
201 */
202 Glib::PropertyProxy_ReadOnly< bool > property_append() const;
203
204
205 public:
206
207 public:
208 //C++ methods used to invoke GTK+ virtual functions:
209
210 protected:
211 //GTK+ Virtual Functions (override these to change behaviour):
212
213 //Default Signal Handlers::
214
215
216 };
217
218 } // namespace Gst
219
220
221 namespace Glib
222 {
223 /** A Glib::wrap() method for this object.
224 *
225 * @param object The C instance.
226 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
227 * @result A C++ instance that wraps this C instance.
228 *
229 * @relates Gst::FileSink
230 */
231 Glib::RefPtr<Gst::FileSink> wrap(GstFileSink* object, bool take_copy = false);
232 }
233
234
235 #endif // GSTREAMERMM_DISABLE_DEPRECATED
236
237
238 #endif /* _GSTREAMERMM_FILESINK_H */
239