Top | ![]() |
![]() |
![]() |
![]() |
ESourceCamelESourceCamel — ESource extension for |
|
e_source_camel_register_types () |
|
e_source_camel_generate_subtype () |
|
e_source_camel_get_settings () |
const |
e_source_camel_get_type_name () |
const |
e_source_camel_get_extension_name () |
|
e_source_camel_configure_service () |
ESourceCamel itself is abstract. Its sole function is to
bridge camel_service_set_settings()
Ultimately, this is all just implementation detail for glueing two
unrelated class hierarchies together. If you need to access provider
specific settings, use the
void e_source_camel_register_types (void
);
Creates and registers subclasses of ESourceCamel for each available
Since: 3.6
GType e_source_camel_generate_subtype (const
,gchar *protocol);
GType settings_type
Generates a custom ESourceCamel subtype for protocol
. Instances of the
new subtype will contain a settings_type
.
This function is called as part of e_source_camel_register_types()
and
should not be called explicitly, except by some groupware packages that
need to share package-specific settings across their mail, calendar and
address book components. In that case the groupware package may choose
to subclass
Since: 3.6
CamelSettings * e_source_camel_get_settings (ESourceCamel *extension
);
Returns extension
's extension
belongs. Changes to the ESource
will automatically propagate to the
This is essentially the glue that binds ESource to e_source_camel_configure_service()
.
Since: 3.6
constgchar * e_source_camel_get_type_name (const
);gchar *protocol
Returns the protocol
.
For example, given a protocol named "imap" the function would return "ESourceCamelImap".
Since: 3.6
constgchar * e_source_camel_get_extension_name (const
);gchar *protocol
Returns the extension name for the ESourceCamel subtype for protocol
.
The extension name can then be passed to e_source_get_extension()
to
obtain an instance of the ESourceCamel subtype.
For example, given a protocol named "imap" the function would return "Imap Backend".
Since: 3.6
void e_source_camel_configure_service (ESource *source
,);
CamelService *service
This function essentially glues together source
and serivce
so their
configuration settings stay synchronized. The glue itself is a shared
Call this function immediately after creating a new camel_session_add_service()
Since: 3.6
struct ESourceCamel { };
Contains only private data that should be read and manipulated using the functions below.
Since: 3.6