aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/itip-formatter/itip-view.h
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-12-30 02:39:11 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-12-30 02:39:11 +0800
commita767f8cee2be954d01f2dcb630db6e3846c15c2a (patch)
treedc3c5e935c82323b3f6e5f53dfec17d951065ae6 /plugins/itip-formatter/itip-view.h
parenta3a0a296b281dc1a4366dad845741a01f7712927 (diff)
downloadgsoc2013-evolution-a767f8cee2be954d01f2dcb630db6e3846c15c2a.tar
gsoc2013-evolution-a767f8cee2be954d01f2dcb630db6e3846c15c2a.tar.gz
gsoc2013-evolution-a767f8cee2be954d01f2dcb630db6e3846c15c2a.tar.bz2
gsoc2013-evolution-a767f8cee2be954d01f2dcb630db6e3846c15c2a.tar.lz
gsoc2013-evolution-a767f8cee2be954d01f2dcb630db6e3846c15c2a.tar.xz
gsoc2013-evolution-a767f8cee2be954d01f2dcb630db6e3846c15c2a.tar.zst
gsoc2013-evolution-a767f8cee2be954d01f2dcb630db6e3846c15c2a.zip
new protos
2004-12-29 JP Rosevear <jpr@novell.com> * itip-view.h: new protos * itip-view.c (format_date_and_time_x): don't draw the leading zero in 12hr clock mode for the hour (set_sender_text): make intro statements closer to the UI design (set_description_text): display description (set_info_items): show info items, messages with icons (set_progress_text): show progress text item (for loading/searching calendars) (set_one_button): add a response button (set_buttons): set response buttons based on mode (itip_view_destroy): clear info items (itip_view_class_init): add response signal (itip_view_init): new areas for description, info items, buttons (itip_view_set_description): accessor (itip_view_get_description): ditto (itip_view_add_info_item): add an info item to the display (itip_view_clear_info_items): clear all items (itip_view_set_progress): set the progress message * itip-formatter.c: move over calendar loading, searching code, set more itip view properties * org-gnome-itip-formatter.eplug.in: add a config page item, doesn't do much right now svn path=/trunk/; revision=28207
Diffstat (limited to 'plugins/itip-formatter/itip-view.h')
-rw-r--r--plugins/itip-formatter/itip-view.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/plugins/itip-formatter/itip-view.h b/plugins/itip-formatter/itip-view.h
index ac9305bf2e..915b3286cb 100644
--- a/plugins/itip-formatter/itip-view.h
+++ b/plugins/itip-formatter/itip-view.h
@@ -43,10 +43,13 @@ typedef enum {
ITIP_VIEW_MODE_NONE,
ITIP_VIEW_MODE_PUBLISH,
ITIP_VIEW_MODE_REQUEST,
+ ITIP_VIEW_MODE_COUNTER,
+ ITIP_VIEW_MODE_DECLINECOUNTER,
ITIP_VIEW_MODE_ADD,
ITIP_VIEW_MODE_REPLY,
ITIP_VIEW_MODE_REFRESH,
- ITIP_VIEW_MODE_CANCEL
+ ITIP_VIEW_MODE_CANCEL,
+ ITIP_VIEW_MODE_ERROR
} ItipViewMode;
typedef enum {
@@ -55,19 +58,29 @@ typedef enum {
ITIP_VIEW_RESPONSE_TENTATIVE,
ITIP_VIEW_RESPONSE_DECLINE,
ITIP_VIEW_RESPONSE_UPDATE,
- ITIP_VIEW_RESPONSE_SEND
+ ITIP_VIEW_RESPONSE_REFRESH,
+ ITIP_VIEW_RESPONSE_OPEN
} ItipViewResponse;
-struct _ItipView
-{
+typedef enum {
+ ITIP_VIEW_INFO_ITEM_TYPE_NONE,
+ ITIP_VIEW_INFO_ITEM_TYPE_INFO,
+ ITIP_VIEW_INFO_ITEM_TYPE_WARNING,
+ ITIP_VIEW_INFO_ITEM_TYPE_ERROR,
+ ITIP_VIEW_INFO_ITEM_TYPE_PROGRESS
+} ItipViewInfoItemType;
+
+
+struct _ItipView {
GtkHBox parent_instance;
ItipViewPrivate *priv;
};
-struct _ItipViewClass
-{
+struct _ItipViewClass {
GtkHBoxClass parent_class;
+
+ void (* response) (ItipView *view, int response);
};
GType itip_view_get_type (void);
@@ -91,12 +104,20 @@ const char *itip_view_get_summary (ItipView *view);
void itip_view_set_location (ItipView *view, const char *location);
const char *itip_view_get_location (ItipView *view);
+void itip_view_set_description (ItipView *view, const char *description);
+const char *itip_view_get_description (ItipView *view);
+
void itip_view_set_start (ItipView *view, struct tm *start);
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);
+
+void itip_view_set_progress (ItipView *view, const char *message);
+
G_END_DECLS
#endif