ConnectedInterface(AbstractBlock* _owner);
ConnectedInterface(AbstractBlock* _owner, const QString& _name, const QString& _type, const QString& _width, int _direction, int _purpose);
ConnectedInterface(AbstractBlock* _owner);
ConnectedInterface(AbstractBlock* _owner, const QString& _name, const QString& _type, const QString& _width, int _direction, int _purpose);
// getters
inline QList<ConnectedInterface*> getConnectedTo() { return connectedTo;}
inline ConnectedInterface* getConnectedFrom() { return connectedFrom;}
// getters
inline QList<ConnectedInterface*> getConnectedTo() { return connectedTo;}
inline ConnectedInterface* getConnectedFrom() { return connectedFrom;}
- bool connectTo(ConnectedInterface* iface);
- bool connectFrom(ConnectedInterface* iface);
+ void connectTo(ConnectedInterface* iface);
+ void disconnectTo(ConnectedInterface* iface);
+ //bool connectFrom(ConnectedInterface* iface);
ConnectedInterface* getConnectionToParentGroup();
ConnectedInterface* getConnectionFromParentGroup();
virtual AbstractInterface *clone() = 0;
ConnectedInterface* getConnectionToParentGroup();
ConnectedInterface* getConnectionFromParentGroup();
virtual AbstractInterface *clone() = 0;
* this interface. connecteFrom references such an interface if it exists.
*/
ConnectedInterface* connectedFrom;
* this interface. connecteFrom references such an interface if it exists.
*/
ConnectedInterface* connectedFrom;