aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter/itip-view.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/itip-formatter/itip-view.h')
-rw-r--r--plugins/itip-formatter/itip-view.h280
1 files changed, 178 insertions, 102 deletions
diff --git a/plugins/itip-formatter/itip-view.h b/plugins/itip-formatter/itip-view.h
index 538306c822..5ae8d9cd17 100644
--- a/plugins/itip-formatter/itip-view.h
+++ b/plugins/itip-formatter/itip-view.h
@@ -29,6 +29,7 @@
#include <gtk/gtk.h>
#include <libedataserver/e-source-list.h>
#include <libecal/e-cal-client.h>
+#include <webkit/webkitdom.h>
G_BEGIN_DECLS
@@ -42,6 +43,7 @@ G_BEGIN_DECLS
typedef struct _ItipView ItipView;
typedef struct _ItipViewPrivate ItipViewPrivate;
typedef struct _ItipViewClass ItipViewClass;
+typedef struct _ItipPURI ItipPURI;
typedef enum {
ITIP_VIEW_MODE_NONE,
@@ -64,7 +66,8 @@ typedef enum {
ITIP_VIEW_RESPONSE_UPDATE,
ITIP_VIEW_RESPONSE_CANCEL,
ITIP_VIEW_RESPONSE_REFRESH,
- ITIP_VIEW_RESPONSE_OPEN
+ ITIP_VIEW_RESPONSE_OPEN,
+ ITIP_VIEW_RESPONSE_SAVE
} ItipViewResponse;
typedef enum {
@@ -76,115 +79,188 @@ typedef enum {
} ItipViewInfoItemType;
struct _ItipView {
- GtkHBox parent_instance;
+ GObject parent_instance;
ItipViewPrivate *priv;
-
- GtkWidget *action_vbox;
};
struct _ItipViewClass {
- GtkHBoxClass parent_class;
-
- void (* source_selected) (ItipView *view, ESource *selected_source);
- void (* response) (ItipView *view, gint response);
-};
-
-GType itip_view_get_type (void);
-GtkWidget *itip_view_new (void);
-
-void itip_view_set_mode (ItipView *view, ItipViewMode mode);
-ItipViewMode itip_view_get_mode (ItipView *view);
-
-void itip_view_set_item_type (ItipView *view, ECalClientSourceType type);
-ECalClientSourceType itip_view_get_item_type (ItipView *view);
-
-void itip_view_set_organizer (ItipView *view, const gchar *organizer);
-const gchar *itip_view_get_organizer (ItipView *view);
-
-void itip_view_set_organizer_sentby (ItipView *view, const gchar *sentby);
-const gchar *itip_view_get_organizer_sentby (ItipView *view);
-
-void itip_view_set_attendee (ItipView *view, const gchar *attendee);
-const gchar *itip_view_get_attendee (ItipView *view);
-
-void itip_view_set_attendee_sentby (ItipView *view, const gchar *sentby);
-const gchar *itip_view_get_attendee_sentby (ItipView *view);
-
-void itip_view_set_delegator (ItipView *view, const gchar *delegator);
-const gchar *itip_view_get_delegator (ItipView *view);
-
-void itip_view_set_proxy (ItipView *view, const gchar *proxy);
-const gchar *itip_view_get_proxy (ItipView *view);
-
-void itip_view_set_summary (ItipView *view, const gchar *summary);
-const gchar *itip_view_get_summary (ItipView *view);
-
-void itip_view_set_location (ItipView *view, const gchar *location);
-const gchar *itip_view_get_location (ItipView *view);
-
-void itip_view_set_status (ItipView *view, const gchar *status);
-const gchar *itip_view_get_status (ItipView *view);
-
-void itip_view_set_comment (ItipView *view, const gchar *comment);
-const gchar *itip_view_get_comment (ItipView *view);
+ GObjectClass parent_class;
-void itip_view_set_description (ItipView *view, const gchar *description);
-const gchar *itip_view_get_description (ItipView *view);
+ void (* source_selected) (ItipView *view,
+ ESource *selected_source);
-void itip_view_set_start (ItipView *view, struct tm *start, gboolean is_date);
-const struct tm *itip_view_get_start (ItipView *view, gboolean *is_date);
-
-void itip_view_set_end (ItipView *view, struct tm *end, gboolean is_date);
-const struct tm *itip_view_get_end (ItipView *view, gboolean *is_date);
-
-guint itip_view_add_upper_info_item (ItipView *view, ItipViewInfoItemType type, const gchar *message);
-guint itip_view_add_upper_info_item_printf (ItipView *view, ItipViewInfoItemType, const gchar *format, ...) G_GNUC_PRINTF (3, 4);
-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 type, const gchar *message);
-guint itip_view_add_lower_info_item_printf (ItipView *view, ItipViewInfoItemType type, const gchar *format, ...) G_GNUC_PRINTF (3, 4);
-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_update (ItipView *view, gboolean update);
-gboolean itip_view_get_update (ItipView *view);
-
-void itip_view_set_show_update (ItipView *view, gboolean update);
-gboolean itip_view_get_show_update (ItipView *view);
-
-void itip_view_set_rsvp_comment (ItipView *view, const gchar *comment);
-gchar *itip_view_get_rsvp_comment (ItipView *view);
-
-void itip_view_set_buttons_sensitive (ItipView *view, gboolean sensitive);
-gboolean itip_view_get_buttons_sensitive (ItipView *view);
-
-void itip_view_set_show_recur_check (ItipView *view, gboolean show);
-gboolean itip_view_get_recur_check_state (ItipView *view);
-
-void itip_view_set_needs_decline (ItipView *view, gboolean needs_decline);
-
-void itip_view_set_show_free_time_check (ItipView *view, gboolean show);
-gboolean itip_view_get_free_time_check_state (ItipView *view);
-
-void itip_view_set_show_keep_alarm_check (ItipView *view, gboolean show);
-gboolean itip_view_get_keep_alarm_check_state (ItipView *view);
+ void (* response) (ItipView *view,
+ gint response);
+};
-void itip_view_set_show_inherit_alarm_check (ItipView *view, gboolean show);
-gboolean itip_view_get_inherit_alarm_check_state (ItipView *view);
+GType itip_view_get_type (void);
+
+ItipView * itip_view_new (ItipPURI *puri);
+
+void itip_view_write (GString *buffer);
+
+void itip_view_write_for_printing (ItipView *view,
+ GString *buffer);
+
+void itip_view_create_dom_bindings (ItipView *view,
+ WebKitDOMElement *element);
+
+ItipPURI * itip_view_get_puri (ItipView *view);
+
+void itip_view_set_mode (ItipView *view,
+ ItipViewMode mode);
+ItipViewMode itip_view_get_mode (ItipView *view);
+
+void itip_view_set_item_type (ItipView *view,
+ ECalClientSourceType type);
+ECalClientSourceType
+ itip_view_get_item_type (ItipView *view);
+
+void itip_view_set_organizer (ItipView *view,
+ const gchar *organizer);
+const gchar * itip_view_get_organizer (ItipView *view);
+
+void itip_view_set_organizer_sentby (ItipView *view,
+ const gchar *sentby);
+const gchar * itip_view_get_organizer_sentby (ItipView *view);
+
+void itip_view_set_attendee (ItipView *view,
+ const gchar *attendee);
+const gchar * itip_view_get_attendee (ItipView *view);
+
+void itip_view_set_attendee_sentby (ItipView *view,
+ const gchar *sentby);
+const gchar * itip_view_get_attendee_sentby (ItipView *view);
+
+void itip_view_set_delegator (ItipView *view,
+ const gchar *delegator);
+const gchar * itip_view_get_delegator (ItipView *view);
+
+void itip_view_set_proxy (ItipView *view,
+ const gchar *proxy);
+const gchar * itip_view_get_proxy (ItipView *view);
+
+void itip_view_set_summary (ItipView *view,
+ const gchar *summary);
+const gchar * itip_view_get_summary (ItipView *view);
+
+void itip_view_set_location (ItipView *view,
+ const gchar *location);
+const gchar * itip_view_get_location (ItipView *view);
+
+void itip_view_set_status (ItipView *view,
+ const gchar *status);
+const gchar * itip_view_get_status (ItipView *view);
+
+void itip_view_set_comment (ItipView *view,
+ const gchar *comment);
+const gchar * itip_view_get_comment (ItipView *view);
+
+void itip_view_set_description (ItipView *view,
+ const gchar *description);
+const gchar * itip_view_get_description (ItipView *view);
+
+void itip_view_set_start (ItipView *view,
+ struct tm *start,
+ gboolean is_date);
+const struct tm *
+ itip_view_get_start (ItipView *view,
+ gboolean *is_date);
+
+void itip_view_set_end (ItipView *view,
+ struct tm *end,
+ gboolean is_date);
+const struct tm *
+ itip_view_get_end (ItipView *view,
+ gboolean *is_date);
+
+guint itip_view_add_upper_info_item (ItipView *view,
+ ItipViewInfoItemType type,
+ const gchar *message);
+guint itip_view_add_upper_info_item_printf
+ (ItipView *view,
+ ItipViewInfoItemType,
+ const gchar *format, ...) G_GNUC_PRINTF (3, 4);
+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 type,
+ const gchar *message);
+guint itip_view_add_lower_info_item_printf
+ (ItipView *view,
+ ItipViewInfoItemType type,
+ const gchar *format, ...) G_GNUC_PRINTF (3, 4);
+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_check (ItipView *view,
+ gboolean show);
+gboolean itip_view_get_show_rsvp_check (ItipView *view);
+
+void itip_view_set_update (ItipView *view,
+ gboolean update);
+gboolean itip_view_get_update (ItipView *view);
+
+void itip_view_set_show_update_check (ItipView *view,
+ gboolean show);
+gboolean itip_view_get_show_update_check (ItipView *view);
+
+void itip_view_set_rsvp_comment (ItipView *view,
+ const gchar *comment);
+gchar * itip_view_get_rsvp_comment (ItipView *view);
+
+void itip_view_set_buttons_sensitive (ItipView *view,
+ gboolean sensitive);
+gboolean itip_view_get_buttons_sensitive (ItipView *view);
+
+void itip_view_set_show_recur_check (ItipView *view,
+ gboolean show);
+gboolean itip_view_get_recur_check_state (ItipView *view);
+
+void itip_view_set_needs_decline (ItipView *view,
+ gboolean needs_decline);
+
+void itip_view_set_show_free_time_check
+ (ItipView *view,
+ gboolean show);
+gboolean itip_view_get_free_time_check_state
+ (ItipView *view);
+
+void itip_view_set_show_keep_alarm_check
+ (ItipView *view,
+ gboolean show);
+gboolean itip_view_get_keep_alarm_check_state
+ (ItipView *view);
+
+void itip_view_set_show_inherit_alarm_check
+ (ItipView *view,
+ gboolean show);
+gboolean itip_view_get_inherit_alarm_check_state
+ (ItipView *view);
+
+void itip_view_set_error (ItipView *view,
+ const gchar *error_html,
+ gboolean show_save_btn);
G_END_DECLS