EDataServer.SourceCamel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.SourceCamel(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
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.Provider
protocolsettings_type (
GObject.GType
) – a subtype ofCamel.Settings
- Returns:
the
GObject.GType
of the generatedEDataServer.SourceCamel
subtype- Return type:
Generates a custom
EDataServer.SourceCamel
subtype for protocol. Instances of the new subtype will contain aCamel.Settings
instance of type settings_type.This function is called as
Camel.part
ofEDataServer.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 subclassCamel.Settings
rather thanEDataServer.SourceExtension
since 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 anEDataServer.SourceCamel
subtype for itsCamel.Settings
subtype without having to load all availableCamel.Provider
modules.New in version 3.6.
- classmethod get_extension_name(protocol)¶
- Parameters:
protocol (
str
) – aCamel.Provider
protocol- Returns:
the
EDataServer.SourceCamel
extension name for protocol- Return type:
Returns the extension name for the
EDataServer.SourceCamel
subtype for protocol. The extension name can then be passed toEDataServer.Source.get_extension
() to obtain an instance of theEDataServer.SourceCamel
subtype.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
) – aCamel.Provider
protocol- Returns:
the
EDataServer.SourceCamel
type name for protocol- Return type:
Returns the
GObject.GType
name of the registeredEDataServer.SourceCamel
subtype 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.SourceCamel
for each availableCamel.Provider
. This function should be called once during application or library initialization.New in version 3.6.
- get_settings()¶
- Returns:
a configured
Camel.Settings
instance- Return type:
Returns self's
EDataServer.SourceCamel
:settings
instance, pre-configured from theEDataServer.Source
to which self belongs. Changes to theEDataServer.Source
will automatically propagate to theEDataServer.SourceCamel
:settings
instance and vice versa.This is essentially the glue that binds
EDataServer.Source
toCamel.Service
. SeeEDataServer.Source.camel_configure_service
().New in version 3.6.
Property Details¶
- EDataServer.SourceCamel.props.settings¶
- Name:
settings
- Type:
- Default Value:
- Flags:
The
Camel.Settings
instance being proxied