## EAttachmentStore

EAttachmentStore

## Synopsis

    struct              EAttachmentStore;
    GtkTreeModel *      e_attachment_store_new              (void);
    void                e_attachment_store_add_attachment   (EAttachmentStore *store,
                                                             EAttachment *attachment);
    gboolean            e_attachment_store_remove_attachment
                                                            (EAttachmentStore *store,
                                                             EAttachment *attachment);
    void                e_attachment_store_remove_all       (EAttachmentStore *store);
    void                e_attachment_store_add_to_multipart (EAttachmentStore *store,
                                                             CamelMultipart *multipart,
                                                             const gchar *default_charset);
    GList *             e_attachment_store_get_attachments  (EAttachmentStore *store);
    guint               e_attachment_store_get_num_attachments
                                                            (EAttachmentStore *store);
    guint               e_attachment_store_get_num_loading  (EAttachmentStore *store);
    goffset             e_attachment_store_get_total_size   (EAttachmentStore *store);
    void                e_attachment_store_run_load_dialog  (EAttachmentStore *store,
                                                             GtkWindow *parent);
    GFile *             e_attachment_store_run_save_dialog  (EAttachmentStore *store,
                                                             GList *attachment_list,
                                                             GtkWindow *parent);
    void                e_attachment_store_get_uris_async   (EAttachmentStore *store,
                                                             GList *attachment_list,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);
    gchar **            e_attachment_store_get_uris_finish  (EAttachmentStore *store,
                                                             GAsyncResult *result,
                                                             GError **error);
    void                e_attachment_store_load_async       (EAttachmentStore *store,
                                                             GList *attachment_list,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);
    gboolean            e_attachment_store_load_finish      (EAttachmentStore *store,
                                                             GAsyncResult *result,
                                                             GError **error);
    void                e_attachment_store_save_async       (EAttachmentStore *store,
                                                             GFile *destination,
                                                             const gchar *filename_prefix,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);
    gchar **            e_attachment_store_save_finish      (EAttachmentStore *store,
                                                             GAsyncResult *result,
                                                             GError **error);

## Object Hierarchy

      GObject
       +----GtkListStore
             +----EAttachmentStore

## Implemented Interfaces

EAttachmentStore implements GtkTreeModel, GtkTreeDragSource, GtkTreeDragDest, GtkTreeSortable and GtkBuildable.

## Properties

      "num-attachments"          guint                 : Read
      "num-loading"              guint                 : Read
      "total-size"               guint64               : Read

## Description

## Details

### struct EAttachmentStore

    struct EAttachmentStore;

### e_attachment_store_new ()

    GtkTreeModel *      e_attachment_store_new              (void);

### e_attachment_store_add_attachment ()

    void                e_attachment_store_add_attachment   (EAttachmentStore *store,
                                                             EAttachment *attachment);

### e_attachment_store_remove_attachment ()

    gboolean            e_attachment_store_remove_attachment
                                                            (EAttachmentStore *store,
                                                             EAttachment *attachment);

### e_attachment_store_remove_all ()

    void                e_attachment_store_remove_all       (EAttachmentStore *store);

### e_attachment_store_add_to_multipart ()

    void                e_attachment_store_add_to_multipart (EAttachmentStore *store,
                                                             CamelMultipart *multipart,
                                                             const gchar *default_charset);

### e_attachment_store_get_attachments ()

    GList *             e_attachment_store_get_attachments  (EAttachmentStore *store);

### e_attachment_store_get_num_attachments ()

    guint               e_attachment_store_get_num_attachments
                                                            (EAttachmentStore *store);

### e_attachment_store_get_num_loading ()

    guint               e_attachment_store_get_num_loading  (EAttachmentStore *store);

### e_attachment_store_get_total_size ()

    goffset             e_attachment_store_get_total_size   (EAttachmentStore *store);

### e_attachment_store_run_load_dialog ()

    void                e_attachment_store_run_load_dialog  (EAttachmentStore *store,
                                                             GtkWindow *parent);

### e_attachment_store_run_save_dialog ()

    GFile *             e_attachment_store_run_save_dialog  (EAttachmentStore *store,
                                                             GList *attachment_list,
                                                             GtkWindow *parent);

### e_attachment_store_get_uris_async ()

    void                e_attachment_store_get_uris_async   (EAttachmentStore *store,
                                                             GList *attachment_list,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);

### e_attachment_store_get_uris_finish ()

    gchar **            e_attachment_store_get_uris_finish  (EAttachmentStore *store,
                                                             GAsyncResult *result,
                                                             GError **error);

### e_attachment_store_load_async ()

    void                e_attachment_store_load_async       (EAttachmentStore *store,
                                                             GList *attachment_list,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);

### e_attachment_store_load_finish ()

    gboolean            e_attachment_store_load_finish      (EAttachmentStore *store,
                                                             GAsyncResult *result,
                                                             GError **error);

### e_attachment_store_save_async ()

    void                e_attachment_store_save_async       (EAttachmentStore *store,
                                                             GFile *destination,
                                                             const gchar *filename_prefix,
                                                             GAsyncReadyCallback callback,
                                                             gpointer user_data);

### e_attachment_store_save_finish ()

    gchar **            e_attachment_store_save_finish      (EAttachmentStore *store,
                                                             GAsyncResult *result,
                                                             GError **error);

## Property Details

### The `"num-attachments"` property

      "num-attachments"          guint                 : Read

Default value: 0

### The `"num-loading"` property

      "num-loading"              guint                 : Read

Default value: 0

### The `"total-size"` property

      "total-size"               guint64               : Read

Default value: 0