Downoad all images in the background and keep them in memory

As one of the first steps to offline capability we download all
images and put them into the JSON stirng and into the content
as data-uris for <img>-tags. This way you can go offline and keep
enjoying pictures in your feeds, at least untill you restart
FeedTheMonkey for now.
This commit is contained in:
Jeena 2016-10-05 16:49:40 +02:00
parent cf94bfe488
commit 6e450b72f1
3 changed files with 62 additions and 5 deletions

View file

@ -62,7 +62,7 @@ void TinyTinyRSS::reload()
for(int i = 0; i < posts.count(); i++)
{
QJsonObject postJson = posts.at(i).toObject();
Post *post = new Post(postJson, this);
Post *post = new Post(postJson, mNetworkManager, this);
connect(post, SIGNAL(readChanged(bool)), this, SLOT(onPostReadChanged(bool)));
mPosts.append(post);
}