RSS code clean up

This commit is contained in:
Christophe Dumez 2012-08-19 17:22:30 +03:00
parent 82fbb351dd
commit d7c36c9c3c
6 changed files with 100 additions and 73 deletions

View file

@ -38,14 +38,16 @@
#include "rssparser.h"
#include "downloadthread.h"
static const int MSECS_PER_MIN = 60000;
RssManager::RssManager():
m_rssDownloader(new DownloadThread(this)),
m_downloadRules(new RssDownloadRuleList),
m_rssParser(new RssParser(this))
{
connect(&m_refreshTimer, SIGNAL(timeout()), this, SLOT(refresh()));
connect(&m_refreshTimer, SIGNAL(timeout()), SLOT(refresh()));
m_refreshInterval = RssSettings().getRSSRefreshInterval();
m_refreshTimer.start(m_refreshInterval*60000);
m_refreshTimer.start(m_refreshInterval * MSECS_PER_MIN);
}
RssManager::~RssManager()