Further work from two weeks ago simplifying the Folder interface
Because the SQLite and IMAP folder classes no longer implement Geary.Folder, they can be simplified greatly, which this patch does.
This commit is contained in:
parent
ad6b182964
commit
b3bc72b332
7 changed files with 53 additions and 307 deletions
|
|
@ -283,20 +283,6 @@ private class Geary.Sqlite.Folder : Object, Geary.ReferenceSemantics {
|
|||
return yield do_list_email_async(transaction, list, required_fields, true, cancellable);
|
||||
}
|
||||
|
||||
public async Gee.List<Geary.Email>? list_email_sparse_async(int[] by_position,
|
||||
Geary.Email.Field required_fields, Geary.Folder.ListFlags flags, Cancellable? cancellable = null)
|
||||
throws Error {
|
||||
check_open();
|
||||
|
||||
Transaction transaction = yield db.begin_transaction_async("Folder.list_email_sparse_async",
|
||||
cancellable);
|
||||
|
||||
Gee.List<MessageLocationRow>? list = yield location_table.list_sparse_async(transaction,
|
||||
folder_row.id, by_position, cancellable);
|
||||
|
||||
return yield do_list_email_async(transaction, list, required_fields, false, cancellable);
|
||||
}
|
||||
|
||||
public async Gee.List<Geary.Email>? list_email_by_id_async(Geary.EmailIdentifier initial_id,
|
||||
int count, Geary.Email.Field required_fields, Geary.Folder.ListFlags flags,
|
||||
Cancellable? cancellable = null) throws Error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue