Gst::Query Class Reference

#include <query.h>

Inheritance diagram for Gst::Query:

Gst::MiniObject Gst::QueryConvert Gst::QueryDuration Gst::QueryFormats Gst::QueryLatency Gst::QueryPosition Gst::QuerySeeking Gst::QuerySegment

List of all members.

Public Member Functions

virtual ~Query ()
GstQuery* gobj ()
 Provides access to the underlying C GstMiniObject.
const GstQuery* gobj () const
 Provides access to the underlying C GstMiniObject.
GstQuery* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
const Structureget_structure ()
 Get the structure of a query.
QueryType get_query_type () const
bool get_details (QueryType type, QueryTypeDefinition& def)

Static Public Member Functions

static Glib::RefPtr<Querywrap (GstQuery* query, bool take_copy=false)
 Wrap a GstQuery* in a C++ instance, creating an instance of a derived Gst::Query.
static QueryType register_query_type (const Glib::ustring& nick, const Glib::ustring& description)
 Create a new GstQueryType based on the nick or return an already registered query with that nick.
static QueryType get_query_type (const Glib::ustring& nick)
 Get the query type registered with nick.
static bool query_types_contains (const Glib::ArrayHandle<QueryType>& types, QueryType type)
 See if the given Gst::QueryType is inside the types query types array.


Constructor & Destructor Documentation

virtual Gst::Query::~Query (  )  [virtual]


Member Function Documentation

bool Gst::Query::get_details ( QueryType  type,
QueryTypeDefinition def 
)

static QueryType Gst::Query::get_query_type ( const Glib::ustring &  nick  )  [static]

Get the query type registered with nick.

Parameters:
nick The nick of the query.
Returns:
The query registered with nick or Gst::QUERY_NONE if the query was not registered.

QueryType Gst::Query::get_query_type (  )  const

const Structure* Gst::Query::get_structure (  ) 

Get the structure of a query.

Returns:
The Structure of the query (unmodifiable)

const GstQuery* Gst::Query::gobj (  )  const [inline]

Provides access to the underlying C GstMiniObject.

Reimplemented from Gst::MiniObject.

References Gst::MiniObject::gobject_.

GstQuery* Gst::Query::gobj (  )  [inline]

Provides access to the underlying C GstMiniObject.

Reimplemented from Gst::MiniObject.

References Gst::MiniObject::gobject_.

GstQuery* Gst::Query::gobj_copy (  ) 

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

static bool Gst::Query::query_types_contains ( const Glib::ArrayHandle<QueryType>&  types,
QueryType  type 
) [static]

See if the given Gst::QueryType is inside the types query types array.

Parameters:
type The Gst::QueryType to find.
Returns:
true if the type is found inside the array.

static QueryType Gst::Query::register_query_type ( const Glib::ustring &  nick,
const Glib::ustring &  description 
) [static]

Create a new GstQueryType based on the nick or return an already registered query with that nick.

Parameters:
nick The nick of the new query.
description The description of the new query.
Returns:
A new GstQueryType or an already registered query with the same nick.

Glib::RefPtr<Gst::Query> wrap ( GstQuery *  query,
bool  take_copy = false 
) [static]

Wrap a GstQuery* in a C++ instance, creating an instance of a derived Gst::Query.

Gst::wrap() would just create a Gst::Query (rather than a derived one) because the derived Gst::Query classes do not correspond to GType types in the GStreamer API.

Parameters:
object The C instance
take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns:
A C++ instance that wraps this C instance.


The documentation for this class was generated from the following file:

Generated on Sun Feb 15 19:02:55 2009 for gstreamermm by  doxygen 1.5.7.1