Delta Chat Core C Interface
|
Opaque object containing information about one single e-mail provider. More...
#include <deltachat.h>
Public Member Functions | |
char * | dc_provider_get_before_login_hint (const dc_provider_t *provider) |
Get hints to be shown to the user on the login screen. | |
char * | dc_provider_get_overview_page (const dc_provider_t *provider) |
URL of the overview page. | |
int | dc_provider_get_status (const dc_provider_t *provider) |
Whether DC works with this provider. | |
dc_provider_t * | dc_provider_new_from_email (const dc_context_t *context, const char *email) |
Create a provider struct for the given e-mail address by local lookup. | |
dc_provider_t * | dc_provider_new_from_email_with_dns (const dc_context_t *context, const char *email) |
Create a provider struct for the given e-mail address by local and DNS lookup. | |
void | dc_provider_unref (dc_provider_t *provider) |
Free the provider info struct. | |
Opaque object containing information about one single e-mail provider.
char * dc_provider_get_before_login_hint | ( | const dc_provider_t * | provider | ) |
Get hints to be shown to the user on the login screen.
Depending on the DC_PROVIDER_STATUS returned by dc_provider_get_status(), the UI may want to highlight the hint.
Moreover, the UI should display a "More information" link that forwards to the URL returned by dc_provider_get_overview_page().
provider | The dc_provider_t struct. |
char * dc_provider_get_overview_page | ( | const dc_provider_t * | provider | ) |
URL of the overview page.
This URL allows linking to the providers page on providers.delta.chat.
provider | The dc_provider_t struct. |
int dc_provider_get_status | ( | const dc_provider_t * | provider | ) |
Whether DC works with this provider.
Can be one of DC_PROVIDER_STATUS_OK, DC_PROVIDER_STATUS_PREPARATION or DC_PROVIDER_STATUS_BROKEN.
provider | The dc_provider_t struct. |
dc_provider_t * dc_provider_new_from_email | ( | const dc_context_t * | context, |
const char * | email ) |
Create a provider struct for the given e-mail address by local lookup.
Lookup is done from the local database by extracting the domain from the e-mail address. Therefore the provider for custom domains cannot be identified.
context | The context object. |
The user's e-mail address to extract the provider info form. |
dc_provider_t * dc_provider_new_from_email_with_dns | ( | const dc_context_t * | context, |
const char * | email ) |
Create a provider struct for the given e-mail address by local and DNS lookup.
First lookup is done from the local database as of dc_provider_new_from_email(). If the first lookup fails, an additional DNS lookup is done, trying to figure out the provider belonging to custom domains.
context | The context object. |
The user's e-mail address to extract the provider info form. |
void dc_provider_unref | ( | dc_provider_t * | provider | ) |
Free the provider info struct.
provider | The dc_provider_t struct. |