Logo Search packages:      
Sourcecode: qt-gstreamer version File versions  Download package

Public Member Functions | Protected Member Functions | Protected Attributes | Friends

QGst::Query Class Reference

Wrapper class for GstQuery. More...

#include <QGst/Query>

Inheritance diagram for QGst::Query:
Inheritance graph
[legend]
Collaboration diagram for QGst::Query:
Collaboration graph
[legend]

List of all members.

Public Member Functions

MiniObjectPtr copy () const
StructurePtr internalStructure ()
bool isWritable () const
MiniObjectPtr makeWritable () const
QueryType type () const
QString typeName () const

Protected Member Functions

template<class T >
T * object () const
virtual void ref (bool increaseRef)
virtual void unref ()

Protected Attributes

void * m_object

Friends

struct Private::RefPointerEqualityCheck
class RefPointer

Detailed Description

Wrapper class for GstQuery.

Queries are lightweight objects that are sent from the application directly to elements or pads using the query() methods. A typical usage is to find out the duration or current position of media, or to display the status of a buffering operation.

Queries are implemented as a subclass of MiniObject with a generic GstStructure as the content. This allows for writing custom queries without requiring an API change while allowing a wide range of different types of queries.

QGst::Query is the common base class for all query types.

In these bindings, for convenience, each query type has its own Query subclass. The create() method in the subclasses should be used to create a query object. This does not reflect 1-1 the native C API, where there is only one Query class with tens of 'new_foo' and 'parse_foo' methods.

Note that the Query subclasses cannot be used with Value::get(), since a GValue will actually contain a GstQuery (the subclasses do not exist in C) and Value::get() is not able to do dynamic casts. As a result of that, Query subclasses also cannot be used as arguments in slots connected to GObject signals, even though you may know that your slot will only be called with that type of queries.

Definition at line 53 of file query.h.


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

Generated by  Doxygen 1.6.0   Back to index