bool Backend::GetSocByName(const QString& name, SocRef& s) { for(std::list< soc_t >::iterator it = m_socs.begin(); it != m_socs.end(); ++it) if(it->name == name.toStdString()) { s = SocRef(&(*it)); return true; } return false; }
SocRef SocFile::GetSocRef() { return SocRef(this); }