![]() |
Desribes an initialization over a component. More...
#include <arcsinit.h>
Public Member Functions | |
ARCSInit () | |
Default constructor. | |
ARCSInit (const ARCSInit &i) | |
Copy constructor. | |
ARCSInit (ARCSAbstractComponent *d, QString slt, QVariant v) | |
~ARCSInit () | |
Destructor. | |
void | setDestination (ARCSAbstractComponent *d) |
void | setSlotName (QString slt) |
void | setValue (QVariant v) |
ARCSAbstractComponent * | getDestination () |
QString | getDestinationName () |
QString | getSlotName () |
QVariant | getValue () |
QString | getValueType () |
QString | getValueString () |
bool | init () |
bool | init (QVariant var) |
bool | init (ARCSAbstractComponent *cmp) |
bool | isConstant () |
bool | isComponent () |
bool | isComplete () |
bool | operator== (ARCSInit i) |
Static Public Attributes | |
static ARCSInit | null = ARCSInit() |
Desribes an initialization over a component.
This class represents an initialization over a component. It also handles and performs initializations on the component. (Here we should more properly talk of invocations)
Definition at line 46 of file arcsinit.h.
ARCSInit::ARCSInit | ( | ARCSAbstractComponent * | d, |
QString | slt, | ||
QVariant | v | ||
) |
Invocation constructor
An invocation is performed on a slot of a particular component.
d | Component upon which an invocation will be performed. |
slt | slot name through which invocation will be performed. |
v | value passed during invocation. |
Definition at line 57 of file arcsinit.cpp.
|
inline |
Returns the invocation's destination component
Definition at line 69 of file arcsinit.h.
|
inline |
Returns the invocation's slot name
Definition at line 73 of file arcsinit.h.
|
inline |
Returns the invocation's value
Definition at line 75 of file arcsinit.h.
QString ARCSInit::getValueString | ( | ) |
Returns a string representation of the invocation's parameter
Definition at line 110 of file arcsinit.cpp.
QString ARCSInit::getValueType | ( | ) |
Returns the type of the invocation's parameter
Definition at line 102 of file arcsinit.cpp.
bool ARCSInit::init | ( | ) |
Peforms actual invocation. init() is in three falvours, one for invocations without parameters (currently this one), one for invocations with one standard parameter, one for invocations with a component passed as a parameter.
true
if succeeded, false
otherwise. Definition at line 72 of file arcsinit.cpp.
bool ARCSInit::init | ( | QVariant | var | ) |
Peforms actual invocation. init() is in three falvours, one for invocations without parameters, one for invocations with one standard parameter (currently this one), one for invocations with a component passed as a parameter.
true
if succeeded, false
otherwise. Definition at line 82 of file arcsinit.cpp.
bool ARCSInit::init | ( | ARCSAbstractComponent * | cmp | ) |
Peforms actual invocation. init() is in three falvours, one for invocations without parameters, one for invocations with one standard parameter, one for invocations with a component passed as a parameter (currently this one).
true
if succeeded, false
otherwise. Definition at line 91 of file arcsinit.cpp.
|
inline |
Tells wether the invocation parameter is a component name or not
Definition at line 108 of file arcsinit.h.
|
inline |
Tells wether the invocation parameter is extracted from a constant or not
Definition at line 106 of file arcsinit.h.
|
inline |
Comparison operator
Definition at line 115 of file arcsinit.h.
|
inline |
Sets the destination component on which invocation will be performed
Definition at line 62 of file arcsinit.h.
|
inline |
Sets the slot through which an invocation is performed
Definition at line 64 of file arcsinit.h.
|
inline |
Sets the value passed at invocation
Definition at line 66 of file arcsinit.h.