- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

# enums.h

Go to the documentation of this file.

    00001 // -*- c++ -*-
    00002 // Generated by gtkmmproc -- DO NOT MODIFY!
    00003 #ifndef _GSTREAMERMM_ENUMS_H
    00004 #define _GSTREAMERMM_ENUMS_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/gstminiobject.h>
    00029 #include <gst/gstelement.h>
    00030
    00031
    00032 // Plug-in C enums used in the plug-in signals that are shared need to be
    00033 // declared.  This one is is shared between decodebin2 and uridecodebin so it
    00034 // is difficult for it to be generated.
    00035 enum GstAutoplugSelectResult
    00036 {
    00037   GST_AUTOPLUG_SELECT_TRY,
    00038   GST_AUTOPLUG_SELECT_EXPOSE,
    00039   GST_AUTOPLUG_SELECT_SKIP
    00040 };
    00041
    00042 namespace Gst
    00043 {
    00044
    00058 enum MiniObjectFlags
    00059 {
    00060   MINI_OBJECT_FLAG_READONLY = 1<<0,
    00061   MINI_OBJECT_FLAG_LAST = 1<<4
    00062 };
    00063
    00065 inline MiniObjectFlags operator|(MiniObjectFlags lhs, MiniObjectFlags rhs)
    00066   { return static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
    00067
    00069 inline MiniObjectFlags operator&(MiniObjectFlags lhs, MiniObjectFlags rhs)
    00070   { return static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
    00071
    00073 inline MiniObjectFlags operator^(MiniObjectFlags lhs, MiniObjectFlags rhs)
    00074   { return static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
    00075
    00077 inline MiniObjectFlags operator~(MiniObjectFlags flags)
    00078   { return static_cast<MiniObjectFlags>(~static_cast<unsigned>(flags)); }
    00079
    00081 inline MiniObjectFlags& operator|=(MiniObjectFlags& lhs, MiniObjectFlags rhs)
    00082   { return (lhs = static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
    00083
    00085 inline MiniObjectFlags& operator&=(MiniObjectFlags& lhs, MiniObjectFlags rhs)
    00086   { return (lhs = static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
    00087
    00089 inline MiniObjectFlags& operator^=(MiniObjectFlags& lhs, MiniObjectFlags rhs)
    00090   { return (lhs = static_cast<MiniObjectFlags>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
    00091
    00092 } // namespace Gst
    00093
    00094
    00095 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00096 namespace Glib
    00097 {
    00098
    00099 template <>
    00100 class Value<Gst::MiniObjectFlags> : public Glib::Value_Flags<Gst::MiniObjectFlags>
    00101 {
    00102 public:
    00103   static GType value_type() G_GNUC_CONST;
    00104 };
    00105
    00106 } // namespace Glib
    00107 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00108
    00109
    00110 namespace Gst
    00111 {
    00112
    00116 enum State
    00117 {
    00118   STATE_VOID_PENDING,
    00119   STATE_NULL,
    00120   STATE_READY,
    00121   STATE_PAUSED,
    00122   STATE_PLAYING
    00123 };
    00124
    00125 } // namespace Gst
    00126
    00127
    00128 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00129 namespace Glib
    00130 {
    00131
    00132 template <>
    00133 class Value<Gst::State> : public Glib::Value_Enum<Gst::State>
    00134 {
    00135 public:
    00136   static GType value_type() G_GNUC_CONST;
    00137 };
    00138
    00139 } // namespace Glib
    00140 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00141
    00142
    00143 namespace Gst
    00144 {
    00145
    00146
    00147 // Plug-in non-genereated enums.  Handled manually and not generated because
    00148 // they are shared by more than one plug-in:
    00152 enum AutoplugSelectResult
    00153 {
    00154   AUTOPLUG_SELECT_TRY,
    00155   AUTOPLUG_SELECT_EXPOSE,
    00156   AUTOPLUG_SELECT_SKIP
    00157 };
    00158
    00159 } // namespace Gst
    00160
    00161
    00162 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00163 namespace Glib
    00164 {
    00165
    00166 template <>
    00167 class Value<Gst::AutoplugSelectResult> : public Glib::Value_Enum<Gst::AutoplugSelectResult>
    00168 {
    00169 public:
    00170   static GType value_type() G_GNUC_CONST;
    00171 };
    00172
    00173 } // namespace Glib
    00174 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00175
    00176
    00177 namespace Gst
    00178 {
    00179
    00183 enum TCPProtocol
    00184 {
    00185   TCP_PROTOCOL_NONE,
    00186   TCP_PROTOCOL_GDP
    00187 };
    00188
    00189 } // namespace Gst
    00190
    00191
    00192 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00193 namespace Glib
    00194 {
    00195
    00196 template <>
    00197 class Value<Gst::TCPProtocol> : public Glib::Value_Enum<Gst::TCPProtocol>
    00198 {
    00199 public:
    00200   static GType value_type() G_GNUC_CONST;
    00201 };
    00202
    00203 } // namespace Glib
    00204 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
    00205
    00206
    00207 namespace Gst
    00208 {
    00209
    00210
    00211 } //namespace Gst
    00212
    00213
    00214 #endif /* _GSTREAMERMM_ENUMS_H */
    00215