Send a query matching a collection of Event templates to the Log. The query will match if an event matches any of the templates. If an event template has more than one Subject the query will match if any one of the Subjects templates match.
The query will be done via an asynchronous DBus call and this method will return immediately. The return value will be passed to callback as a list of Events. This list must be the sole argument for the callback.
If you need to do a query yielding a large (or unpredictable) result set and you only want to show some of the results at the same time (eg., by paging them), consider using find_event_ids.
In order to use this method there needs to be a mainloop runnning. Both Qt and GLib mainloops are supported.
time_range |
TimeRange A time range in which the events should be considered in |
event_templates |
An GLib.GenericArray of Event |
storage_state |
StorageState storage state |
num_events |
int represteing the number of events that should be returned |
result_type |
ResultType how the events should be grouped and sorted |
cancellable |
a GLib.Cancellable to cancel the operation or %NULL |