event: Receive and operate on GcalCalendar

Instead of receiving an ESource, receive a GcalCalendar
and operate on it. Many places needed to be adjusted for
that.

Tests need to be rethinked.
This commit is contained in:
Georges Basile Stavracas Neto
2019-05-04 12:05:39 -03:00
parent 810ef7956b
commit 1118c74881
16 changed files with 168 additions and 107 deletions
+5 -4
View File
@@ -19,6 +19,7 @@
#ifndef GCAL_EVENT_H
#define GCAL_EVENT_H
#include "gcal-calendar.h"
#include "gcal-recurrence.h"
#include <glib-object.h>
@@ -47,7 +48,7 @@ G_DECLARE_FINAL_TYPE (GcalEvent, gcal_event, GCAL, EVENT, GObject)
GQuark gcal_event_error_quark (void);
GcalEvent* gcal_event_new (ESource *source,
GcalEvent* gcal_event_new (GcalCalendar *calendar,
ECalComponent *component,
GError **error);
@@ -96,10 +97,10 @@ const gchar* gcal_event_get_location (GcalEvent
void gcal_event_set_location (GcalEvent *self,
const gchar *location);
ESource* gcal_event_get_source (GcalEvent *self);
GcalCalendar* gcal_event_get_calendar (GcalEvent *self);
void gcal_event_set_source (GcalEvent *self,
ESource *source);
void gcal_event_set_calendar (GcalEvent *self,
GcalCalendar *calendar);
const gchar* gcal_event_get_summary (GcalEvent *self);