search: added initial search implementation

This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:49 -05:00
parent 516a611055
commit f4eaf2217d
6 changed files with 525 additions and 80 deletions
+20
View File
@@ -506,6 +506,26 @@ gcal_manager_set_subscriber (GcalManager *manager,
range_start, range_end);
}
/**
* gcal_manager_set_query:
* @manager: A #GcalManager instance
* @query: (nullable): query terms or %NULL
*
* Set the query terms of the #ECalDataModel or clear it if %NULL is
* passed
*
**/
void
gcal_manager_set_query (GcalManager *manager,
const gchar *query)
{
GcalManagerPrivate *priv;
priv = gcal_manager_get_instance_private (manager);
e_cal_data_model_set_filter (priv->e_data_model,
query != NULL ? query : "#t");
}
/**
* gcal_manager_add_source:
* @manager: a #GcalManager