![]() |
Maintains connections between objects. More...
#include <arcssheet.h>

Public Types | |
| typedef ARCSInit &(ARCSSheet::* | AddInvocationMethod) (QString, QString, QString, QString) |
| typedef void(ARCSSheet::* | GetInvocationsMethod) (QStringList &, QStringList &, QStringList &, QStringList &) |
Public Member Functions | |
| ARCSSheet (ARCSContext *ctx=0, QString n=QString::null) | |
| Constructor. | |
| ARCSSheet (const ARCSSheet &sheet) | |
| Copy constructor. More... | |
| ARCSConnection & | addConnection (QString src, QString sgn, QString dst, QString slt, bool q=false, bool head=false) |
| Adds a connection to the sheet structure. More... | |
| ARCSInit & | addPreconnect (QString dst, QString slt, QString t, QString val) |
| Adds a pre-connection initialisation to the sheet structure. More... | |
| ARCSInit & | addPostconnect (QString dst, QString slt, QString t, QString val) |
| Adds a post-connection initialisation to the sheet structure. More... | |
| ARCSInit & | addCleanup (QString dst, QString slt, QString t, QString val) |
| Adds a cleanup invocation to the sheet structure. More... | |
| void | getConnections (QStringList &sources, QStringList &signls, QStringList &destinations, QStringList &slts) |
| Allows to retrieve connections. More... | |
| ARCSConnection & | getConnection (QString source, QString sgn, QString dst, QString slt) |
| returns a reference to a connection in the sheet structure More... | |
| int | getConnectionIndex (ARCSConnection &connection) |
| int | getConnectionIndex (QString source, QString sgn, QString dst, QString slt) |
| int | getPreconnectIndex (ARCSInit &init) |
| int | getPostconnectIndex (ARCSInit &init) |
| int | getCleanupIndex (ARCSInit &init) |
| ARCSInit & | getPreConnect (QString dst, QString slt, QString t, QString val) |
| ARCSInit & | getPostConnect (QString dst, QString slt, QString t, QString val) |
| ARCSInit & | getCleanup (QString dst, QString slt, QString t, QString val) |
| void | swapConnections (int x, int y) |
| void | getPreconnects (QStringList &destinations, QStringList &slts, QStringList &types, QStringList &values) |
| Allows to retrieve preconnection invocations. More... | |
| void | getPostconnects (QStringList &destinations, QStringList &slts, QStringList &types, QStringList &values) |
| Allows to retrieve postconnection invocations. More... | |
| void | getCleanups (QStringList &destinations, QStringList &slts, QStringList &types, QStringList &values) |
| Allows to retrieve cleanup invocations. More... | |
| void | activate () |
| void | deactivate () |
| void | removeConnection (ARCSConnection c) |
| void | removePreconnect (ARCSInit i) |
| void | removePostconnect (ARCSInit i) |
| void | removeCleanup (ARCSInit i) |
| ARCSContext * | getContext () |
| void | setContext (ARCSContext *ctx) |
| void | preconnect () |
| void | connect () |
| void | postconnect () |
| void | disconnect () |
| void | cleanup () |
| void | reset () |
| void | resetConnections () |
| void | resetPreconnects () |
| void | resetPostconnects () |
| void | resetCleanups () |
| void | resetProperties () |
| void | setProperty (QString name, QString value) |
| QString | getProperty (QString name) |
| void | removeProperty (QString name) |
| QStringList | getComponentList () |
| Retrieves the list of components that are used in this sheet. More... | |
| void | removeComponent (QString name) |
| QStringList | getPropertyList () |
| bool | isActivated () |
| void | setName (QString s) |
| QString | getName () |
| bool | isEmpty () |
| void | swapPreconnects (int x, int y) |
| void | swapPostconnects (int x, int y) |
| void | swapCleanups (int x, int y) |
| void | swapInits (QList< ARCSInit > &lst, int x, int y) |
Static Public Attributes | |
| static ARCSSheet | null |
Maintains connections between objects.
Definition at line 48 of file arcssheet.h.
| ARCSSheet::ARCSSheet | ( | const ARCSSheet & | sheet | ) |
Copy constructor.
Warning: When a sheet is copied, the context it depends on is still the same !
Definition at line 50 of file arcssheet.cpp.
|
inline |
Activates a sheet i.e. enables preconnections, connections and postconnections
Definition at line 182 of file arcssheet.h.

