QList< SocFileRef > Backend::GetSocFileList() { QList< SocFileRef > list; for(std::list< SocFile >::iterator it = m_socs.begin(); it != m_socs.end(); ++it) list.append(SocFileRef(&(*it))); return list; }
bool Backend::LoadSocDesc(const QString& filename) { SocFile f(filename); if(!f.IsValid()) return false; m_socs.push_back(f); emit OnSocAdded(SocFileRef(&m_socs.back())); return true; }