Service
Object Hierarchy:
Description:
All known sub-classes:
Required by:
Namespace: Camel
Package: camel-1.2
Content:
Properties:
- public ServiceConnectionStatus connection_status { get; }
- public string display_name { get; set construct; }
- public string password { get; set construct; }
- public Provider provider { owned get; construct; }
- public ProxyResolver proxy_resolver { owned get; set; }
- public Session session { owned get; construct; }
- public Settings settings { owned get; set construct; }
- public string uid { get; construct; }
Creation methods:
- protected Service ()
Methods:
- public async AuthenticationResult authenticate (string? mechanism, int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously attempts to authenticate this using
mechanism
and, if necessary, this's password property. - public virtual AuthenticationResult authenticate_sync (string? mechanism, Cancellable? cancellable = null) throws Error
Attempts to authenticate this using
mechanism
and, if necessary, this's password property. - public async bool connect (int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously connects this to a remote server using the information in its settings instance.
- public virtual bool connect_sync (Cancellable? cancellable = null) throws Error
Connects this to a remote server using the information in its settings instance.
- public async bool disconnect (bool clean, int io_priority, Cancellable? cancellable = null) throws Error
If a disconnect operation is already in progress when this function is called, its results will be reflected in this disconnect operation.
- public virtual bool disconnect_sync (bool clean, Cancellable? cancellable = null) throws Error
Disconnect from the service.
- public string? dup_display_name ()
Thread-safe variation of get_display_name.
- public string dup_password ()
Thread-safe variation of get_password.
- public ServiceConnectionStatus get_connection_status ()
Returns the connection status for this.
- public unowned string? get_display_name ()
Returns the display name for this, or null if this has not been given a display name.
- public virtual string get_name (bool brief)
This gets the name of the service in a "friendly" (suitable for humans) form.
- public unowned string get_password ()
Returns the password for this.
- public Provider get_provider ()
Gets the Provider associated with the service.
- public unowned string get_uid ()
Gets the unique identifier string associated with the service.
- public unowned string get_user_cache_dir ()
Returns the base directory under which to store cache data for this.
- public unowned string get_user_data_dir ()
Returns the base directory under which to store user-specific data for this.
- public void migrate_files ()
Performs any necessary file migrations for this .
- public URL new_camel_url ()
Returns a new URL representing this.
- public async List<unowned ServiceAuthType?> query_auth_types (int io_priority, Cancellable? cancellable = null) throws Error
Asynchronously obtains a list of authentication types supported by this.
- public virtual List<unowned ServiceAuthType?> query_auth_types_sync (Cancellable? cancellable = null) throws Error
Obtains a list of authentication types supported by this.
- public void queue_task (Task task, TaskThreadFunc task_func)
Adds
task
to a queue of waiting tasks with the same source object. - public ProxyResolver? ref_proxy_resolver ()
Returns the ProxyResolver for this.
- public Session ref_session ()
Returns the Session associated with the service.
- public Settings ref_settings ()
Returns the Settings instance associated with the service.
- public void set_display_name (string? display_name)
Assigns a UTF-8 display name to this.
- public void set_password (string password)
Sets the password for this.
- public void set_proxy_resolver (ProxyResolver? proxy_resolver)
Sets the ProxyResolver for this.
- public void set_settings (Settings? settings)
Associates a new Settings instance with the service.
Inherited Members:
All known members inherited from class Camel.Object
All known members inherited from class GLib.Object
All known members inherited from interface GLib.Initable