|
inline |
Adds a cleanup invocation to the sheet structure.
| dst | destination component id |
| slt | destination component slot |
| t | initialisation type |
| val | initialisation value |
Definition at line 98 of file arcssheet.h.

| ARCSConnection & ARCSSheet::addConnection | ( | QString | src, |
| QString | sgn, | ||
| QString | dst, | ||
| QString | slt, | ||
| bool | q = false, |
||
| bool | head = false |
||
| ) |
Adds a connection to the sheet structure.
| src | source component's Id |
| sgn | source component's signal |
| dst | destination component's Id |
| slt | destination component's slot |
| q | tells wether the connection is queued or not (false by default) |
| head | tells wether the connection should be inserted on top of list or not (false by default) |
Definition at line 183 of file arcssheet.cpp.


|
inline |
Adds a post-connection initialisation to the sheet structure.
| dst | destination component id |
| slt | destination component slot |
| t | initialisation type |
| val | initialisation value |
Definition at line 87 of file arcssheet.h.

|
inline |
Adds a pre-connection initialisation to the sheet structure.
| dst | destination component's id |
| slt | destination component's slot |
| t | initialisation type |
| val | initialisation value |
Definition at line 76 of file arcssheet.h.

|
inline |
Performs some cleanup
Definition at line 203 of file arcssheet.h.

| void ARCSSheet::connect | ( | ) |
Connects all links
Definition at line 161 of file arcssheet.cpp.


|
inline |
Deactivates a sheet i.e. disconnect all and perform cleanups
Definition at line 184 of file arcssheet.h.

| void ARCSSheet::disconnect | ( | ) |
Disconnect all
Definition at line 172 of file arcssheet.cpp.


|
inline |
Allows to retrieve cleanup invocations.
| destinations | list of destination component ids to fill |
| slts | list of slots to fill |
| types | list of invocation type |
| values | list of values |
Definition at line 176 of file arcssheet.h.

| QStringList ARCSSheet::getComponentList | ( | ) |
Retrieves the list of components that are used in this sheet.
The list of components is given by inspecting connections and invocations
Definition at line 74 of file arcssheet.cpp.
| ARCSConnection & ARCSSheet::getConnection | ( | QString | source, |
| QString | sgn, | ||
| QString | dst, | ||
| QString | slt | ||
| ) |
returns a reference to a connection in the sheet structure
| src | source component's Id |
| sgn | source component's signal |
| dst | destination component's Id |
| slt | destination component's slot |
Definition at line 206 of file arcssheet.cpp.


| void ARCSSheet::getConnections | ( | QStringList & | sources, |
| QStringList & | signls, | ||
| QStringList & | destinations, | ||
| QStringList & | slts | ||
| ) |
Allows to retrieve connections.
| sources | list of source component ids to fill |
| signls | list of signals to fill |
| destinations | list of destination component ids to fill |
| slts | list of slots to fill |
Definition at line 248 of file arcssheet.cpp.


|
inline |
returns the name of the sheet
Definition at line 246 of file arcssheet.h.
|
inline |
Allows to retrieve postconnection invocations.
| destinations | list of destination component ids to fill |
| slts | list of slots to fill |
| types | list of invocation type |
| values | list of values |
Definition at line 165 of file arcssheet.h.

|
inline |
Allows to retrieve preconnection invocations.
| destinations | list of destination component ids to fill |
| slts | list of slots to fill |
| types | list of invocation type |
| values | list of values |
Definition at line 154 of file arcssheet.h.

|
inline |
Get a property
Definition at line 216 of file arcssheet.h.

|
inline |
Return the list of properties stored in the sheet
Definition at line 237 of file arcssheet.h.
|
inline |
Checks wether the sheet is activated or not
Definition at line 241 of file arcssheet.h.

|
inline |
Performs postconnections
Definition at line 199 of file arcssheet.h.

|
inline |
Performs preconnections
Definition at line 195 of file arcssheet.h.

|
inline |
Sets the name of the sheet
Definition at line 244 of file arcssheet.h.

|
inline |
Set a property
Definition at line 214 of file arcssheet.h.

1.8.9.1