diff options
author | JP Rosevear <jpr@novell.com> | 2005-01-03 22:47:17 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2005-01-03 22:47:17 +0800 |
commit | 4cb6cea812a9c2ac31402071005193dadecb646e (patch) | |
tree | fd7b22738db64d578f772e8a04c25d008d281cdf /plugins/itip-formatter/itip-view.h | |
parent | e1df9b7e3aa46861efdce6eb251966fedf15e7cc (diff) | |
download | gsoc2013-evolution-4cb6cea812a9c2ac31402071005193dadecb646e.tar.gz gsoc2013-evolution-4cb6cea812a9c2ac31402071005193dadecb646e.tar.zst gsoc2013-evolution-4cb6cea812a9c2ac31402071005193dadecb646e.zip |
new protos, signal
2005-01-03 JP Rosevear <jpr@novell.com>
* itip-view.h: new protos, signal
* itip-view.c (set_info_items): be more generic so both upper and
lower setting can use it
(set_upper_info_items): set the upper info items
(set_lower_info_items): ditto for lower items
(itip_view_destroy): clear both sets of info items
(itip_view_class_init): add source selected signalo
(itip_view_init): add separate upper and lower info item areas and
a detail area
(itip_view_add_upper_info_item): add upper info item
(itip_view_remove_upper_info_item): remove a singal upper area
info item
(itip_view_clear_upper_info_items): clear them all
(itip_view_add_lower_info_item): as above
(itip_view_remove_lower_info_item): ditto
(itip_view_clear_lower_info_items): ditto
(source_selected_cb): emit the source selected signal when the
source in the option menu changes
(itip_view_set_source_list): take a source list and create an
e-source-option-menu if its non-null
(itip_view_get_source_list): get source list
(itip_view_set_source): set a specific source in the source option
menu
(itip_view_get_source): obtain that source
(itip_view_set_rsvp): get the rsvp status
(itip_view_get_rsvp): set it
(itip_view_set_show_rsvp): set visibility of rsvp check box
(itip_view_get_show_rsvp): get the visibility of rsvp check box
(itip_view_set_buttons_sensitive): set button sensitivity
(itip_view_get_buttons_sensitive): get button sensitivity
* itip-formatter.c (find_my_address): find the user's address in
the list of attendees
(set_buttons_sensitive): set the action buttons sensitivity
appropriately
(cal_opened_cb): use above
(start_calendar_server): ditto
(start_calendar_server_by_uid): de-sensitize buttons to start
(source_selected_cb): ditto
(find_cal_opened_cb): check for conflicting appointments; set
informative info area items
(find_server): create the sexp for determining conflicts
(update_item): oset informative info area items
(view_response_cb): implement some of the responses, start on
implementing rsvp
svn path=/trunk/; revision=28215
Diffstat (limited to 'plugins/itip-formatter/itip-view.h')
-rw-r--r-- | plugins/itip-formatter/itip-view.h | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/plugins/itip-formatter/itip-view.h b/plugins/itip-formatter/itip-view.h index 915b3286cb..c42a931b31 100644 --- a/plugins/itip-formatter/itip-view.h +++ b/plugins/itip-formatter/itip-view.h @@ -25,6 +25,7 @@ #include <glib-object.h> #include <gtk/gtkhbox.h> +#include <libedataserver/e-source-list.h> G_BEGIN_DECLS @@ -73,13 +74,16 @@ typedef enum { struct _ItipView { GtkHBox parent_instance; - + ItipViewPrivate *priv; + + GtkWidget *action_vbox; }; struct _ItipViewClass { GtkHBoxClass parent_class; + void (* source_selected) (ItipView *view, ESource *selected_source); void (* response) (ItipView *view, int response); }; @@ -113,10 +117,28 @@ const struct tm *itip_view_get_start (ItipView *view); void itip_view_set_end (ItipView *view, struct tm *end); const struct tm *itip_view_get_end (ItipView *view); -void itip_view_add_info_item (ItipView *view, ItipViewInfoItemType, const char *message); -void itip_view_clear_info_items (ItipView *view); +guint itip_view_add_upper_info_item (ItipView *view, ItipViewInfoItemType, const char *message); +void itip_view_remove_upper_info_item (ItipView *view, guint id); +void itip_view_clear_upper_info_items (ItipView *view); + +guint itip_view_add_lower_info_item (ItipView *view, ItipViewInfoItemType, const char *message); +void itip_view_remove_lower_info_item (ItipView *view, guint id); +void itip_view_clear_lower_info_items (ItipView *view); + +void itip_view_set_source_list (ItipView *view, ESourceList *source_list); +ESourceList *itip_view_get_source_list (ItipView *view); + +void itip_view_set_source (ItipView *view, ESource *source); +ESource *itip_view_get_source (ItipView *view); + +void itip_view_set_rsvp (ItipView *view, gboolean rsvp); +gboolean itip_view_get_rsvp (ItipView *view); + +void itip_view_set_show_rsvp (ItipView *view, gboolean rsvp); +gboolean itip_view_get_show_rsvp (ItipView *view); -void itip_view_set_progress (ItipView *view, const char *message); +void itip_view_set_buttons_sensitive (ItipView *view, gboolean sensitive); +gboolean itip_view_get_buttons_sensitive (ItipView *view); G_END_DECLS |