aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-04-10 22:38:24 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-04-10 22:38:24 +0800
commitc58790758eddfd7bc1eba2f68d61f347515a1cca (patch)
treefef6a8d1245f10ea28878c3fbab7482398d7d811
parent2e7d1434aedfbb634ede57faf6741dae5419d520 (diff)
downloadgsoc2013-evolution-c58790758eddfd7bc1eba2f68d61f347515a1cca.tar
gsoc2013-evolution-c58790758eddfd7bc1eba2f68d61f347515a1cca.tar.gz
gsoc2013-evolution-c58790758eddfd7bc1eba2f68d61f347515a1cca.tar.bz2
gsoc2013-evolution-c58790758eddfd7bc1eba2f68d61f347515a1cca.tar.lz
gsoc2013-evolution-c58790758eddfd7bc1eba2f68d61f347515a1cca.tar.xz
gsoc2013-evolution-c58790758eddfd7bc1eba2f68d61f347515a1cca.tar.zst
gsoc2013-evolution-c58790758eddfd7bc1eba2f68d61f347515a1cca.zip
added #define's for static capabilities.
2003-04-10 Rodrigo Moya <rodrigo@ximian.com> * 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
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/cal-util/cal-util.h11
-rw-r--r--calendar/pcs/cal-backend-file.c2
3 files changed, 19 insertions, 1 deletions
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 <rodrigo@ximian.com>
+
+ * 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 <toshok@ximian.com>
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 */