29 #ifndef __ARCSPROXYCOMPONENT_H__
30 #define __ARCSPROXYCOMPONENT_H__
32 #include <arcs/arcsabstractcomponent.h>
33 #include <arcs/arcscontext.h>
48 void setContext(
ARCSContext* ctx) { context = ctx; }
79 virtual void getProxySlot (QString slot, ObjectList &obj, QStringList &proxySlot)
80 {
if (realOne) realOne->
getProxySlot(slot, obj, proxySlot); }
81 virtual void getProxySignal (QString signal, ObjectList &obj, QStringList &proxySignal)
82 {
if (realOne) realOne->
getProxySignal(signal, obj, proxySignal); }
115 #endif // __ARCSPROXYCOMPONENT_H__
virtual bool genuineInstanciate()
This method should implement the instanciation of the actual component.
virtual void getProxySignal(QString signal, ObjectList &obj, QStringList &proxySignal)=0
Creates a proxy signal to interface a component to native ARCS components.
virtual void getProxySlot(QString slot, ObjectList &obj, QStringList &proxySlot)
Creates a proxy slot to interface a component to native ARCS components.
virtual bool genuineDisconnect(QString, ARCSAbstractComponent *, QString)
This method disconnects two components by the indicated signals and slots.
virtual void getProxySlot(QString slot, ObjectList &obj, QStringList &proxySlot)=0
Creates a proxy slot to interface a component to native ARCS components.
virtual void genuineDestroy()
This method should implement the destruction of the actual component.
virtual QStringList getSlots()=0
Returns the names of the available slots.
Class handling the generic description of a component.
virtual bool parseString(QString s)
Defines a basic seralization mechanism.
virtual bool genuineDisconnect(QString sig, ARCSAbstractComponent *dst, QString slt)
This method disconnects two components by the indicated signals and slots.
virtual bool genuineConnect(QString sig, ARCSAbstractComponent *dst, QString slt, bool queued=false)
This method connects two components by the indicated signals and slots.
ARCSAbstractComponent * getComponent(QString name)
Retrieves a component by its id.
virtual QString toString()
Defines a basic seralization mechanism.
virtual QStringList getSignals()
Returns the names of the availables signals.
This class manages components and constants in a given context.
virtual void genuineDestroy()=0
This method should implement the destruction of the actual component.
virtual bool genuineInstanciate()=0
This method should implement the instanciation of the actual component.
virtual QStringList getSlots()
Returns the names of the available slots.
virtual void getProxySignal(QString signal, ObjectList &obj, QStringList &proxySignal)
Creates a proxy signal to interface a component to native ARCS components.
virtual bool genuineConnect(QString, ARCSAbstractComponent *, QString, bool=false)
This method connects two components by the indicated signals and slots.
virtual QStringList getSignals()=0
Returns the names of the availables signals.