mu-query: tweaks threaded/threaded querying

This commit is contained in:
Dirk-Jan C. Binnema
2021-02-13 00:48:07 +02:00
parent 50511a7460
commit bba8af8d51
2 changed files with 29 additions and 20 deletions

View File

@ -52,7 +52,16 @@ public:
*/
Query(Query&& other);
/**
* Run a query on the store
*
* @param expr the search expression
* @param sortfieldid the sortfield-id. If the field is NONE, sort by DATE
* @param flags query flags
* @param maxnum maximum number of results to return. 0 for 'no limit'
*
* @return the query-results, or Nothing in case of error.
*/
Option<QueryResults> run(const std::string& expr="",
MuMsgFieldId sortfieldid=MU_MSG_FIELD_ID_NONE,
QueryFlags flags=QueryFlags::None,