From c58790758eddfd7bc1eba2f68d61f347515a1cca Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Thu, 10 Apr 2003 14:38:24 +0000 Subject: added #define's for static capabilities. 2003-04-10 Rodrigo Moya * cal-util/cal-util.h: added #define's for static capabilities. * pcs/cal-backend-file.c (cal_backend_file_get_static_capabilities): use the #define's above. svn path=/trunk/; revision=20800 --- calendar/ChangeLog | 7 +++++++ calendar/cal-util/cal-util.h | 11 +++++++++++ calendar/pcs/cal-backend-file.c | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 03d123e2ae..0083402378 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2003-04-10 Rodrigo Moya + + * cal-util/cal-util.h: added #define's for static capabilities. + + * pcs/cal-backend-file.c (cal_backend_file_get_static_capabilities): + use the #define's above. + 2003-04-09 Chris Toshok Fixes #40133 diff --git a/calendar/cal-util/cal-util.h b/calendar/cal-util/cal-util.h index 7b4f6c051e..c3a02e4efc 100644 --- a/calendar/cal-util/cal-util.h +++ b/calendar/cal-util/cal-util.h @@ -99,6 +99,17 @@ char *cal_util_expand_uri (char *uri, gboolean tasks); void cal_util_add_timezones_from_component (icalcomponent *vcal_comp, CalComponent *comp); +/* The static capabilities to be supported by backends */ +#define CAL_STATIC_CAPABILITY_NO_ALARM_REPEAT "no-alarm-repeat" +#define CAL_STATIC_CAPABILITY_NO_EMAIL_ALARMS "no-email-alarms" +#define CAL_STATIC_CAPABILITY_NO_TASK_ASSIGNMENT "no-task-assignment" +#define CAL_STATIC_CAPABILITY_NO_TRANSPARENCY "no-transparency" +#define CAL_STATIC_CAPABILITY_ONE_ALARM_ONLY "one-alarm-only" +#define CAL_STATIC_CAPABILITY_ORGANIZER_MUST_ATTEND "organizer-must-attend" +#define CAL_STATIC_CAPABILITY_ORGANIZER_NOT_EMAIL_ADDRESS "organizer-not-email-address" +#define CAL_STATIC_CAPABILITY_REMOVE_ALARMS "remove-alarms" +#define CAL_STATIC_CAPABILITY_SAVE_SCHEDULES "save-schedules" + G_END_DECLS #endif diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c index 11556cb8fa..103d2a70c2 100644 --- a/calendar/pcs/cal-backend-file.c +++ b/calendar/pcs/cal-backend-file.c @@ -461,7 +461,7 @@ cal_backend_file_get_alarm_email_address (CalBackend *backend) static const char * cal_backend_file_get_static_capabilities (CalBackend *backend) { - return "no-email-alarms"; + return CAL_STATIC_CAPABILITY_NO_EMAIL_ALARMS; } /* Idle handler; we save the calendar since it is dirty */ -- cgit v1.2.3