Exemplo n.º 1
0
void JobManagerPrivate::saveState() {
    RSSManager* rssMgr = JobManager::instance()->feedManager();
    QMapIterator<QString,JobAlert*> iter(alerts);
    qDebug()<<Q_FUNC_INFO<<"saving alerts:"<<alerts.size();
    while(iter.hasNext()) {
        JobAlert* a = iter.next().value();
        if(!a->isVisited())
            rssMgr->forgetCheckpoint(a->model()->baseUrl());
        rssMgr->setUserData(a->model()->baseUrl(),convertToFeedUserData(a->key()));
    }
    saveFavorites();
}
LLGridManager::~LLGridManager()
{
	saveFavorites();
}