#include <gtk/gtkwindow.h>
#include "modest-ui.h"
-
+#include "modest-tny-attachment.h"
G_BEGIN_DECLS
typedef struct _ModestEditorWindowClass ModestEditorWindowClass;
struct _ModestEditorWindow {
- GtkWindow parent;
+ GObject parent;
+ GtkWindow *window;
/* insert public members, if any */
};
*
* Returns: a GtkWindow* to show and populate
*/
-GtkWidget *modest_editor_window_new (ModestUI *ui);
+GObject *modest_editor_window_new (ModestUI *ui);
/**
* modest_editor_window_get_data:
*
* Gets the state of the modified-flag of this instance. This flag can be used to store
* information whether the contents of the editor window was modified by the
- * user or not. If it was modified (see also modest_editor_window_get_modified())
+ * user or not. If it was modified (see also modest_editor_window_set_modified())
* a dialog can be presented to ask the user for confirmation.
*
* Returns: gboolean the new state of the modified flag
*
* Returns: TRUE on success, FALSE otherwise
*/
-gboolean modest_editor_window_attach_file(ModestEditorWindow *edit_win, const gchar *filename);
+gboolean modest_editor_window_attach_file(ModestEditorWindow *edit_win, ModestTnyAttachment *attachment);
/**
* modest_editor_window_set_attachments:
* @edit_win: a ModestEditorWindow instance
* @attachments: a list of attachments
*
- * Sets the list of attachments to *attachments
+ * Frees the current attachments, then sets the list of attachments to *attachments
*
* Returns: The new GList* of attachments.
*/
-GList * modest_editor_window_set_attachments(ModestEditorWindow *edit_win, GList* attachments);
+GList * modest_editor_window_set_attachments(ModestEditorWindow *edit_win, const GList* attachments);
/**
* modest_editor_window_get_attachments:
*/
GList * modest_editor_window_get_attachments(ModestEditorWindow *edit_win);
+void modest_editor_window_set_identity(ModestEditorWindow *edit_win, const gchar *identity);
+const gchar * modest_editor_window_get_identity(ModestEditorWindow *edit_win);
+
+void modest_editor_window_set_transport(ModestEditorWindow *edit_win, const gchar *transport);
+const gchar * modest_editor_window_get_transport(ModestEditorWindow *edit_win);
G_END_DECLS
#endif /* __MODEST_EDITOR_WINDOW_H__ */