gnomemm r1738 - in gstreamermm/trunk: . gstreamer/gstreamermm gstreamer/src



Author: jaalburqu
Date: Mon Oct 13 00:54:17 2008
New Revision: 1738
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1738&view=rev

Log:
2008-10-12  Josà Alburquerque  <jaalburqu svn gnome org>

	* gstreamer/src/event.ccg:
	* gstreamer/src/event.hg: Added Gst::Enums::get_flags(EventType).
	* gstreamer/src/element.hg:
	* gstreamer/src/format.hg:
	* gstreamer/src/message.hg:
	* gstreamer/src/query.hg: Fixed parameter name typos in Gst::Enum
	methods.

	* gstreamer/src/index.ccg:
	* gstreamer/src/index.hg:
	* gstreamer/src/gst_others.defs: Handwrote is_readable() and
	is_writable() and removed definitions in *.defs file.  Added method
	docs.

Modified:
   gstreamermm/trunk/ChangeLog
   gstreamermm/trunk/gstreamer/gstreamermm/object.h
   gstreamermm/trunk/gstreamer/src/element.hg
   gstreamermm/trunk/gstreamer/src/event.ccg
   gstreamermm/trunk/gstreamer/src/event.hg
   gstreamermm/trunk/gstreamer/src/format.hg
   gstreamermm/trunk/gstreamer/src/gst_others.defs
   gstreamermm/trunk/gstreamer/src/index.ccg
   gstreamermm/trunk/gstreamer/src/index.hg
   gstreamermm/trunk/gstreamer/src/message.hg
   gstreamermm/trunk/gstreamer/src/query.hg

Modified: gstreamermm/trunk/gstreamer/gstreamermm/object.h
==============================================================================
--- gstreamermm/trunk/gstreamer/gstreamermm/object.h	(original)
+++ gstreamermm/trunk/gstreamer/gstreamermm/object.h	Mon Oct 13 00:54:17 2008
@@ -64,7 +64,6 @@
  * object.
  *
  * Last reviewed on 2005-11-09 (0.9.4)
- *
  */
 class Object : public Glib::Object 
 {

Modified: gstreamermm/trunk/gstreamer/src/element.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/element.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/element.hg	Mon Oct 13 00:54:17 2008
@@ -74,14 +74,14 @@
  * @param state A Gst::State to get the name of.
  * @return A Glib::ustring with the name of the state.
  */
-Glib::ustring get_name(State s);
+Glib::ustring get_name(State state);
 
 /** Gets a string representing the given state change result.
  *
- * @param s A Gst::StateChangeReturn to get the name of.
+ * @param state_ret A Gst::StateChangeReturn to get the name of.
  * @return A Glib::ustring with the name of the state change result.
  */
-Glib::ustring get_name(StateChangeReturn s);
+Glib::ustring get_name(StateChangeReturn state_ret);
 
 } //namespace Enums
 
@@ -335,7 +335,6 @@
   /** perform a Gst::Query on the element 
    */
   _WRAP_VFUNC(bool query(const Glib::RefPtr<Query>& query), "query")
-
 };
 
 /** Templated class used for casting Gst::Element to interfaces that its

Modified: gstreamermm/trunk/gstreamer/src/event.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/event.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/event.ccg	Mon Oct 13 00:54:17 2008
@@ -40,6 +40,11 @@
   return Glib::QueryQuark(gst_event_type_to_quark(GstEventType(t)));
 }
 
+EventTypeFlags get_flags(EventType t)
+{
+  return (EventTypeFlags) gst_event_type_get_flags((GstEventType)(t));
+}
+
 } //namespace Enums
 
 Glib::RefPtr<Event> Event::copy() const

Modified: gstreamermm/trunk/gstreamer/src/event.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/event.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/event.hg	Mon Oct 13 00:54:17 2008
@@ -69,14 +69,20 @@
  * @param type The event type.
  * @return A reference to the static name of the event.
  */
-Glib::ustring get_name(EventType t);
+Glib::ustring get_name(EventType type);
 
 /** Get the unique quark for the given event type.
  *
  * @param type The event type.
  * @return The quark associated with the event type.
  */
-Glib::QueryQuark get_quark(EventType t);
+Glib::QueryQuark get_quark(EventType type);
+
+/** Gets the Gst::EventTypeFlags associated with type.
+ * @param type A Gst::EventType.
+ * @return A Gst::EventTypeFlags.
+ */
+EventTypeFlags get_flags(EventType type);
 
 } //namespace Enums
 

Modified: gstreamermm/trunk/gstreamer/src/format.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/format.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/format.hg	Mon Oct 13 00:54:17 2008
@@ -70,14 +70,14 @@
  * @param format A Gst::Format.
  * @return The name of the format or NULL if the format is unknown.
  */
-Glib::ustring get_name(Format f);
+Glib::ustring get_name(Format format);
 
 /** Get the unique quark for the given format.
  *
  * @param format A Gst::Format.
  * @return The quark associated with the format or 0 if the format is unknown. 
  */
-Glib::QueryQuark get_quark(Format f);
+Glib::QueryQuark get_quark(Format format);
 
 } //namespace Enums
 

