X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-account-protocol.h;h=da39cdb5f526043a162808dfbe6680a0ad44b264;hp=cf70de5cca9ce54729ace7799f1ec37c030c8ef6;hb=4d39841513a3a7f7aa9d38ab97cb9fcc9171e80b;hpb=011fcef41b279530ba5695ba91440c147321f493 diff --git a/src/modest-account-protocol.h b/src/modest-account-protocol.h index cf70de5..da39cdb 100644 --- a/src/modest-account-protocol.h +++ b/src/modest-account-protocol.h @@ -85,10 +85,10 @@ struct _ModestAccountProtocolClass { gchar * (*get_signature) (ModestAccountProtocol *self, const gchar *account_id, const gchar *mailbox, gboolean *has_signature); const GdkPixbuf * (*get_icon) (ModestAccountProtocol *self, ModestAccountProtocolIconType icon_type, GObject *object, guint icon_size); + gchar * (*get_service_name) (ModestAccountProtocol *self, const gchar *account_id, const gchar *mailbox); + const GdkPixbuf * (*get_service_icon) (ModestAccountProtocol *self, const gchar *account_id, const gchar *mailbox, guint icon_size); /* Padding for future expansions */ - void (*_reserved1) (void); - void (*_reserved2) (void); void (*_reserved3) (void); void (*_reserved4) (void); void (*_reserved5) (void); @@ -405,6 +405,35 @@ gchar *modest_account_protocol_get_signature (ModestAccountProtocol *self, const GdkPixbuf * modest_account_protocol_get_icon (ModestAccountProtocol *self, ModestAccountProtocolIconType icon_type, GObject *object, guint icon_size); +/** + * modest_account_protocol_get_service_name: + * @self: a #ModestAccountProtocol + * @account_id: a transport account name + * @mailbox: a mailbox + * + * Obtain the service name string for the account and mailbox. + * + * Returns: a newly allocated string + */ +gchar *modest_account_protocol_get_service_name (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox); + +/** + * modest_account_protocol_get_service_icon: + * @self: a #ModestAccountProtocol + * @account_id: a transport account name + * @mailbox: a mailbox + * + * Obtain the service icon for the account and mailbox. + * + * Returns: a protocol owned #GdkPixbuf + */ +const GdkPixbuf *modest_account_protocol_get_service_icon (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox, + guint icon_size); + G_END_DECLS