libqmlbind
A C library for creating QML bindings for other languages easily through exporting objects to QML
Files | Classes | Functions
qmlbind_signal_emitter

a helper class to emit signals from qmlbind_client_object C objects. More...

Files

file  signal_emitter.h
 Contains all methods defined on qmlbind_signal_emitter.
 

Classes

struct  qmlbind_signal_emitter
 an opaque struct mainly used as self argument in the methods defined in qmlbind_signal_emitter. More...
 

Functions

QMLBIND_API qmlbind_signal_emitterqmlbind_signal_emitter_new (const qmlbind_value *wrapper)
 Creates a new emitter that emits signals via the provided wrapper. More...
 
QMLBIND_API void qmlbind_signal_emitter_emit (qmlbind_signal_emitter *self, const char *signal_name, int argc, const qmlbind_value *const *argv)
 emits the signal signal_name with argc arguments in argv.
 
QMLBIND_API qmlbind_engineqmlbind_signal_emitter_get_engine (const qmlbind_signal_emitter *self)
 returns this signal emitter's associated engine. More...
 
QMLBIND_API void qmlbind_signal_emitter_release (qmlbind_signal_emitter *self)
 destroys this signal emitter.
 

Detailed Description

a helper class to emit signals from qmlbind_client_object C objects.

Function Documentation

QMLBIND_API qmlbind_signal_emitter* qmlbind_signal_emitter_new ( const qmlbind_value wrapper)

Creates a new emitter that emits signals via the provided wrapper.

Passing qmlbind_values that are not wrappers, i.e. qmlbind_value_is_wrapper() returns false, is an error here.

QMLBIND_API qmlbind_engine* qmlbind_signal_emitter_get_engine ( const qmlbind_signal_emitter self)

returns this signal emitter's associated engine.

Does not transfer ownership of the returned engine.