29 #ifndef __ARCSNATIVECOMPONENT_H__
30 #define __ARCSNATIVECOMPONENT_H__
32 #include <arcs/arcsabstractcomponent.h>
35 #include <QMetaMethod>
36 Q_DECLARE_METATYPE(QObject*)
66 virtual void getProxySlot(QString slot, ObjectList & obj, QStringList & proxySlot)
68 obj << realObject ; proxySlot << slot;
70 virtual void getProxySignal(QString signal, ObjectList & obj, QStringList & proxySignal) { obj << realObject ; proxySignal << signal; }
75 virtual QObject* createObject(QObject* parent)=0;
76 virtual void destroyObject(QObject* obj) = 0;
77 virtual QMetaObject getDescription() = 0;
78 virtual QString getName() {
return QString( getDescription().className()); }
82 static QObject* father;
88 #endif //__ARCSNATIVECOMPONENT_H__
virtual QString toString()=0
Defines a basic seralization mechanism.
virtual QVariant getGenuineComponentInstance()
virtual QStringList getSlots()=0
Returns the names of the available slots.
Class handling the generic description of a component.
virtual void getProxySlot(QString slot, ObjectList &obj, QStringList &proxySlot)
Creates a proxy slot to interface a component to native ARCS components.
virtual void getProxySignal(QString signal, ObjectList &obj, QStringList &proxySignal)
Creates a proxy signal to interface a component to native ARCS components.
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.
virtual QStringList getSignals()=0
Returns the names of the availables signals.
Component representation of ARCS Native components.