Пример #1
0
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;
}
Пример #2
0
SocRef SocFile::GetSocRef()
{
    return SocRef(this);
}