29 #ifndef __ARCSAPPLICATIONCOMPONENT_H__
30 #define __ARCSAPPLICATIONCOMPONENT_H__
32 #include <arcs/arcsapplicationobject.h>
33 #include <arcs/arcscontrollercomponent.h>
34 #include <arcs/arcsprocess.h>
55 bool startApplication();
57 bool stopApplication();
77 void removeComponent(QString name);
81 void swapProcesses(
int i,
int j) { processes.swap(i,j); }
91 virtual QString
toString() {
return QString::null; }
104 void changeConstant(QString name, QString representation) { context.modifyConstant(name, representation); }
120 template<
typename T>
static void setInterface(T* iface) { _interface = iface; }
132 virtual void getProxySlot(QString slot, ObjectList& obj, QStringList &proxySlot)
134 obj << defaultCore ; proxySlot << slot;
136 virtual void getProxySignal(QString signal, ObjectList& obj, QStringList &proxySignal)
138 obj << defaultCore ; proxySignal << signal;
150 QList<ARCSProcess*> processes ;
156 bool applicationFinished;
158 static void* _interface;
163 #endif //__ARCSAPPLICATIONCOMPONENT_H__
ARCSAppFlag
Flags to specify in which mode applications should start.
bool instanciate()
Instanciates the real component.
Application objects are used to implement specific interfaces when the application needs to be embedd...
void changeConstant(QString name, QString representation)
This hack allows to change the value of a constant in the constant pool.
This class represents an application.
virtual QVariant getGenuineComponentInstance()
This class is representing a process under ARCS.
void setCurrentMode(ARCS::ARCSAppFlag flag)
void addProcess(ARCSProcess *ap)
ARCS::ARCSAppFlag getCurrentMode()
Class handling the generic description of a component.
virtual bool loadFile(QString fn)
Defines a way to load a component description from a file.
Base class for launching and handling ARCS applications.
QStringList getMethodList(const QMetaObject *object, QMetaMethod::MethodType type)
Helper method for components.
virtual void genuineDestroy()
This method should implement the destruction of the actual component.
virtual QStringList getSlots()
Returns the names of the available slots.
virtual QString toString()
Defines a basic seralization mechanism.
This class manages components and constants in a given context.
ARCSProcess * getProcess(int idx)
virtual void getProxySignal(QString signal, ObjectList &obj, QStringList &proxySignal)
Creates a proxy signal to interface a component to native ARCS components.
ARCSContext * getContext()
void removeProcess(int i)
Removes a process in the list of processes managed by the application.
virtual bool genuineInstanciate()
This method should implement the instanciation of the actual component.
virtual bool parseString(QString s)=0
Defines a basic seralization mechanism.
virtual QStringList getSignals()
Returns the names of the availables signals.
For applications requiring event loops.
virtual void getProxySlot(QString slot, ObjectList &obj, QStringList &proxySlot)
Creates a proxy slot to interface a component to native ARCS components.