Convert Geary.FolderRoot to be an actual root, not just a top-level
Instead of each top-level IMAP folder being a FolderRoot object, then children of that being FolderPath objects, this makes FolderRoot an "empty" FolderPath, so that both top-level and descendant folders are plain FolderPath objects. Aside from being more technically correct, this means that empty namespace roots can now be used interchangably with non-empty namespace roots (addressing issue #181), and custom folder implementations no longer need to provide their own trivial, custom FolderRoot. To support this, a notion of an IMAP root and a local root have been added from which all remote and local folder paths are now derived, existing places that assume top-level == root have been fixed, and unit tests have been added.
This commit is contained in:
parent
41bb79da94
commit
5a22e8e4a2
28 changed files with 589 additions and 344 deletions
|
|
@ -18,11 +18,11 @@ geary_test_engine_sources = [
|
|||
'engine/api/geary-email-identifier-mock.vala',
|
||||
'engine/api/geary-email-properties-mock.vala',
|
||||
'engine/api/geary-folder-mock.vala',
|
||||
'engine/api/geary-folder-path-mock.vala',
|
||||
|
||||
'engine/api/geary-account-information-test.vala',
|
||||
'engine/api/geary-attachment-test.vala',
|
||||
'engine/api/geary-engine-test.vala',
|
||||
'engine/api/geary-folder-path-test.vala',
|
||||
'engine/api/geary-service-information-test.vala',
|
||||
'engine/app/app-conversation-test.vala',
|
||||
'engine/app/app-conversation-monitor-test.vala',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue