X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-account-protocol.c;h=8644d396053d0305c863feaa80cfbc2dd9b2bd53;hb=4337f9b90f61b92a61f0ff2751ff44bc58d23d13;hp=0db2e41575852e01d926881a888ca381553ccc7a;hpb=8882009413d13c0c3e807c9dc256a3e44750e32d;p=modest diff --git a/src/modest-account-protocol.c b/src/modest-account-protocol.c index 0db2e41..8644d39 100644 --- a/src/modest-account-protocol.c +++ b/src/modest-account-protocol.c @@ -85,6 +85,9 @@ static void modest_account_protocol_save_wizard_settings_default (ModestAccountP static ModestWizardDialogResponseOverrideFunc modest_account_protocol_get_wizard_response_override_default (ModestAccountProtocol *self); +static void modest_account_protocol_check_support_default (ModestAccountProtocol *self, + ModestAccountProtocolCheckSupportFunc func, + gpointer userdata); static gboolean modest_account_protocol_is_supported_default (ModestAccountProtocol *self); /* globals */ @@ -171,6 +174,8 @@ modest_account_protocol_class_init (ModestAccountProtocolClass *klass) modest_account_protocol_get_wizard_response_override_default; account_class->is_supported = modest_account_protocol_is_supported_default; + account_class->check_support = + modest_account_protocol_check_support_default; } static void @@ -590,3 +595,20 @@ modest_account_protocol_is_supported (ModestAccountProtocol *self) { return MODEST_ACCOUNT_PROTOCOL_GET_CLASS (self)->is_supported (self); } + +static void +modest_account_protocol_check_support_default (ModestAccountProtocol *self, + ModestAccountProtocolCheckSupportFunc func, + gpointer userdata) +{ + if (func) + func (self, TRUE, userdata); +} + +void +modest_account_protocol_check_support (ModestAccountProtocol *self, + ModestAccountProtocolCheckSupportFunc func, + gpointer userdata) +{ + MODEST_ACCOUNT_PROTOCOL_GET_CLASS (self)->check_support (self, func, userdata); +}