Public Member Functions | Static Public Attributes | List of all members
ARCSInit Class Reference

Desribes an initialization over a component. More...

#include <arcsinit.h>

Collaboration diagram for ARCSInit:
Collaboration graph

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)
 
ARCSAbstractComponentgetDestination ()
 
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()
 

Detailed Description

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)

Author
Jean-Yves Didier
Date
December, the 5th, 2008

Definition at line 46 of file arcsinit.h.

Constructor & Destructor Documentation

ARCSInit::ARCSInit ( ARCSAbstractComponent d,
QString  slt,
QVariant  v 
)

Invocation constructor

An invocation is performed on a slot of a particular component.

Parameters
dComponent upon which an invocation will be performed.
sltslot name through which invocation will be performed.
vvalue passed during invocation.

Definition at line 57 of file arcsinit.cpp.

Here is the call graph for this function:

Member Function Documentation

ARCSAbstractComponent* ARCSInit::getDestination ( )
inline

Returns the invocation's destination component

Definition at line 69 of file arcsinit.h.

QString ARCSInit::getSlotName ( )
inline

Returns the invocation's slot name

Definition at line 73 of file arcsinit.h.

Here is the caller graph for this function:

QVariant ARCSInit::getValue ( )
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.

Here is the call graph for this function:

Here is the caller graph for this function:

QString ARCSInit::getValueType ( )

Returns the type of the invocation's parameter

Definition at line 102 of file arcsinit.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Returns
true if succeeded, false otherwise.

Definition at line 72 of file arcsinit.cpp.

Here is the call graph for this function:

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.

Returns
true if succeeded, false otherwise.

Definition at line 82 of file arcsinit.cpp.

Here is the call graph for this function:

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).

Returns
true if succeeded, false otherwise.

Definition at line 91 of file arcsinit.cpp.

Here is the call graph for this function:

bool ARCSInit::isComponent ( )
inline

Tells wether the invocation parameter is a component name or not

Definition at line 108 of file arcsinit.h.

bool ARCSInit::isConstant ( )
inline

Tells wether the invocation parameter is extracted from a constant or not

Definition at line 106 of file arcsinit.h.

bool ARCSInit::operator== ( ARCSInit  i)
inline
Todo:
solve the problem of QVariant copy

Comparison operator

Definition at line 115 of file arcsinit.h.

Here is the call graph for this function:

void ARCSInit::setDestination ( ARCSAbstractComponent d)
inline

Sets the destination component on which invocation will be performed

Definition at line 62 of file arcsinit.h.

void ARCSInit::setSlotName ( QString  slt)
inline

Sets the slot through which an invocation is performed

Definition at line 64 of file arcsinit.h.

void ARCSInit::setValue ( QVariant  v)
inline

Sets the value passed at invocation

Definition at line 66 of file arcsinit.h.


The documentation for this class was generated from the following files: