43 mOptions =
profile()->getXmlSettings().descend(
"networkservice");
46 QString NetworkServiceImpl::newConnection(QString suggested_uid)
48 QString uid = this->findUniqueUidNumber(suggested_uid);
50 mConnections.push_back(connection);
55 QString NetworkServiceImpl::findUniqueUidNumber(QString uidBase)
const 58 QString uid = uidBase;
59 while (this->findConnection(uid))
62 uid = QString(
"%1%2").arg(uidBase).arg(counter);
76 for (
unsigned i=0; i<mConnections.size(); ++i)
77 retval << mConnections[i]->getNetworkConnection()->getUid();
83 for (
unsigned i=0; i<mConnections.size(); ++i)
84 if (mConnections[i]->getNetworkConnection()->getUid() == uid)
85 return mConnections[i];
95 this->newConnection(uid);
96 connection = this->findConnection(uid);
cxResource_EXPORT ProfilePtr profile()
QStringList getConnectionUids() const
boost::shared_ptr< class NetworkConnectionHandle > NetworkConnectionHandlePtr
void connectionsChanged()
NetworkConnectionHandlePtr getConnection(QString uid)
std::vector< NetworkConnectionHandlePtr > getConnections() const
Namespace for all CustusX production code.