void ephy_history_service_find_urls (EphyHistoryService *self, gint64 from, gint64 to, guint limit, gint host, GList *substring_list, GCancellable *cancellable, EphyHistoryJobCallback callback, gpointer user_data) { EphyHistoryQuery *query; g_return_if_fail (EPHY_IS_HISTORY_SERVICE (self)); query = ephy_history_query_new (); query->from = from; query->to = to; query->substring_list = substring_list; query->sort_type = EPHY_HISTORY_SORT_MV; query->host = host; if (limit != 0) query->limit = limit; ephy_history_service_query_urls (self, query, cancellable, callback, user_data); ephy_history_query_free (query); }
void ephy_history_service_find_visits_in_time (EphyHistoryService *self, gint64 from, gint64 to, GCancellable *cancellable, EphyHistoryJobCallback callback, gpointer user_data) { EphyHistoryQuery *query; g_return_if_fail (EPHY_IS_HISTORY_SERVICE (self)); query = ephy_history_query_new (); query->from = from; query->to = to; ephy_history_service_query_visits (self, query, cancellable, callback, user_data); ephy_history_query_free (query); }
static void ephy_embed_shell_update_overview_urls (EphyEmbedShell *shell) { EphyEmbedShellPrivate *priv = ephy_embed_shell_get_instance_private (shell); EphyHistoryQuery *query; query = ephy_history_query_new (); query->sort_type = EPHY_HISTORY_SORT_MOST_VISITED; query->limit = EPHY_ABOUT_OVERVIEW_MAX_ITEMS; query->ignore_hidden = TRUE; ephy_history_service_query_urls (priv->global_history_service, query, NULL, (EphyHistoryJobCallback) history_service_query_urls_cb, shell); ephy_history_query_free (query); }