29 #ifndef __ARCSCOMPOSITECOMPONENT_H__
30 #define __ARCSCOMPOSITECOMPONENT_H__
32 #include <arcs/arcssheet.h>
33 #include <arcs/arcsmethod.h>
65 context = *(sheet.getContext());
81 return addMethod(proxySignals, proxy,
id, signal);
91 return addMethod(proxySlots, proxy,
id, slot);
96 void getProxySlots(QStringList& proxies, QStringList& objects, QStringList& slotNames)
98 getProxyMethods(proxySlots, proxies, objects, slotNames);
102 void getProxySignals(QStringList& proxies, QStringList& objects, QStringList& signalNames)
104 getProxyMethods(proxySignals, proxies, objects, signalNames);
109 virtual void getProxySlot(QString slot, ObjectList & obj, QStringList & proxySlot);
110 virtual void getProxySignal(QString signal, ObjectList & obj, QStringList & proxySignal);
115 bool addMethod(QMap<QString, ARCSMethod> & list, QString proxy, QString
id, QString method);
116 void getProxyMethods(QMap<QString, ARCSMethod> & list, QStringList & proxies, QStringList & objects, QStringList& methodNames);
120 QMap<QString, ARCSMethod> proxySlots;
121 QMap<QString, ARCSMethod> proxySignals;
126 #endif //__ARCSCOMPOSITECOMPONENT_H__
void getProxySignals(QStringList &proxies, QStringList &objects, QStringList &signalNames)
void getProxySlots(QStringList &proxies, QStringList &objects, QStringList &slotNames)
Class defining a composite component i.e. a component made of components.
virtual QString toString()=0
Defines a basic seralization mechanism.
void setSheet(ARCSSheet ref)
Sets the sheet to use as an internal description of embedded components.
virtual void getProxySignal(QString signal, ObjectList &obj, QStringList &proxySignal)=0
Creates a proxy signal to interface a component to native ARCS components.
bool addProxySlot(QString proxy, QString id, QString slot)
Adds a wrapper to an internal component and its slot.
ARCSSheet * getSheet()
Returns the internal structure of this composite component described as a sheet.
virtual void getProxySlot(QString slot, ObjectList &obj, QStringList &proxySlot)=0
Creates a proxy slot to interface a component to native ARCS components.
virtual QStringList getSlots()=0
Returns the names of the available slots.
ARCSContext getContext()
Returns the internal context of the composite component.
Class handling the generic description of a component.
virtual bool loadFile(QString fn)
Defines a way to load a component description from a file.
virtual bool saveFile(QString fn)
Defines a way to save a component description inside a file.
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 bool parseString(QString s)=0
Defines a basic seralization mechanism.
Maintains connections between objects.
virtual QStringList getSignals()=0
Returns the names of the availables signals.
bool addProxySignal(QString proxy, QString id, QString signal)
Adds a wrapper to an internal component and its signal.