33 #include <arcs/arcsinternaltypes.h>
49 Loop(QObject* parent = 0) : QObject(parent) {}
92 StackExploder(QObject* parent = 0) : QObject(parent), calls(0) {}
117 void setComponent(QObject* cmp);
118 void setIterations(
int);
121 Loop* nestedComponent;
133 Sleeper(QObject* parent=0) : QObject(parent) {}
135 void setSeconds(
int);
136 void setText(QString s) { text = s; }
139 void sendToken(QString);
146 #endif //__SAMPLE_H__
Displays every integer sent to itself.
void display(int i)
Displays in the console the number passed as a parameter.
void setIterations(int n)
Gives the number of iterations.
DisplayInt(QObject *parent=0)
Default constructor.
Template class to implement arrays.
This class is a loop sending as much iterations as needed.
Component triggering stack explosions This component intends to demonstrate how to circumvent stack e...
void newIteration(int i)
Sends an iteration.
Loop(QObject *parent=0)
Default contructor.
void sendToken(QString s)
Sends a token once the number of iterations have been reached.