find_event_ids


Description:

public async uint32[] find_event_ids (TimeRange time_range, GenericArray<Event> event_templates, StorageState storage_state, uint32 num_events, ResultType result_type, Cancellable? cancellable = null) throws Error

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 intergers represrting Event id's. This list must be the sole argument for the callback.

In order to use this method there needs to be a mainloop runnning. Both Qt and GLib mainloops are supported.

Parameters:

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