00001
00002
00003 #ifndef _GSTREAMERMM_PRESET_H
00004 #define _GSTREAMERMM_PRESET_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #include <gst/gstpreset.h>
00029 #include <glibmm/interface.h>
00030
00031
00032 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00033 typedef struct _GstPreset GstPreset;
00034 typedef struct _GstPresetClass GstPresetClass;
00035 #endif
00036
00037
00038 namespace Gst
00039 { class Preset_Class; }
00040 namespace Gst
00041 {
00042
00058 class Preset : public Glib::Interface
00059 {
00060
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062
00063 public:
00064 typedef Preset CppObjectType;
00065 typedef Preset_Class CppClassType;
00066 typedef GstPreset BaseObjectType;
00067 typedef GstPresetInterface BaseClassType;
00068
00069 private:
00070 friend class Preset_Class;
00071 static CppClassType preset_class_;
00072
00073
00074 Preset(const Preset&);
00075 Preset& operator=(const Preset&);
00076
00077 protected:
00078 Preset();
00079
00086 explicit Preset(const Glib::Interface_Class& interface_class);
00087
00088 public:
00089
00090
00091
00092 explicit Preset(GstPreset* castitem);
00093
00094 protected:
00095 #endif
00096
00097 public:
00098 virtual ~Preset();
00099
00100 static void add_interface(GType gtype_implementer);
00101
00102 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00103 static GType get_type() G_GNUC_CONST;
00104 static GType get_base_type() G_GNUC_CONST;
00105 #endif
00106
00108 GstPreset* gobj() { return reinterpret_cast<GstPreset*>(gobject_); }
00109
00111 const GstPreset* gobj() const { return reinterpret_cast<GstPreset*>(gobject_); }
00112
00113 private:
00114
00115
00116 public:
00117
00118
00124 Glib::StringArrayHandle get_preset_names() const;
00125
00131 Glib::StringArrayHandle get_property_names() const;
00132
00139 bool load_preset(const Glib::ustring& name);
00140
00148 bool save_preset(const Glib::ustring& name);
00149
00158 bool rename_preset(const Glib::ustring& old_name, const Glib::ustring& new_name);
00159
00166 bool delete_preset(const Glib::ustring& name);
00167
00178 bool set_meta(const Glib::ustring& name, const Glib::ustring& tag, const Glib::ustring& value);
00179
00189 bool get_meta(const Glib::ustring& name, const Glib::ustring& tag, Glib::ustring& value) const;
00190
00191
00192
00193
00194 public:
00195
00196 public:
00197
00198 #ifdef GLIBMM_VFUNCS_ENABLED
00199 #endif //GLIBMM_VFUNCS_ENABLED
00200
00201 protected:
00202
00203 #ifdef GLIBMM_VFUNCS_ENABLED
00204 #endif //GLIBMM_VFUNCS_ENABLED
00205
00206
00207 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00208 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00209
00210
00211 };
00212
00213 }
00214
00215
00216 namespace Glib
00217 {
00226 Glib::RefPtr<Gst::Preset> wrap(GstPreset* object, bool take_copy = false);
00227
00228 }
00229
00230
00231 #endif
00232