00001
00002
00003 #ifndef _GSTREAMERMM_FDSINK_H
00004 #define _GSTREAMERMM_FDSINK_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 <gstreamermm/basesink.h>
00029 #include <gstreamermm/urihandler.h>
00030
00031
00032 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00033 typedef struct _GstFdSink GstFdSink;
00034 typedef struct _GstFdSinkClass GstFdSinkClass;
00035 #endif
00036
00037
00038 namespace Gst
00039 { class FdSink_Class; }
00040 namespace Gst
00041 {
00042
00053 class FdSink
00054 : public Gst::BaseSink, public Gst::URIHandler
00055 {
00056
00057 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00058
00059 public:
00060 typedef FdSink CppObjectType;
00061 typedef FdSink_Class CppClassType;
00062 typedef GstFdSink BaseObjectType;
00063 typedef GstFdSinkClass BaseClassType;
00064
00065 private: friend class FdSink_Class;
00066 static CppClassType fdsink_class_;
00067
00068 private:
00069
00070 FdSink(const FdSink&);
00071 FdSink& operator=(const FdSink&);
00072
00073 protected:
00074 explicit FdSink(const Glib::ConstructParams& construct_params);
00075 explicit FdSink(GstFdSink* castitem);
00076
00077 #endif
00078
00079 public:
00080 virtual ~FdSink();
00081
00082 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00083 static GType get_type() G_GNUC_CONST;
00084 static GType get_base_type() G_GNUC_CONST;
00085 #endif
00086
00088 GstFdSink* gobj() { return reinterpret_cast<GstFdSink*>(gobject_); }
00089
00091 const GstFdSink* gobj() const { return reinterpret_cast<GstFdSink*>(gobject_); }
00092
00094 GstFdSink* gobj_copy();
00095
00096 private:
00097
00098
00099 protected:
00100 FdSink();
00101 FdSink(const Glib::ustring& name);
00102
00103 public:
00107 static Glib::RefPtr<FdSink> create();
00108
00109
00113 static Glib::RefPtr<FdSink> create(const Glib::ustring& name);
00114
00115
00116 #ifdef GLIBMM_PROPERTIES_ENABLED
00117
00123 Glib::PropertyProxy<int> property_fd() ;
00124 #endif //#GLIBMM_PROPERTIES_ENABLED
00125
00126 #ifdef GLIBMM_PROPERTIES_ENABLED
00127
00133 Glib::PropertyProxy_ReadOnly<int> property_fd() const;
00134 #endif //#GLIBMM_PROPERTIES_ENABLED
00135
00136
00137 public:
00138
00139 public:
00140
00141 #ifdef GLIBMM_VFUNCS_ENABLED
00142 #endif //GLIBMM_VFUNCS_ENABLED
00143
00144 protected:
00145
00146 #ifdef GLIBMM_VFUNCS_ENABLED
00147 #endif //GLIBMM_VFUNCS_ENABLED
00148
00149
00150 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00151 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00152
00153
00154 };
00155
00156 }
00157
00158
00159 namespace Glib
00160 {
00169 Glib::RefPtr<Gst::FdSink> wrap(GstFdSink* object, bool take_copy = false);
00170 }
00171
00172
00173 #endif
00174