29 #ifndef __ARCSCONNECTION_H__
30 #define __ARCSCONNECTION_H__
32 #include <arcs/arcsabstractcomponent.h>
78 QList<QPointF>& getCoordinates() {
return coordinates; }
79 void setCoordinates(QList<QPointF> coords) { coordinates.clear(); coordinates += coords; }
86 QString getSourceName() {
return source->
getProperty(
"id").toString(); }
87 QString getDestinationName() {
return destination->getProperty(
"id").toString(); }
108 return ((source == c.source) && (destination == c.destination) &&
109 (slotName == c.slotName) && (signalName == c.signalName) );
112 bool isComplete() {
return source && destination && !slotName.isEmpty() && !signalName.isEmpty(); }
121 QList<QPointF> coordinates;
126 #endif //__ARCSCONNECTION_H__
void setSource(ARCSAbstractComponent *a)
ARCSAbstractComponent * getSource()
QVariant getProperty(QString name)
Gets a meta-property from this component.
ARCSAbstractComponent * getDestination()
Class handling the generic description of a component.
bool operator==(ARCSConnection c)
void setSignalName(QString s)
void setQueued(bool b)
Tells wether the connection will be queued or not.
void setDestination(ARCSAbstractComponent *a)
void setSlotName(QString s)