QtGStreamer  0.10.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Types | Public Member Functions | Static Public Member Functions
QGlib::Signal Class Reference

#include <QGlib/Signal>

List of all members.

Public Types

enum  SignalFlag {
  RunFirst = 1<<0, RunLast = 1<<1, RunCleanup = 1<<2, NoRecurse = 1<<3,
  Detailed = 1<<4, Action = 1<<5, NoHooks = 1<<6

Public Member Functions

 Signal (const Signal &other)
Signaloperator= (const Signal &other)
bool isValid () const
uint id () const
QString name () const
SignalFlags flags () const
Type instanceType () const
Type returnType () const
QList< TypeparamTypes () const

Static Public Member Functions

static Signal lookup (const char *name, Type type)
static QList< SignallistSignals (Type type)

Detailed Description

Helper class providing introspection of GObject signals.

Signals are a generic notification mechanism. Each signal is bound to a certain instantiatable Type and can be emitted on any instance of this type.

This class allows you to inspect these signals. You can use the lookup() and listSignals() methods to get a Signal instance. You can then use one of the accessor methods to retrieve information about this signal.

This class does not offer methods to emit or connect to signals. To emit or connect a signal, use the QGlib::emit() and QGlib::connect() methods, respectively.

For more information, please read the relevant Glib documentation.

See also:
connect(), emit()

Definition at line 62 of file signal.h.

Member Function Documentation

bool QGlib::Signal::isValid ( ) const

Returns true if this Signal instance represents an existing signal, or false otherwise.

Definition at line 77 of file signal.cpp.

uint QGlib::Signal::id ( ) const

Returns the signal's id.

Definition at line 82 of file signal.cpp.

QString QGlib::Signal::name ( ) const

Returns the signal's name.

Definition at line 87 of file signal.cpp.

Signal::SignalFlags QGlib::Signal::flags ( ) const

Returns the signal's flags.

Definition at line 92 of file signal.cpp.

Returns the interface/instance Type that this signal can be emitted for.

Definition at line 97 of file signal.cpp.

Returns the return Type of the signal.

Definition at line 102 of file signal.cpp.

QList< Type > QGlib::Signal::paramTypes ( ) const

Returns the types of the signal parameters.

Definition at line 107 of file signal.cpp.

Signal QGlib::Signal::lookup ( const char *  name,
Type  type 
) [static]

Finds and returns a Signal with the specified name on the specified interface/instance type.

Definition at line 117 of file signal.cpp.

QList< Signal > QGlib::Signal::listSignals ( Type  type) [static]

Returns a list with all the signals that an interface/instance type has.

Definition at line 123 of file signal.cpp.

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