Geary.SearchQuery: Allow client apps to build search queries

Adds classes that allow building arbitrary query expressions and require
an instance to be provided to Geary.SearchQuery, to be set as a
property.

This enables query expressions to be parsed by clients instead of the
engine, in which ever whay they choose.
This commit is contained in:
Michael Gratton 2019-12-16 23:17:55 +11:00 committed by Michael James Gratton
parent 4fe0d92147
commit 0112c8192c
10 changed files with 1229 additions and 57 deletions

View file

@ -7,8 +7,9 @@
public class Mock.SearchQuery : Geary.SearchQuery {
internal SearchQuery(Geary.Account owner, string raw) {
base(owner, raw, Geary.SearchQuery.Strategy.EXACT);
internal SearchQuery(Gee.List<Geary.SearchQuery.Term> expression,
string raw) {
base(expression, raw);
}
}