|
| | DynamicObject () |
| |
| virtual | ~DynamicObject () |
| |
| virtual void | setMetaObject (const MetaObject &mo) |
| | You must call DynamicObject::setMetaObject() if you overload this method. More...
|
| |
| MetaObject & | metaObject () |
| |
| void | setMethod (unsigned int id, AnyFunction callable, MetaCallType threadingModel=MetaCallType_Auto) |
| |
| void | setSignal (unsigned int id, SignalBase *signal) |
| |
| void | setProperty (unsigned int id, PropertyBase *property) |
| |
| const AnyFunction & | method (unsigned int id) const |
| |
| SignalBase * | signal (unsigned int id) const |
| |
| PropertyBase * | property (unsigned int) const |
| |
| virtual qi::Future< AnyReference > | metaCall (AnyObject context, unsigned int method, const GenericFunctionParameters ¶ms, MetaCallType callType=MetaCallType_Auto, Signature returnSignature=Signature()) |
| |
| virtual void | metaPost (AnyObject context, unsigned int event, const GenericFunctionParameters ¶ms) |
| |
| virtual qi::Future< SignalLink > | metaConnect (unsigned int event, const SignalSubscriber &subscriber) |
| | Calls given functor when event is fired. Takes ownership of functor. More...
|
| |
| virtual qi::Future< void > | metaDisconnect (SignalLink linkId) |
| | Disconnect an event link. Returns if disconnection was successful. More...
|
| |
| virtual qi::Future< AnyValue > | metaProperty (AnyObject context, unsigned int id) |
| |
| virtual qi::Future< void > | metaSetProperty (AnyObject context, unsigned int id, AnyValue val) |
| |
| void | setThreadingModel (ObjectThreadingModel model) |
| |
| ObjectThreadingModel | threadingModel () const |
| |
| void | setManageable (Manageable *m) |
| |
A Dynamic object is an object that handles all signal/method operation itself.
Signal handling: The default implementation is creating a SignalBase for each MetaSignal in the MetaObject, and bounces metaPost(), connect() and disconnect() to it.
Method handling: The default implementation holds a method list that the user must populate with setMethod()
Definition at line 34 of file dynamicobject.hpp.