SourceRegistry
Object Hierarchy:
Description:
[ CCode ( type_id = "e_source_registry_get_type ()" ) ]
[ Version ( since = "3.6" ) ]
public class SourceRegistry : Object, AsyncInitable, Initable
[ Version ( since = "3.6" ) ]
public class SourceRegistry : Object, AsyncInitable, Initable
Contains only private data that should be read and manipulated using the functions below.
Namespace: E
Package: libedataserver-1.2
Content:
Properties:
- public Source default_address_book { owned get; set; }
The default address book Source.
- public Source default_calendar { owned get; set; }
The default calendar Source.
- public Source default_mail_account { owned get; set; }
The default mail account Source.
- public Source default_mail_identity { owned get; set; }
The default mail identity Source.
- public Source default_memo_list { owned get; set; }
The default memo list Source.
- public Source default_task_list { owned get; set; }
The default task list Source.
Static methods:
- public static bool debug_enabled ()
- public static void free_display_tree (Node display_tree)
Convenience function to free a Node tree of registered sources created by
e_source_registry_build_display_tree
.
Creation methods:
- public async SourceRegistry (Cancellable? cancellable) throws Error
Asynchronously creates a new SourceRegistry front-end for the registry D-Bus service.
- public SourceRegistry.sync (Cancellable? cancellable = null) throws Error
Creates a new SourceRegistry front-end for the registry D-Bus service.
Methods:
- public bool check_enabled (Source source)
- public async bool commit_source (Source source, Cancellable? cancellable) throws Error
See commit_source_sync for details.
- public bool commit_source_sync (Source source, Cancellable? cancellable = null) throws Error
This is a convenience function intended for use with graphical Source editors.
- public async bool create_sources (List<Source> list_of_sources, Cancellable? cancellable) throws Error
Asynchronously requests the D-Bus service create new key files for each Source in
list_of_sources
. - public bool create_sources_sync (List<Source> list_of_sources, Cancellable? cancellable = null) throws Error
Requests the D-Bus service create new key files for each Source in
list_of_sources
. - public void debug_dump (string? extension_name)
Handy debugging function that uses
e_source_registry_build_display_tree
to print a tree of registered sources to standard output. - public string dup_unique_display_name (Source source, string? extension_name)
Compares
source
's display_name against other sources having an SourceExtension namedextension_name
, if given, or else against all other sources in the this. - public Source? find_extension (Source source, string extension_name)
Examines
source
and its ancestors and returns the "deepest" Source having an SourceExtension with the givenextension_name
. - public unowned OAuth2Services get_oauth2_services ()
- public List<Source> list_enabled (string? extension_name)
Similar to list_sources, but returns only enabled sources according to check_enabled.
- public List<Source> list_sources (string? extension_name)
Returns a list of registered sources, sorted by display name.
- public Source ref_builtin_address_book ()
Returns the built-in address book Source.
- public Source ref_builtin_calendar ()
Returns the built-in calendar Source.
- public Source ref_builtin_mail_account ()
Returns the built-in mail account Source.
- public Source ref_builtin_memo_list ()
Returns the built-in memo list Source.
- public Source ref_builtin_proxy ()
Returns the built-in proxy profile Source.
- public Source ref_builtin_task_list ()
Returns the built-in task list Source.
- public Source ref_default_address_book ()
Returns the Source most recently passed to set_default_address_book either in this session or a previous session, or else falls back to the built-in address book.
- public Source ref_default_calendar ()
Returns the Source most recently passed to set_default_calendar either in this session or a previous session, or else falls back to the built-in calendar.
- public Source? ref_default_for_extension_name (string extension_name)
This is a convenience function to return a default Source based on
extension_name
. - public Source ref_default_mail_account ()
Returns the Source most recently passed to set_default_mail_account either in this session or a previous session, or else falls back to the built-in mail account.
- public Source? ref_default_mail_identity ()
Returns the Source most recently passed to set_default_mail_identity either in this session or a previous session, or else falls back to the mail identity named by the default mail account.
- public Source ref_default_memo_list ()
Returns the Source most recently passed to set_default_memo_list either in this session or a previous session, or else falls back to the built-in memo list.
- public Source ref_default_task_list ()
Returns the Source most recently passed to set_default_task_list either in this session or a previous session, or else falls back to the built-in task list.
- public Source? ref_source (string uid)
Looks up an Source in this by its unique identifier string.
- public async bool refresh_backend (string source_uid, Cancellable? cancellable) throws Error
Asynchronously requests the D-Bus service to refresh collection backend for an Source with UID
source_uid
. - public bool refresh_backend_sync (string source_uid, Cancellable? cancellable = null) throws Error
Requests the D-Bus service to refresh collection backend for an Source with UID
source_uid
. - public void set_default_address_book (Source? default_source)
Sets
default_source
as the default address book. - public void set_default_calendar (Source? default_source)
Sets
default_source
as the default calendar. - public void set_default_for_extension_name (string extension_name, Source? default_source)
This is a convenience function to set a default Source based on
extension_name
. - public void set_default_mail_account (Source? default_source)
Sets
default_source
as the default mail account. - public void set_default_mail_identity (Source? default_source)
Sets
default_source
as the default mail identity. - public void set_default_memo_list (Source? default_source)
Sets
default_source
as the default memo list. - public void set_default_task_list (Source? default_source)
Sets
default_source
as the default task list.
Signals:
- public virtual signal void credentials_required (Source source, SourceCredentialsReason reason, string certificate_pem, TlsCertificateFlags certificate_errors, Error op_error)
The credentials_required signal is emitted when the
source
requires credentials to connect to (possibly remote) data store. - public virtual signal void source_added (Source source)
Emitted when an Source is added to
registry
. - public virtual signal void source_changed (Source source)
- public virtual signal void source_disabled (Source source)
- public virtual signal void source_enabled (Source source)
- public virtual signal void source_removed (Source source)
Emitted when an Source is removed from
registry
.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface GLib.AsyncInitable
All known members inherited from interface GLib.Initable