![]() |
Describes a connection. More...
#include <arcsconnection.h>

Public Member Functions | |
| ARCSConnection () | |
| ARCSConnection (const ARCSConnection &a) | |
| ARCSConnection (ARCSAbstractComponent *s, QString sgn, ARCSAbstractComponent *d, QString slt, bool q=false) | |
| Constructor creating a non empty connection. More... | |
| void | setSource (ARCSAbstractComponent *a) |
| void | setDestination (ARCSAbstractComponent *a) |
| void | setSlotName (QString s) |
| void | setSignalName (QString s) |
| void | setQueued (bool b) |
| Tells wether the connection will be queued or not. More... | |
| QList< QPointF > & | getCoordinates () |
| void | setCoordinates (QList< QPointF > coords) |
| ARCSAbstractComponent * | getSource () |
| ARCSAbstractComponent * | getDestination () |
| QString | getSourceName () |
| QString | getDestinationName () |
| QString | getSlotName () |
| QString | getSignalName () |
| bool | isQueued () |
| bool | connect () |
| Make the connection happen. More... | |
| bool | disconnect () |
| Disconnects the connection. More... | |
| bool | operator== (ARCSConnection c) |
| bool | isComplete () |
Static Public Attributes | |
| static ARCSConnection | null = ARCSConnection() |
Describes a connection.
This class represents a connection between two components. It is also in charge of handling connections/desconnections.
Definition at line 46 of file arcsconnection.h.
| ARCSConnection::ARCSConnection | ( | ) |
Constructor by default.
Definition at line 35 of file arcsconnection.cpp.
| ARCSConnection::ARCSConnection | ( | const ARCSConnection & | a | ) |
Copy constructor
Definition at line 44 of file arcsconnection.cpp.
| ARCSConnection::ARCSConnection | ( | ARCSAbstractComponent * | s, |
| QString | sgn, | ||
| ARCSAbstractComponent * | d, | ||
| QString | slt, | ||
| bool | q = false |
||
| ) |
Constructor creating a non empty connection.
| s | source component |
| sgn | signal name |
| d | destination component |
| slt | slot name |
| q | tells wether the connection is queued or not. |
Definition at line 55 of file arcsconnection.cpp.
| bool ARCSConnection::connect | ( | ) |
Make the connection happen.
true if connection succeeded, false otherwise. Definition at line 67 of file arcsconnection.cpp.


| bool ARCSConnection::disconnect | ( | ) |
Disconnects the connection.
true if disconnection succeeded, false otherwise. Definition at line 75 of file arcsconnection.cpp.


|
inline |
Returns the destination of the connection
Definition at line 84 of file arcsconnection.h.
|
inline |
Returns the signal name of the connection
Definition at line 92 of file arcsconnection.h.

|
inline |
Returns the slot name of the connection
Definition at line 90 of file arcsconnection.h.

|
inline |
Returns the source of the connection
Definition at line 82 of file arcsconnection.h.
|
inline |
Tells wether the connection is queued or not
Definition at line 94 of file arcsconnection.h.

|
inline |
comparison operator
Definition at line 106 of file arcsconnection.h.
|
inline |
Sets the destination component of the connection
Definition at line 65 of file arcsconnection.h.
|
inline |
Tells wether the connection will be queued or not.
When a connection is queued, parameters are given as events. It is sometimes useful when components are triggering each other in a loop since such behaviour might explode the function call stack.
| b | Connection is queued when set to true |
Definition at line 76 of file arcsconnection.h.
|
inline |
Sets the signal name of the connection
Definition at line 69 of file arcsconnection.h.
|
inline |
Sets the slot name of the connection
Definition at line 67 of file arcsconnection.h.
|
inline |
Sets the source component of the connection
Definition at line 63 of file arcsconnection.h.
1.8.9.1