[gnome-calendar] Added has_reminders API to GcalManager.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Added has_reminders API to GcalManager.
- Date: Thu, 23 Aug 2012 13:45:31 +0000 (UTC)
commit fc3c165f04fcb6c6c347e54a1e27af5d2cb4927a
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Wed Aug 22 20:35:56 2012 -0400
Added has_reminders API to GcalManager.
src/gcal-manager.c | 17 +++++++++++++++++
src/gcal-manager.h | 4 ++++
2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 3965c3d..ae10d95 100644
--- a/src/gcal-manager.c
+++ b/src/gcal-manager.c
@@ -1436,6 +1436,23 @@ gcal_manager_get_event_reminders (GcalManager *manager,
}
gboolean
+gcal_manager_has_event_reminders (GcalManager *manager,
+ const gchar *source_uid,
+ const gchar *event_uid)
+{
+ GcalManagerPrivate *priv;
+ GcalManagerUnit *unit;
+ ECalComponent *event;
+
+ g_return_val_if_fail (GCAL_IS_MANAGER (manager), FALSE);
+ priv = manager->priv;
+
+ unit = g_hash_table_lookup (priv->clients, source_uid);
+ event = g_hash_table_lookup (unit->events, event_uid);
+ return e_cal_component_has_alarms (event);
+}
+
+gboolean
gcal_manager_get_event_all_day (GcalManager *manager,
const gchar *source_uid,
const gchar *event_uid)
diff --git a/src/gcal-manager.h b/src/gcal-manager.h
index df82b22..aff5004 100644
--- a/src/gcal-manager.h
+++ b/src/gcal-manager.h
@@ -111,6 +111,10 @@ GList* gcal_manager_get_event_reminders (GcalManager *manager
const gchar *source_uid,
const gchar *event_uid);
+gboolean gcal_manager_has_event_reminders (GcalManager *manager,
+ const gchar *source_uid,
+ const gchar *event_uid);
+
gboolean gcal_manager_get_event_all_day (GcalManager *manager,
const gchar *source_uid,
const gchar *event_uid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]