QtGStreamer
1.2.0
|
#include <QGlib/Signal>
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) | |
Signal & | operator= (const Signal &other) |
bool | isValid () const |
uint | id () const |
QString | name () const |
SignalFlags | flags () const |
Type | instanceType () const |
Type | returnType () const |
QList< Type > | paramTypes () const |
Static Public Member Functions | |
static Signal | lookup (const char *name, Type type) |
static QList< Signal > | listSignals (Type type) |
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.
Definition at line 62 of file qglib_signal.h.
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.
Type QGlib::Signal::instanceType | ( | ) | const |
Returns the interface/instance Type that this signal can be emitted for.
Definition at line 97 of file signal.cpp.
Type QGlib::Signal::returnType | ( | ) | const |
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.
Finds and returns a Signal with the specified name on the specified interface/instance type.
Definition at line 117 of file signal.cpp.
Returns a list with all the signals that an interface/instance type has.
Definition at line 123 of file signal.cpp.