diff options
Diffstat (limited to 'launcher/news/NewsChecker.h')
-rw-r--r-- | launcher/news/NewsChecker.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/launcher/news/NewsChecker.h b/launcher/news/NewsChecker.h index 84b1f552..8467a541 100644 --- a/launcher/news/NewsChecker.h +++ b/launcher/news/NewsChecker.h @@ -30,7 +30,7 @@ public: /*! * Constructs a news reader to read from the given RSS feed URL. */ - NewsChecker(const QString& feedUrl); + NewsChecker(shared_qobject_ptr<QNetworkAccessManager> network, const QString& feedUrl); /*! * Returns the error message for the last time the news was loaded. @@ -80,7 +80,7 @@ protected: /* data */ QList<NewsEntryPtr> m_newsEntries; //! The network job to use to load the news. - NetJobPtr m_newsNetJob; + NetJob::Ptr m_newsNetJob; //! True if news has been loaded. bool m_loadedNews; @@ -93,6 +93,8 @@ protected: /* data */ */ QString m_lastLoadError; + shared_qobject_ptr<QNetworkAccessManager> m_network; + protected slots: /// Emits newsLoaded() and sets m_lastLoadError to empty string. void succeed(); |