![]() |
![]() |
![]() |
Reference Manual of the tinymail framework | ![]() |
---|---|---|---|---|
TnyGtkMimePartSaveStrategyTnyGtkMimePartSaveStrategy — A strategy for saving a mime part using Gtk+ |
TnyGtkMimePartSaveStrategy; TnyMimePartSaveStrategy* tny_gtk_mime_part_save_strategy_new (TnyStatusCallback status_callback, gpointer status_user_data);
A strategy type, used by a TnyMsgView implementation, that uses Gtk+ for saving a TnyMimePart instance. It will for example instantiate a GtkFileChooserDialog instance for asking the user where to put the file.
If the library is compiled with gnome features, it will use the TnyVfsStream for GnomeVFS support. If not, it will use a TnyFsStream TnyStream implementation for saving to a normal file descriptor.
typedef struct _TnyGtkMimePartSaveStrategy TnyGtkMimePartSaveStrategy;
a TnyMimePartSaveStrategy that saves a TnyMimePart using a file dialog in Gtk+ and GnomeVFS if available.
free-function: g_object_unref
TnyMimePartSaveStrategy* tny_gtk_mime_part_save_strategy_new (TnyStatusCallback status_callback, gpointer status_user_data);
Create a new TnyMimePartSaveStrategy It will use the GtkFileChooserDialog type and if available consume its support for GnomeVFS.
Whenever data must be retrieved or takes long to load, status_callback
will
be called to let the outside world know about what this compenent is doing.
|
(null-ok): a TnyStatusCallback for when status information happens or NULL |
|
(null-ok): user data for status_callback
|
Returns : |
(caller-owns): a new TnyMimePartSaveStrategy |
Since 1.0 audience: application-developer
TnySaveStrategy, TnyMimePart, TnyMsgView, GtkFileChooserDialog, TnyVfsStream, TnyFsStream, TnyStream, GnomeVFS