EDataServer.SourceCamel¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | EDataServer.SourceExtension (4), GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| class | generate_subtype(protocol, settings_type) | 
| class | get_extension_name(protocol) | 
| class | get_type_name(protocol) | 
| class | register_types() | 
| get_settings() | 
Virtual Methods¶
| Inherited: | GObject.Object (7) | 
|---|
Properties¶
| Inherited: | EDataServer.SourceExtension (1) | 
|---|
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| settings | Camel.Settings | r | The Camel.Settingsinstance being proxied | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
Fields¶
| Inherited: | GObject.Object (1) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | EDataServer.SourceExtension | r | 
Class Details¶
- 
class EDataServer.SourceCamel(**kwargs)¶
- Bases: - EDataServer.SourceExtension- Abstract: - Yes - Structure: - EDataServer.SourceCamelClass- Contains only private data that should be read and manipulated using the functions below. - New in version 3.6. - 
classmethod generate_subtype(protocol, settings_type)¶
- Parameters: - protocol (str) – aCamel.Providerprotocol
- settings_type (GObject.GType) – a subtype ofCamel.Settings
 - Returns: - the - GObject.GTypeof the generated- EDataServer.SourceCamelsubtype- Return type: - Generates a custom - EDataServer.SourceCamelsubtype for protocol. Instances of the new subtype will contain a- Camel.Settingsinstance of type settings_type.- This function is called as - Camel.partof- EDataServer.SourceCamel.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- Camel.Settingsrather than- EDataServer.SourceExtensionsince libcamel is the lowest common denominator across all components. This function provides a way for the calendar and address book components of such a package to generate an- EDataServer.SourceCamelsubtype for its- Camel.Settingssubtype without having to load all available- Camel.Providermodules.- New in version 3.6. 
- protocol (
 - 
classmethod get_extension_name(protocol)¶
- Parameters: - protocol ( - str) – a- Camel.Providerprotocol- Returns: - the - EDataServer.SourceCamelextension name for protocol- Return type: - str- Returns the extension name for the - EDataServer.SourceCamelsubtype for protocol. The extension name can then be passed to- EDataServer.Source.get_extension() to obtain an instance of the- EDataServer.SourceCamelsubtype.- For example, given a protocol named “imap” the function would return “Imap Backend”. - New in version 3.6. 
 - 
classmethod get_type_name(protocol)¶
- Parameters: - protocol ( - str) – a- Camel.Providerprotocol- Returns: - the - EDataServer.SourceCameltype name for protocol- Return type: - str- Returns the - GObject.GTypename of the registered- EDataServer.SourceCamelsubtype for protocol.- For example, given a protocol named “imap” the function would return “ESourceCamelImap”. - New in version 3.6. 
 - 
classmethod register_types()¶
- Creates and registers subclasses of - EDataServer.SourceCamelfor each available- Camel.Provider. This function should be called once during application or library initialization.- New in version 3.6. 
 - 
get_settings()¶
- Returns: - a configured - Camel.Settingsinstance- Return type: - Camel.Settings- Returns self’s - EDataServer.SourceCamel- :settingsinstance, pre-configured from the- EDataServer.Sourceto which self belongs. Changes to the- EDataServer.Sourcewill automatically propagate to the- EDataServer.SourceCamel- :settingsinstance and vice versa.- This is essentially the glue that binds - EDataServer.Sourceto- Camel.Service. See- EDataServer.Source.camel_configure_service().- New in version 3.6. 
 
- 
classmethod 
Property Details¶
- 
EDataServer.SourceCamel.props.settings¶
- Name: - settings- Type: - Camel.Settings- Default Value: - None- Flags: - READABLE- The - Camel.Settingsinstance being proxied