- Main Page
- Modules
- Namespaces
- Classes
- Files

# preset.h

Go to the documentation of this file.

    00001 // -*- c++ -*-
    00002 // Generated by gtkmmproc -- DO NOT MODIFY!
    00003 #ifndef _GSTREAMERMM_PRESET_H
    00004 #define _GSTREAMERMM_PRESET_H
    00005
    00006
    00007 #include <glibmm.h>
    00008
    00009 /* gstreamermm - a C++ wrapper for gstreamer
    00010  *
    00011  * Copyright 2008 The gstreamermm Development Team
    00012  *
    00013  * This library is free software; you can redistribute it and/or
    00014  * modify it under the terms of the GNU Lesser General Public
    00015  * License as published by the Free Software Foundation; either
    00016  * version 2.1 of the License, or (at your option) any later version.
    00017  *
    00018  * This library is distributed in the hope that it will be useful,
    00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00021  * Lesser General Public License for more details.
    00022  *
    00023  * You should have received a copy of the GNU Lesser General Public
    00024  * License along with this library; if not, write to the Free
    00025  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    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 /* DOXYGEN_SHOULD_SKIP_THIS */
    00036
    00037
    00038 namespace Gst
    00039 { class Preset_Class; } // namespace Gst
    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   // noncopyable
    00074   Preset(const Preset&);
    00075   Preset& operator=(const Preset&);
    00076
    00077 protected:
    00078   Preset(); // you must derive from this class
    00079
    00086   explicit Preset(const Glib::Interface_Class& interface_class);
    00087
    00088 public:
    00089   // This is public so that C++ wrapper instances can be
    00090   // created for C instances of unwrapped types.
    00091   // For instance, if an unexpected C type implements the C interface.
    00092   explicit Preset(GstPreset* castitem);
    00093
    00094 protected:
    00095 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    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   //TODO: Wrap vfuncs.
    00192
    00193
    00194 public:
    00195
    00196 public:
    00197   //C++ methods used to invoke GTK+ virtual functions:
    00198 #ifdef GLIBMM_VFUNCS_ENABLED
    00199 #endif //GLIBMM_VFUNCS_ENABLED
    00200
    00201 protected:
    00202   //GTK+ Virtual Functions (override these to change behaviour):
    00203 #ifdef GLIBMM_VFUNCS_ENABLED
    00204 #endif //GLIBMM_VFUNCS_ENABLED
    00205
    00206   //Default Signal Handlers::
    00207 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
    00208 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
    00209
    00210
    00211 };
    00212
    00213 } // namespace Gst
    00214
    00215
    00216 namespace Glib
    00217 {
    00226   Glib::RefPtr<Gst::Preset> wrap(GstPreset* object, bool take_copy = false);
    00227
    00228 } // namespace Glib
    00229
    00230
    00231 #endif /* _GSTREAMERMM_PRESET_H */
    00232