Model: Refactoring: keep track of what was saved into MessageDataBundle
commit8b854970b40429ff80b0a2f1958ecd41745128a2
authorJan Kundrát <jkt@kde.org>
Sat, 12 Mar 2016 22:10:37 +0000 (12 23:10 +0100)
committerJan Kundrát <jkt@kde.org>
Sun, 13 Mar 2016 12:32:36 +0000 (13 13:32 +0100)
tree11e1e208300132eb45e13d64f3c7f6c33ca342cd
parente34b29d85cdd7cb644ae4ed386e070339a8ebb4f
Model: Refactoring: keep track of what was saved into MessageDataBundle

This is a *ton* of boilerplate code, but the motivation behind this is
to get rid of that four explicit bools which handle what exactly was
already stored. Right now, the problem is that these bits live within
the context which processes a single FETCH response, so it's possible
that we fail to set appropriate state when the data are split into
several FETCH responses.

Change-Id: Ic0ba5949d841da715d1bd0d84716844f21108c80
src/Imap/Model/Cache.cpp
src/Imap/Model/Cache.h
src/Imap/Model/MailboxTree.cpp
src/Imap/Model/MailboxTree.h
src/Imap/Model/Model.cpp
tests/Imap/test_Imap_SelectedMailboxUpdates.cpp
tests/Imap/test_Imap_SelectedMailboxUpdates.h