\r
ConnectedInterface::ConnectedInterface(AbstractBlock* _owner) : AbstractInterface(_owner) {\r
connectedFrom = NULL;\r
+ outputPattern = NULL;\r
+ \r
}\r
\r
ConnectedInterface::ConnectedInterface(AbstractBlock* _owner, const QString& _name, const QString& _type, const QString& _width, int _direction, int _purpose) : AbstractInterface(_owner, _name, _type, _width, _direction, _purpose) {\r
connectedFrom = NULL;\r
+ outputPattern = NULL;\r
}\r
\r
+ConnectedInterface::~ConnectedInterface() {\r
+ if (outputPattern != NULL) delete outputPattern;\r
+}\r
+\r
+/* NB/ became useless since disconnectTo does the job\r
+ \r
void ConnectedInterface::removeConnectedTo(ConnectedInterface *iface) {\r
- connectedTo.removeOne(iface);\r
+ connectedTo.removeAll(iface);\r
}\r
+*/\r
\r
void ConnectedInterface::clearConnections() {\r
connectedFrom = NULL;\r
connectedTo.clear();\r
}\r
\r
+void ConnectedInterface::setOutputPattern(QList<char>* pattern) {\r
+ if (outputPattern != NULL) delete outputPattern;\r
+ outputPattern = pattern; \r
+}\r
void ConnectedInterface::connectTo(ConnectedInterface *iface) {\r
\r
connectedTo.append(iface);\r