padtemplate.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GSTREAMERMM_PADTEMPLATE_H
00004 #define _GSTREAMERMM_PADTEMPLATE_H
00005 
00006 
00007 #include <glibmm.h>
00008 
00009 // -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00010 
00011 /* gstreamermm - a C++ wrapper for gstreamer
00012  *
00013  * Copyright 2008 The gstreamermm Development Team
00014  *
00015  * This library is free software; you can redistribute it and/or
00016  * modify it under the terms of the GNU Library General Public
00017  * License as published by the Free Software Foundation; either
00018  * version 2 of the License, or (at your option) any later version.
00019  *
00020  * This library is distributed in the hope that it will be useful,
00021  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00022  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00023  * Library General Public License for more details.
00024  *
00025  * You should have received a copy of the GNU Library General Public
00026  * License along with this library; if not, write to the Free
00027  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00028  */
00029 
00030 #include <gst/gstpad.h>
00031 #include <gst/gstpadtemplate.h>
00032 #include <gstreamermm/object.h>
00033 #include <gstreamermm/pad.h>
00034 
00035 
00036 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00037 typedef struct _GstPadTemplate GstPadTemplate;
00038 typedef struct _GstPadTemplateClass GstPadTemplateClass;
00039 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00040 
00041 
00042 namespace Gst
00043 { class PadTemplate_Class; } // namespace Gst
00044 namespace Gst
00045 {
00046 
00052 enum PadTemplateFlags
00053 {
00054   PAD_TEMPLATE_FIXED = GST_OBJECT_FLAG_LAST << 0,
00055   PAD_TEMPLATE_LAST = GST_OBJECT_FLAG_LAST << 4
00056 };
00057 
00058 } // namespace Gst
00059 
00060 
00061 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00062 namespace Glib
00063 {
00064 
00065 template <>
00066 class Value<Gst::PadTemplateFlags> : public Glib::Value_Enum<Gst::PadTemplateFlags>
00067 {
00068 public:
00069   static GType value_type() G_GNUC_CONST;
00070 };
00071 
00072 } // namespace Glib
00073 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00074 
00075 
00076 namespace Gst
00077 {
00078 
00082 enum PadPresence
00083 {
00084   PAD_ALWAYS,
00085   PAD_SOMETIMES,
00086   PAD_REQUEST
00087 };
00088 
00089 } // namespace Gst
00090 
00091 
00092 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00093 namespace Glib
00094 {
00095 
00096 template <>
00097 class Value<Gst::PadPresence> : public Glib::Value_Enum<Gst::PadPresence>
00098 {
00099 public:
00100   static GType value_type() G_GNUC_CONST;
00101 };
00102 
00103 } // namespace Glib
00104 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00105 
00106 
00107 namespace Gst
00108 {
00109 
00110 
00111 class Caps;
00112 class Pad;
00113 
00139 class PadTemplate  : public Object 
00140 {
00141   
00142 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00143 
00144 public:
00145   typedef PadTemplate CppObjectType;
00146   typedef PadTemplate_Class CppClassType;
00147   typedef GstPadTemplate BaseObjectType;
00148   typedef GstPadTemplateClass BaseClassType;
00149 
00150 private:  friend class PadTemplate_Class;
00151   static CppClassType padtemplate_class_;
00152 
00153 private:
00154   // noncopyable
00155   PadTemplate(const PadTemplate&);
00156   PadTemplate& operator=(const PadTemplate&);
00157 
00158 protected:
00159   explicit PadTemplate(const Glib::ConstructParams& construct_params);
00160   explicit PadTemplate(GstPadTemplate* castitem);
00161 
00162 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
00163 
00164 public:
00165   virtual ~PadTemplate();
00166 
00167 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00168   static GType get_type()      G_GNUC_CONST;
00169   static GType get_base_type() G_GNUC_CONST;
00170 #endif
00171 
00173   GstPadTemplate*       gobj()       { return reinterpret_cast<GstPadTemplate*>(gobject_); }
00174 
00176   const GstPadTemplate* gobj() const { return reinterpret_cast<GstPadTemplate*>(gobject_); }
00177 
00179   GstPadTemplate* gobj_copy();
00180 
00181 private:
00182 
00183 
00184 protected:
00185   explicit PadTemplate(const Glib::ustring& name_template, PadDirection direction, PadPresence presence, const Glib::RefPtr<Caps>& caps);
00186 
00187 public:
00200   static Glib::RefPtr<PadTemplate> create(const Glib::ustring& name_template, PadDirection direction, PadPresence presence, const Glib::RefPtr<Caps>& caps);
00201 
00202 
00207   Glib::RefPtr<Caps> get_caps();
00208   
00213   Glib::RefPtr<const Caps> get_caps() const;
00214 
00217    Glib::ustring get_name_template() const;
00218  
00221    PadDirection get_direction() const;
00222  
00225    PadPresence get_presence() const;
00226  
00227  
00234   Glib::SignalProxy1< void,const Glib::RefPtr<Pad>& > signal_pad_created();
00235 
00236 
00237 public:
00238 
00239 public:
00240   //C++ methods used to invoke GTK+ virtual functions:
00241 #ifdef GLIBMM_VFUNCS_ENABLED
00242 #endif //GLIBMM_VFUNCS_ENABLED
00243 
00244 protected:
00245   //GTK+ Virtual Functions (override these to change behaviour):
00246 #ifdef GLIBMM_VFUNCS_ENABLED
00247 #endif //GLIBMM_VFUNCS_ENABLED
00248 
00249   //Default Signal Handlers::
00250 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00251   virtual void on_pad_created(const Glib::RefPtr<Pad>& pad);
00252 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00253 
00254 
00255 };
00256 
00257 } //namespace Gst
00258 
00259 
00260 namespace Glib
00261 {
00270   Glib::RefPtr<Gst::PadTemplate> wrap(GstPadTemplate* object, bool take_copy = false);
00271 }
00272 
00273 
00274 #endif /* _GSTREAMERMM_PADTEMPLATE_H */
00275 

Generated on Sun Jul 27 17:07:20 2008 for gstreamermm by  doxygen 1.5.4