void NetTree::Load() { m_grabberList = findAllDBTreeGrabbersByHost(VIDEO_FILE); m_rssList = findAllDBRSS(); fillTree(); }
void NetTree::TreeRefresh() { m_siteGeneric = new MythGenericTree("site root", 0, false); m_currentNode = m_siteGeneric; m_grabberList = findAllDBTreeGrabbers(); m_rssList = findAllDBRSS(); fillTree(); loadData(); switchView(); }
void NetTree::updateRSS() { if (findAllDBRSS().isEmpty()) return; QString title(tr("Updating RSS. This could take a while...")); createBusyDialog(title); RSSManager *rssMan = new RSSManager(); connect(rssMan, SIGNAL(finished()), this, SLOT(doTreeRefresh())); rssMan->startTimer(); rssMan->doUpdate(); }
void RSSEditor::loadData() { qDeleteAll(m_siteList); m_siteList = findAllDBRSS(); fillRSSButtonList(); if (m_sites->GetCount() == 0) { m_edit->SetVisible(false); m_delete->SetVisible(false); m_sites->SetVisible(false); } else { m_edit->SetVisible(true); m_delete->SetVisible(true); m_sites->SetVisible(true); } }