diff --git a/src/datamanager.cpp b/src/datamanager.cpp index 7eef347d..1f2fff7e 100644 --- a/src/datamanager.cpp +++ b/src/datamanager.cpp @@ -292,7 +292,7 @@ void DataManager::removeFeed(const int &index) Q_EMIT feedRemoved(index); } -void DataManager::addFeed(const QString &url) +void DataManager::addFeed(const QString &url, bool fetch = true) { // This method will add the relevant internal data structures, and then add // a preliminary entry into the database. Those details (as well as entries, @@ -326,7 +326,17 @@ void DataManager::addFeed(const QString &url) Q_EMIT feedAdded(urlFromInput.toString()); - Fetcher::instance().fetch(urlFromInput.toString()); + if (fetch) Fetcher::instance().fetch(urlFromInput.toString()); +} + +void DataManager::addFeeds(const QStringList &urls) +{ + if (urls.count() == 0) return; + + for (int i=0; i