X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-account-protocol.c;h=76aff6e86ef10d721f3dab4cf3f677330c012169;hp=70d8d24d6c3a1ae87b05c396d28499b2a570e76f;hb=a3fa613b8f9ff7a21d9dda408086f2145bf54c94;hpb=e468d62e86da9f16820ac0cc8d7d1f106bf080bf diff --git a/src/modest-account-protocol.c b/src/modest-account-protocol.c index 70d8d24..76aff6e 100644 --- a/src/modest-account-protocol.c +++ b/src/modest-account-protocol.c @@ -103,6 +103,14 @@ static const GdkPixbuf *modest_account_protocol_get_icon_default (ModestAccountP GObject *object, guint icon_size); +static gchar *modest_account_protocol_get_service_name_default (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox); + +static const GdkPixbuf *modest_account_protocol_get_service_icon_default (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox, + guint icon_size); /* globals */ static GObjectClass *parent_class = NULL; @@ -198,6 +206,10 @@ modest_account_protocol_class_init (ModestAccountProtocolClass *klass) modest_account_protocol_get_signature_default; account_class->get_icon = modest_account_protocol_get_icon_default; + account_class->get_service_name = + modest_account_protocol_get_service_name_default; + account_class->get_service_icon = + modest_account_protocol_get_service_icon_default; } static void @@ -706,3 +718,42 @@ modest_account_protocol_get_icon_default (ModestAccountProtocol *self, ModestAcc return NULL; } + +gchar * +modest_account_protocol_get_service_name (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox) +{ + return MODEST_ACCOUNT_PROTOCOL_GET_CLASS (self)->get_service_name (self, account_id, mailbox); +} + +static gchar * +modest_account_protocol_get_service_name_default (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox) +{ + g_return_val_if_fail (MODEST_ACCOUNT_PROTOCOL (self), NULL); + + return NULL; +} + +const GdkPixbuf * +modest_account_protocol_get_service_icon (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox, + guint icon_size) +{ + return MODEST_ACCOUNT_PROTOCOL_GET_CLASS (self)->get_service_icon (self, account_id, mailbox, icon_size); +} + +static const GdkPixbuf * +modest_account_protocol_get_service_icon_default (ModestAccountProtocol *self, + const gchar *account_id, + const gchar *mailbox, + guint icon_size) +{ + g_return_val_if_fail (MODEST_ACCOUNT_PROTOCOL (self), NULL); + + return NULL; +} +