Modified: gstreamermm/trunk/gstreamer/src/gst_others.defs
==============================================================================
--- gstreamermm/trunk/gstreamer/src/gst_others.defs	(original)
+++ gstreamermm/trunk/gstreamer/src/gst_others.defs	Mon Oct 13 00:54:17 2008
@@ -7,15 +7,3 @@
     '("GstBufferCopyFlags" "flags")
   )
 )
-
-(define-method is_readable
-  (of-object "GstIndex")
-  (c-name "GST_INDEX_IS_READABLE")
-  (return-type "gboolean")
-)
-
-(define-method is_writable
-  (of-object "GstIndex")
-  (c-name "GST_INDEX_IS_WRITABLE")
-  (return-type "gboolean")
-)

Modified: gstreamermm/trunk/gstreamer/src/index.ccg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/index.ccg	(original)
+++ gstreamermm/trunk/gstreamer/src/index.ccg	Mon Oct 13 00:54:17 2008
@@ -64,6 +64,16 @@
   delete static_cast<Index::SlotResolver*>(data);
 }
 
+bool Index::is_readable() const
+{
+  return GST_INDEX_IS_READABLE(gobj());
+}
+
+bool Index::is_writable() const
+{
+  return GST_INDEX_IS_WRITABLE(gobj());
+}
+
 void Index::set_filter(const SlotFilter& slot)
 {
   SlotFilter* slot_copy = new SlotFilter(slot); //Deleted in Index_Filter_gstreamermm_callback_destroy

Modified: gstreamermm/trunk/gstreamer/src/index.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/index.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/index.hg	Mon Oct 13 00:54:17 2008
@@ -70,8 +70,16 @@
   _CTOR_DEFAULT
 
 public:
-  _WRAP_METHOD(bool is_readable() const, GST_INDEX_IS_READABLE)
-  _WRAP_METHOD(bool is_writable() const, GST_INDEX_IS_WRITABLE)
+  /** Check if the index can be read from.
+   * @return true if index is readable, false otherwise.
+   */
+  bool is_readable() const;
+
+  /** Check if the index can be written to.
+   * @return true if index is writable, false otherwise.
+   */
+  bool is_writable() const;
+
   _WRAP_METHOD(void commit(int id), gst_index_commit)
   _WRAP_METHOD(gint get_group() const, gst_index_get_group)
   _WRAP_METHOD(gint new_group(), gst_index_new_group)
@@ -93,6 +101,11 @@
    */ 
   typedef sigc::slot<bool, const Glib::RefPtr<Index>&, IndexEntry> SlotFilter;
 
+  /** Lets the app register a custom filter slot so that it can select what
+   * entries should be stored in the index.
+   *
+   * @param slot The filter slot to register.
+   */
   void set_filter(const SlotFilter& slot);
 
   /** For example,
@@ -103,8 +116,14 @@
    */ 
   typedef sigc::slot<bool, const Glib::RefPtr<Index>&, const Glib::RefPtr<Gst::Object>&, Glib::ustring&> SlotResolver;
 
+  /** Lets the app register a custom slot to map index ids to writer
+   * descriptions.
+   * @param slot The resolver slot to register.
+   */
   void set_resolver(const SlotResolver& slot);
 
+  /** Emitted when a new entry is added to the index.
+   */
   _WRAP_SIGNAL(void entry_added(const IndexEntry& entry), "entry-added")
 
   _WRAP_PROPERTY("resolver", Gst::Index::SlotResolver)

Modified: gstreamermm/trunk/gstreamer/src/message.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/message.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/message.hg	Mon Oct 13 00:54:17 2008
@@ -35,8 +35,17 @@
 namespace Enums
 {
 
-Glib::ustring get_name(MessageType t);
-Glib::QueryQuark get_quark(MessageType t);
+/** Get a printable name for the given message type.
+ * @param type The message type.
+ * @return The name of the message type.
+ */
+Glib::ustring get_name(MessageType type);
+
+/** Get the unique quark for the given message type.
+ * @param type The message type.
+ * @return The quark associated with the message type.
+ */
+Glib::QueryQuark get_quark(MessageType type);
 
 } //namespace Enums
 

Modified: gstreamermm/trunk/gstreamer/src/query.hg
==============================================================================
--- gstreamermm/trunk/gstreamer/src/query.hg	(original)
+++ gstreamermm/trunk/gstreamer/src/query.hg	Mon Oct 13 00:54:17 2008
@@ -75,7 +75,7 @@
  * @param query The query type.
  * @return The name of the query.
  */
-Glib::ustring get_name(QueryType t);
+Glib::ustring get_name(QueryType query);
 _IGNORE(gst_query_type_get_name)
 
 /** Get the unique quark for the given query type.
@@ -83,7 +83,7 @@
  * @param query The query type.
  * @return The quark associated with the query type.
  */
-Glib::QueryQuark get_quark(QueryType t);
+Glib::QueryQuark get_quark(QueryType query);
 _IGNORE(gst_query_type_to_quark)
 
 } //namespace Enums



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]