manager: add shell search provider helpers
Added: + :query-completed signal. This would allow to know when the search has completed and the shell search provider will be able to sort and rank the results Added API to: + set the query for the shell provider model + set the subscription of the view on the shell provider model + know when the querying of the views completed on the model and all the events are available for retrieving
This commit is contained in:
+13
-2
@@ -50,6 +50,7 @@ struct _GcalManagerClass
|
||||
void (*source_added) (GcalManager *manager, ESource *source, gboolean enabled);
|
||||
void (*source_removed) (GcalManager *manager, ESource *source);
|
||||
void (*load_completed) (GcalManager *manager);
|
||||
void (*query_completed) (GcalManager *manager);
|
||||
};
|
||||
|
||||
typedef struct
|
||||
@@ -70,11 +71,21 @@ ESource* gcal_manager_get_default_source (GcalManager *manager
|
||||
|
||||
icaltimezone* gcal_manager_get_system_timezone (GcalManager *manager);
|
||||
|
||||
void gcal_manager_set_shell_search (GcalManager *manager);
|
||||
void gcal_manager_setup_shell_search (GcalManager *manager,
|
||||
ECalDataModelSubscriber *subscriber);
|
||||
|
||||
void gcal_manager_set_shell_query (GcalManager *manager,
|
||||
void gcal_manager_set_shell_search_query (GcalManager *manager,
|
||||
const gchar *query);
|
||||
|
||||
void gcal_manager_set_shell_search_subscriber (GcalManager *manager,
|
||||
ECalDataModelSubscriber *subscriber,
|
||||
time_t range_start,
|
||||
time_t range_end);
|
||||
|
||||
gboolean gcal_manager_shell_search_done (GcalManager *manager);
|
||||
|
||||
GList* gcal_manager_get_shell_search_events (GcalManager *manager);
|
||||
|
||||
void gcal_manager_set_subscriber (GcalManager *manager,
|
||||
ECalDataModelSubscriber *subscriber,
|
||||
time_t range_start,
|
||||
|
||||
Reference in New Issue
Block a user