30448f62
Peter M. Groen
Replace Qt with s...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "connections.h"
using namespace osdev::components;
Connections::Connections()
: m_connections()
{
}
void Connections::addConnection(const QString& _source, const QString& _target, const QString& _output, const QString& _input)
{
m_connections.append(QSharedPointer<Connection>(new Connection(_source, _target, _output, _input)));
}
QSharedPointer<Connection> Connections::getConnection(int index)
{
if (index < m_connections.count()) {
return m_connections.at(index);
}
return QSharedPointer<Connection>();
}
|