Session
Object Hierarchy:
Camel.Session
Camel.Session
Camel.Session
GLib.Object
GLib.Object
GLib.Object->Camel.Session
Description:
[ CCode ( type_id = "camel_session_get_type ()" ) ]public class Session : Object
Content:
Properties:
Creation methods:
Methods:
public virtual Service add_service (string uid, string protocol, ProviderType type) throws Error
Instantiates a new
Service for this .
public virtual bool addressbook_contains_sync (string book_uid, string email_address, Cancellable ? cancellable = null ) throws Error
Look up in an address book book_uid
for an address
email_address
and returns whether any such contact exists.
public async bool authenticate (Service service, string ? mechanism, int io_priority, Cancellable ? cancellable = null ) throws Error
public virtual bool authenticate_sync (Service service, string ? mechanism, Cancellable ? cancellable = null ) throws Error
public virtual bool forget_password (Service service, string item) throws Error
This function is used by a
Service to tell the application that the authentication information it
provided via get_password was rejected by the service.
public async bool forward_to (Folder folder, MimeMessage message, string address, int io_priority, Cancellable ? cancellable = null ) throws Error
Asynchronously forwards message
in folder
to
the email address(s) given by address
.
public virtual bool forward_to_sync (Folder folder, MimeMessage message, string address, Cancellable ? cancellable = null ) throws Error
Forwards message
in folder
to the email
address(es) given by address
.
public virtual unowned FilterDriver get_filter_driver (string type, Folder ? for_folder) throws Error
The optional for_folder
can be used to determine which
filters to add and which not.
public unowned JunkFilter ? get_junk_filter ()
Returns the
JunkFilter instance used to classify messages as junk or not junk during filtering.
public unowned HashTable <string ,string > get_junk_headers ()
public virtual bool get_oauth2_access_token_sync (Service service, out string ? out_access_token, out int out_expires_in, Cancellable ? cancellable = null ) throws Error
Obtains the OAuth 2.0 access token for service
along with
its expiry in seconds from the current time (or 0 if unknown).
public bool get_online ()
public virtual string get_password (Service service, string prompt, string item, uint32 flags) throws Error
This function is used by a
Service to ask the application and the user for a password or other
authentication data.
public virtual bool get_recipient_certificates_sync (uint32 flags, GenericArray <string > recipients, out SList <string > out_certificates, Cancellable ? cancellable = null ) throws Error
Searches for S/MIME certificates or PGP keys for the given
recipients
, which are returned as base64 encoded strings in out_certificates
.
public unowned string get_user_cache_dir ()
Returns the base directory under which to store user-specific mail
cache.
public unowned string get_user_data_dir ()
Returns the base directory under which to store user-specific mail
data.
public uint idle_add (int priority, owned SourceFunc function)
Adds a function to be called whenever there are no higher priority
events pending.
public List <Service > list_services ()
public virtual bool lookup_addressbook (string name)
Looks up for the name
in address books.
public MainContext ref_main_context ()
Returns the MainContext on which event
sources for this are to be attached.
public NetworkMonitor ref_network_monitor ()
public Service ? ref_service (string uid)
Looks up a Service
by its unique identifier string.
public Service ? ref_service_by_url (URL url, ProviderType type)
Looks up a Service
by trying to match its URL against the given url
and then checking that
the object is of the desired type
.
public virtual void remove_service (Service service)
public void remove_services ()
public void set_junk_filter (JunkFilter ? junk_filter)
Installs the
JunkFilter instance used to classify messages as junk or not junk during filtering.
public void set_junk_headers (string [] headers, string [] values)
public void set_network_monitor (NetworkMonitor ? network_monitor)
Sets a network monitor instance for the
this .
public void set_online (bool online)
Sets the online status of this to
online
.
public void submit_job (string description, owned SessionCallback callback)
This function provides a simple mechanism for providers to initiate
low-priority background jobs.
public virtual CertTrust trust_prompt (Service service, TlsCertificate certificate, TlsCertificateFlags errors)
Prompts the user whether to accept certificate
for
service
.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref