NOISSUE continue refactoring things to make tests pass
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user