X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-attachments-view.h;h=4bee16bb8112af107e7169efcc4819b71126c0e5;hp=89837ad06fdb5779b7a0e5d13f874fd286e5cd47;hb=b0a6fb1030581b651ac8c49ab9a4434c2cf137d4;hpb=61fe7659cae8ab1d32e59c6e2f84e3cf79870d6f diff --git a/src/widgets/modest-attachments-view.h b/src/widgets/modest-attachments-view.h index 89837ad..4bee16b 100644 --- a/src/widgets/modest-attachments-view.h +++ b/src/widgets/modest-attachments-view.h @@ -46,6 +46,11 @@ G_BEGIN_DECLS #define MODEST_IS_ATTACHMENTS_VIEW_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), MODEST_TYPE_ATTACHMENTS_VIEW)) #define MODEST_ATTACHMENTS_VIEW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), MODEST_TYPE_ATTACHMENTS_VIEW, ModestAttachmentsViewClass)) +typedef enum _ModestAttachmentsViewStyle { + MODEST_ATTACHMENTS_VIEW_STYLE_SELECTABLE, + MODEST_ATTACHMENTS_VIEW_STYLE_LINKS, +} ModestAttachmentsViewStyle; + typedef struct _ModestAttachmentsView ModestAttachmentsView; typedef struct _ModestAttachmentsViewClass ModestAttachmentsViewClass; @@ -60,6 +65,7 @@ struct _ModestAttachmentsViewClass GtkEventBoxClass parent_class; void (*activate) (ModestAttachmentsView *attachments_view, TnyMimePart *mime_part); + void (*delete) (ModestAttachmentsView *attachments_view, TnyMimePart *mime_part); }; GType modest_attachments_view_get_type (void); @@ -67,7 +73,8 @@ GType modest_attachments_view_get_type (void); GtkWidget* modest_attachments_view_new (TnyMsg *msg); void modest_attachments_view_set_message (ModestAttachmentsView *attachments_view, TnyMsg *msg); -void modest_attachments_view_add_attachment (ModestAttachmentsView *attachments_view, TnyMimePart *part); +void modest_attachments_view_add_attachment (ModestAttachmentsView *attachments_view, TnyMimePart *part, + gboolean detect_size, guint64 size); void modest_attachments_view_remove_attachment (ModestAttachmentsView *attachments_view, TnyMimePart *part); void modest_attachments_view_remove_attachment_by_id (ModestAttachmentsView *attachments_view, const gchar *att_id); TnyList *modest_attachments_view_get_attachments (ModestAttachmentsView *attachments_view); @@ -76,6 +83,13 @@ void modest_attachments_view_select_all (ModestAttachmentsView *attachments_view gboolean modest_attachments_view_has_attachments (ModestAttachmentsView *attachments_view); +void modest_attachments_view_get_sizes (ModestAttachmentsView *attachments_view, + gint *attachments_count, + guint64 *attachments_size); + +void modest_attachments_view_set_style (ModestAttachmentsView *attachments_view, + ModestAttachmentsViewStyle style); + G_END_DECLS #endif