aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/idl
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-08-01 11:41:51 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-08-01 11:41:51 +0800
commit96d24f1297eaa5a6333b9fcfdf35420d273703af (patch)
tree7ee041b080dc6d9ae5f95bb61236ae0cff203663 /calendar/idl
parentfe8112f64b3083648d9b0e127aaa0868f25e28fd (diff)
downloadgsoc2013-evolution-96d24f1297eaa5a6333b9fcfdf35420d273703af.tar.gz
gsoc2013-evolution-96d24f1297eaa5a6333b9fcfdf35420d273703af.tar.zst
gsoc2013-evolution-96d24f1297eaa5a6333b9fcfdf35420d273703af.zip
The Wombat now keeps track of which categories are present in the objects
2001-07-31 Federico Mena Quintero <federico@ximian.com> The Wombat now keeps track of which categories are present in the objects of a calendar. It will notify the clients of changes in this set. This is to make the category drop-down menus in the calendar/tasks views be always up to date. * idl/evolution-calendar.idl (Listener): Added a notifyCategoriesChanged() method. The Wombat now keeps track of the categories within a calendar. * cal-client/cal-listener.[ch]: Switched it to use BonoboXObject. Also added the notifyCategoriesChanged implementation. * cal-client/cal-client.[ch]: Added a "categories_changed" signal. * pcs/cal-backend-file.c: Maintain a list of the live categories. (update_categories_from_comp): New function to maintain the set of live categories. (add_component): Update the set of categories. (remove_component): Likewise. (open_cal): Notify about changes in the set of categories. (create_cal): Likewise. (cal_backend_file_update_objects): Likewise. (cal_backend_file_remove_object): Likewise. (notify_categories_changed): New function to notify the clients about the current set of categories. * pcs/cal.c (cal_notify_categories_changed): New function. svn path=/trunk/; revision=11536
Diffstat (limited to 'calendar/idl')
-rw-r--r--calendar/idl/evolution-calendar.idl6
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/idl/evolution-calendar.idl b/calendar/idl/evolution-calendar.idl
index ef3f59e629..7f4a850ecb 100644
--- a/calendar/idl/evolution-calendar.idl
+++ b/calendar/idl/evolution-calendar.idl
@@ -25,6 +25,9 @@ module Calendar {
/* A unique identifier for a calendar component */
typedef string CalObjUID;
+ /* Simple sequence of strings */
+ typedef sequence<string> StringSeq;
+
/* Sequence of unique identifiers */
typedef sequence<CalObjUID> CalObjUIDSeq;
@@ -212,6 +215,9 @@ module Calendar {
/* Called from a Calendar when a component is removed */
void notifyObjRemoved (in CalObjUID uid);
+
+ /* Called from a Calendar when the list of categories changes */
+ void notifyCategoriesChanged (in StringSeq categories);
};
/* Handle to a live query on a calendar */