Debian Codegraph @

gstreamer/gstreamermm/preset.h

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!cxx . . $ `<file>/gstreamer/gstreamermm/preset.h`/
2 #ifndef _GSTREAMERMM_PRESET_H
3 #define _GSTREAMERMM_PRESET_Hcxx . . $ `gstreamer/gstreamermm/preset.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 2008-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 <gst/gst.h>
29 #include <glibmm/arrayhandle.h>
30 #include <glibmm/interface.h>
31
32
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 using GstPresetcxx . . $ GstPreset# = struct _GstPresetcxx . . $ _GstPreset#;
35 using GstPresetClasscxx . . $ GstPresetClass# = struct _GstPresetClasscxx . . $ _GstPresetClass#;
36 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
37
38
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 namespace Gstcxx . . $ Gst/
41 { class Preset_Classcxx . . $ Gst/Preset_Class#; } // namespace Gst
42 #endif // DOXYGEN_SHOULD_SKIP_THIS
43
44 namespace Gstcxx . . $ Gst/
45 {
46
47 /** A helper interface for element presets.
48 * This interface offers methods to query and manipulate parameter preset sets.
49 * A preset is a bunch of property settings, together with meta data and a
50 * name. The name of a preset serves as key for subsequent method calls to
51 * manipulate single presets. All instances of one type will share the list of
52 * presets. The list is created on demand, if presets are not used, the list is
53 * not created.
54 *
55 * The interface comes with a default implementation that serves most plugins.
56 * Wrapper plugins will override most methods to implement support for the
57 * native preset format of those wrapped plugins. One method that is useful to
58 * be overridden is property_names_vfunc(). With that, one can control which
59 * properties are saved and in which order.
60 *
61 * Last reviewed on 2016-06-06 (1.8.0)
62 * @ingroup GstInterfaces
63 */
64
65 class Presetcxx . . $ Gst/Preset# : public Glibcxx . . $ Glib/::Interfacecxx . . $ Glib/Interface#
66 {
67
68 #ifndef DOXYGEN_SHOULD_SKIP_THIS
69
70 public:
71 using CppObjectTypecxx . . $ Gst/Preset#CppObjectType# = Presetcxx . . $ Gst/Preset#;
72 using CppClassTypecxx . . $ Gst/Preset#CppClassType# = Preset_Classcxx . . $ Gst/Preset_Class#;
73 using BaseObjectTypecxx . . $ Gst/Preset#BaseObjectType# = GstPresetcxx . . $ GstPreset#;
74 using BaseClassTypecxx . . $ Gst/Preset#BaseClassType# = GstPresetInterface;
75
76 // noncopyable
77 Presetcxx . . $ Gst/Preset#Preset(21b24a277f5f42ce).(const Presetcxx . . $ Gst/Preset#&) = delete;
78 Presetcxx . . $ Gst/Preset#& operatorcxx . . $ Gst/Preset#`operator=`(cb70d5c40ef4d7b0).=(const Presetcxx . . $ Gst/Preset#&) = delete;
79
80 private:
81 friend class Preset_Classcxx . . $ Gst/Preset_Class#;
82 static CppClassTypecxx . . $ Gst/Preset#CppClassType# preset_class_cxx . . $ Gst/Preset#preset_class_.;
83
84 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
85 protected:
86 /**
87 * You should derive from this class to use it.
88 */
89 Presetcxx . . $ Gst/Preset#Preset(49f6e7a06ebc5aa8).();
90
91 #ifndef DOXYGEN_SHOULD_SKIP_THIS
92 /** Called by constructors of derived classes. Provide the result of
93 * the Class init() function to ensure that it is properly
94 * initialized.
95 *
96 * @param interface_class The Class object for the derived type.
97 */
98 explicit Presetcxx . . $ Gst/Preset#Preset(2ae54c1e3e0dc4a8).(const Glibcxx . . $ Glib/::Interface_Classcxx . . $ Glib/Interface_Class#& interface_class);
99
100 public:
101 // This is public so that C++ wrapper instances can be
102 // created for C instances of unwrapped types.
103 // For instance, if an unexpected C type implements the C interface.
104 explicit Presetcxx . . $ Gst/Preset#Preset(edbb42d8a94fe10b).(GstPresetcxx . . $ GstPreset#* castitem);
105
106 protected:
107 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
108
109 public:
110
111 Presetcxx . . $ Gst/Preset#Preset(3e589cac1bacac8c).(Presetcxx . . $ Gst/Preset#&& src) noexcept;
112 Presetcxx . . $ Gst/Preset#& operatorcxx . . $ Gst/Preset#`operator=`(cf4832bf7ff4bddf).=(Presetcxx . . $ Gst/Preset#&& src) noexcept;
113
114 ~cxx . . $ Gst/Preset#`~Preset`(ced63f7c635d850d).Presetcxx . . $ Gst/Preset#() noexcept override;
115
116 static void add_interfacecxx . . $ Gst/Preset#add_interface(2c44cd906ae4e829).(GType gtype_implementer);
117
118 /** Get the GType for this class, for use with the underlying GObject type system.
119 */
120 static GType get_typecxx . . $ Gst/Preset#get_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
121
122 #ifndef DOXYGEN_SHOULD_SKIP_THIS
123 static GType get_base_typecxx . . $ Gst/Preset#get_base_type(f708dce9a8856c70).() G_GNUC_CONSTcxx . . $ `<external>/12741050725406041920/gmacros.h:640:9`!;
124 #endif
125
126 ///Provides access to the underlying C GObject.
127 GstPresetcxx . . $ GstPreset#* gobjcxx . . $ Gst/Preset#gobj(3da17d4fdb793fd2).() { return reinterpret_cast<GstPresetcxx . . $ GstPreset#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
128
129 ///Provides access to the underlying C GObject.
130 const GstPresetcxx . . $ GstPreset#* gobjcxx . . $ Gst/Preset#gobj(20f8774e6cf598eb).() const { return reinterpret_cast<GstPresetcxx . . $ GstPreset#*>(gobject_cxx . . $ Glib/ObjectBase#gobject_.); }
131
132 private:
133
134
135 public:
136
137
138 /** Get a copy of preset names as a <tt>nullptr</tt> terminated string array.
139 *
140 * @return List with names.
141 */
142 Glibcxx . . $ Glib/::StringArrayHandlecxx . . $ Glib/StringArrayHandle# get_preset_namescxx . . $ Gst/Preset#get_preset_names(3e2526b406b00dda).() const;
143
144 /** Get a the names of the GObject properties that can be used for presets.
145 *
146 * @return An
147 * array of property names which should be freed with Glib::strfreev() after use.
148 */
149 Glibcxx . . $ Glib/::StringArrayHandlecxx . . $ Glib/StringArrayHandle# get_property_namescxx . . $ Gst/Preset#get_property_names(3e2526b406b00dda).() const;
150
151 /** Load the given preset.
152 *
153 * @param name Preset name to load.
154 * @return <tt>true</tt> for success, <tt>false</tt> if e.g. there is no preset with that @a name.
155 */
156 bool load_presetcxx . . $ Gst/Preset#load_preset(7186ea5d16af43ac).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name);
157
158 /** Save the current object settings as a preset under the given name. If there
159 * is already a preset by this @a name it will be overwritten.
160 *
161 * @param name Preset name to save.
162 * @return <tt>true</tt> for success, <tt>false</tt>.
163 */
164 bool save_presetcxx . . $ Gst/Preset#save_preset(7186ea5d16af43ac).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name);
165
166 /** Renames a preset. If there is already a preset by the @a new_name it will be
167 * overwritten.
168 *
169 * @param old_name Current preset name.
170 * @param new_name New preset name.
171 * @return <tt>true</tt> for success, <tt>false</tt> if e.g. there is no preset with @a old_name.
172 */
173 bool rename_presetcxx . . $ Gst/Preset#rename_preset(395448000f6db32c).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& old_name, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& new_name);
174
175 /** Delete the given preset.
176 *
177 * @param name Preset name to remove.
178 * @return <tt>true</tt> for success, <tt>false</tt> if e.g. there is no preset with that @a name.
179 */
180 bool delete_presetcxx . . $ Gst/Preset#delete_preset(7186ea5d16af43ac).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name);
181
182 /** Sets a new @a value for an existing meta data item or adds a new item. Meta
183 * data @a tag names can be something like e.g. "comment". Supplying <tt>nullptr</tt> for the
184 * @a value will unset an existing value.
185 *
186 * @param name Preset name.
187 * @param tag Meta data item name.
188 * @param value New value.
189 * @return <tt>true</tt> for success, <tt>false</tt> if e.g. there is no preset with that @a name.
190 */
191 bool set_metacxx . . $ Gst/Preset#set_meta(e15c1bc6b12eb7e5).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& tag, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& value);
192
193 /** Check if one can add new presets, change existing ones and remove presets.
194 *
195 * @return <tt>true</tt> if presets are editable or <tt>false</tt> if they are static.
196 */
197 bool is_editablecxx . . $ Gst/Preset#is_editable(50ce9a9e25b4a850).() const;
198
199
200 /** Gets the @a value for an existing meta data @a tag. Meta data @a tag names can be
201 * something like e.g. "comment". Returned values need to be released when done.
202 *
203 * @param name Preset name.
204 * @param tag Meta data item name.
205 * @param value Value.
206 * @return <tt>true</tt> for success, <tt>false</tt> if e.g. there is no preset with that @a name
207 * or no value for the given @a tag.
208 */
209
210 bool get_metacxx . . $ Gst/Preset#get_meta(f019ddc2d2fb72a7).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& tag, Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& value) const;
211
212
213 virtual Glibcxx . . $ Glib/::StringArrayHandlecxx . . $ Glib/StringArrayHandle# get_preset_names_vfunccxx . . $ Gst/Preset#get_preset_names_vfunc(3e2526b406b00dda).() const;
214 virtual Glibcxx . . $ Glib/::StringArrayHandlecxx . . $ Glib/StringArrayHandle# get_property_names_vfunccxx . . $ Gst/Preset#get_property_names_vfunc(3e2526b406b00dda).() const;
215
216 virtual bool load_preset_vfunccxx . . $ Gst/Preset#load_preset_vfunc(7186ea5d16af43ac).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name);
217
218 virtual bool save_preset_vfunccxx . . $ Gst/Preset#save_preset_vfunc(51a66224d46a21f).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name) const;
219
220 virtual bool rename_preset_vfunccxx . . $ Gst/Preset#rename_preset_vfunc(395448000f6db32c).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& old_name, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& new_name);
221
222 virtual bool delete_preset_vfunccxx . . $ Gst/Preset#delete_preset_vfunc(7186ea5d16af43ac).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name);
223
224 virtual bool set_meta_vfunccxx . . $ Gst/Preset#set_meta_vfunc(e15c1bc6b12eb7e5).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& tag, const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& value);
225
226
227 virtual bool get_meta_vfunccxx . . $ Gst/Preset#get_meta_vfunc(f019ddc2d2fb72a7).(const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& name,
228 const Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& tag, Glibcxx . . $ Glib/::ustringcxx . . $ Glib/ustring#& value) const;
229
230 protected:
231
232
233 public:
234
235 public:
236 //C++ methods used to invoke GTK+ virtual functions:
237
238 protected:
239 //GTK+ Virtual Functions (override these to change behaviour):
240
241 //Default Signal Handlers::
242
243
244 };
245
246 } // namespace Gst
247
248
249 namespace Glibcxx . . $ Glib/
250 {
251 /** A Glib::wrap() method for this object.
252 *
253 * @param object The C instance.
254 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
255 * @result A C++ instance that wraps this C instance.
256 *
257 * @relates Gst::Preset
258 */
259 Glibcxx . . $ Glib/::RefPtrcxx . . $ Glib/RefPtr#<Gstcxx . . $ Gst/::Presetcxx . . $ Gst/Preset#> wrapcxx . . $ Glib/wrap(928528c5490cc9a5).(GstPresetcxx . . $ GstPreset#* object, bool take_copy = false);
260
261 } // namespace Glib
262
263
264 #endif /* _GSTREAMERMM_PRESET_H */
265