GoaMail

GoaMail — Generated C code for the org.gnome.OnlineAccounts.Mail D-Bus interface

Synopsis

                    GoaMail;
struct              GoaMailIface;
guint               goa_mail_override_properties        (GObjectClass *klass,
                                                         guint property_id_begin);
GDBusInterfaceInfo * goa_mail_interface_info            (void);
const gchar *       goa_mail_get_email_address          (GoaMail *object);
gchar *             goa_mail_dup_email_address          (GoaMail *object);
void                goa_mail_set_email_address          (GoaMail *object,
                                                         const gchar *value);
const gchar *       goa_mail_get_name                   (GoaMail *object);
gchar *             goa_mail_dup_name                   (GoaMail *object);
void                goa_mail_set_name                   (GoaMail *object,
                                                         const gchar *value);
const gchar *       goa_mail_get_imap_host              (GoaMail *object);
gchar *             goa_mail_dup_imap_host              (GoaMail *object);
void                goa_mail_set_imap_host              (GoaMail *object,
                                                         const gchar *value);
gboolean            goa_mail_get_imap_supported         (GoaMail *object);
void                goa_mail_set_imap_supported         (GoaMail *object,
                                                         gboolean value);
gboolean            goa_mail_get_imap_accept_ssl_errors (GoaMail *object);
void                goa_mail_set_imap_accept_ssl_errors (GoaMail *object,
                                                         gboolean value);
gboolean            goa_mail_get_imap_use_ssl           (GoaMail *object);
void                goa_mail_set_imap_use_ssl           (GoaMail *object,
                                                         gboolean value);
gboolean            goa_mail_get_imap_use_tls           (GoaMail *object);
void                goa_mail_set_imap_use_tls           (GoaMail *object,
                                                         gboolean value);
const gchar *       goa_mail_get_imap_user_name         (GoaMail *object);
gchar *             goa_mail_dup_imap_user_name         (GoaMail *object);
void                goa_mail_set_imap_user_name         (GoaMail *object,
                                                         const gchar *value);
const gchar *       goa_mail_get_smtp_host              (GoaMail *object);
gchar *             goa_mail_dup_smtp_host              (GoaMail *object);
void                goa_mail_set_smtp_host              (GoaMail *object,
                                                         const gchar *value);
gboolean            goa_mail_get_smtp_supported         (GoaMail *object);
void                goa_mail_set_smtp_supported         (GoaMail *object,
                                                         gboolean value);
gboolean            goa_mail_get_smtp_accept_ssl_errors (GoaMail *object);
void                goa_mail_set_smtp_accept_ssl_errors (GoaMail *object,
                                                         gboolean value);
gboolean            goa_mail_get_smtp_use_auth          (GoaMail *object);
void                goa_mail_set_smtp_use_auth          (GoaMail *object,
                                                         gboolean value);
gboolean            goa_mail_get_smtp_use_ssl           (GoaMail *object);
void                goa_mail_set_smtp_use_ssl           (GoaMail *object,
                                                         gboolean value);
gboolean            goa_mail_get_smtp_use_tls           (GoaMail *object);
void                goa_mail_set_smtp_use_tls           (GoaMail *object,
                                                         gboolean value);
const gchar *       goa_mail_get_smtp_user_name         (GoaMail *object);
gchar *             goa_mail_dup_smtp_user_name         (GoaMail *object);
void                goa_mail_set_smtp_user_name         (GoaMail *object,
                                                         const gchar *value);
struct              GoaMailProxy;
struct              GoaMailProxyClass;
void                goa_mail_proxy_new                  (GDBusConnection *connection,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
GoaMail *           goa_mail_proxy_new_finish           (GAsyncResult *res,
                                                         GError **error);
GoaMail *           goa_mail_proxy_new_sync             (GDBusConnection *connection,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GError **error);
void                goa_mail_proxy_new_for_bus          (GBusType bus_type,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);
GoaMail *           goa_mail_proxy_new_for_bus_finish   (GAsyncResult *res,
                                                         GError **error);
GoaMail *           goa_mail_proxy_new_for_bus_sync     (GBusType bus_type,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GError **error);
struct              GoaMailSkeleton;
struct              GoaMailSkeletonClass;
GoaMail *           goa_mail_skeleton_new               (void);

Object Hierarchy

  GInterface
   +----GoaMail
  GObject
   +----GDBusProxy
         +----GoaMailProxy
  GObject
   +----GDBusInterfaceSkeleton
         +----GoaMailSkeleton

Prerequisites

GoaMail requires GObject.

Implemented Interfaces

GoaMailProxy implements GDBusInterface, GInitable, GAsyncInitable and GoaMail.

GoaMailSkeleton implements GDBusInterface and GoaMail.

Known Implementations

GoaMail is implemented by GoaMailProxy and GoaMailSkeleton.

Properties

  "email-address"            gchar*                : Read / Write
  "imap-accept-ssl-errors"   gboolean              : Read / Write
  "imap-host"                gchar*                : Read / Write
  "imap-supported"           gboolean              : Read / Write
  "imap-use-ssl"             gboolean              : Read / Write
  "imap-use-tls"             gboolean              : Read / Write
  "imap-user-name"           gchar*                : Read / Write
  "name"                     gchar*                : Read / Write
  "smtp-accept-ssl-errors"   gboolean              : Read / Write
  "smtp-host"                gchar*                : Read / Write
  "smtp-supported"           gboolean              : Read / Write
  "smtp-use-auth"            gboolean              : Read / Write
  "smtp-use-ssl"             gboolean              : Read / Write
  "smtp-use-tls"             gboolean              : Read / Write
  "smtp-user-name"           gchar*                : Read / Write

Description

This section contains code for working with the org.gnome.OnlineAccounts.Mail D-Bus interface in C.

Details

GoaMail

typedef struct _GoaMail GoaMail;

Abstract interface type for the D-Bus interface org.gnome.OnlineAccounts.Mail.


struct GoaMailIface

struct GoaMailIface {
  GTypeInterface parent_iface;

  const gchar * (*get_email_address) (GoaMail *object);

  const gchar * (*get_imap_host) (GoaMail *object);

  gboolean  (*get_imap_supported) (GoaMail *object);

  gboolean  (*get_imap_use_tls) (GoaMail *object);

  const gchar * (*get_imap_user_name) (GoaMail *object);

  const gchar * (*get_smtp_host) (GoaMail *object);

  gboolean  (*get_smtp_supported) (GoaMail *object);

  gboolean  (*get_smtp_use_tls) (GoaMail *object);

  const gchar * (*get_smtp_user_name) (GoaMail *object);

  gboolean  (*get_imap_accept_ssl_errors) (GoaMail *object);

  gboolean  (*get_imap_use_ssl) (GoaMail *object);

  const gchar * (*get_name) (GoaMail *object);

  gboolean  (*get_smtp_accept_ssl_errors) (GoaMail *object);

  gboolean  (*get_smtp_use_auth) (GoaMail *object);

  gboolean  (*get_smtp_use_ssl) (GoaMail *object);
};

Virtual table for the D-Bus interface org.gnome.OnlineAccounts.Mail.

GTypeInterface parent_iface;

The parent interface.

get_email_address ()

Getter for the "email-address" property.

get_imap_host ()

Getter for the "imap-host" property.

get_imap_supported ()

Getter for the "imap-supported" property.

get_imap_use_tls ()

Getter for the "imap-use-tls" property.

get_imap_user_name ()

Getter for the "imap-user-name" property.

get_smtp_host ()

Getter for the "smtp-host" property.

get_smtp_supported ()

Getter for the "smtp-supported" property.

get_smtp_use_tls ()

Getter for the "smtp-use-tls" property.

get_smtp_user_name ()

Getter for the "smtp-user-name" property.

get_imap_accept_ssl_errors ()

Getter for the "imap-accept-ssl-errors" property.

get_imap_use_ssl ()

Getter for the "imap-use-ssl" property.

get_name ()

Getter for the "name" property.

get_smtp_accept_ssl_errors ()

Getter for the "smtp-accept-ssl-errors" property.

get_smtp_use_auth ()

Getter for the "smtp-use-auth" property.

get_smtp_use_ssl ()

Getter for the "smtp-use-ssl" property.

goa_mail_override_properties ()

guint               goa_mail_override_properties        (GObjectClass *klass,
                                                         guint property_id_begin);

Overrides all GObject properties in the GoaMail interface for a concrete class. The properties are overridden in the order they are defined.

klass :

The class structure for a GObject-derived class.

property_id_begin :

The property id to assign to the first overridden property.

Returns :

The last property id.

goa_mail_interface_info ()

GDBusInterfaceInfo * goa_mail_interface_info            (void);

Gets a machine-readable description of the org.gnome.OnlineAccounts.Mail D-Bus interface.

Returns :

A GDBusInterfaceInfo. Do not free. [transfer none]

goa_mail_get_email_address ()

const gchar *       goa_mail_get_email_address          (GoaMail *object);

Gets the value of the "EmailAddress" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

Warning

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use goa_mail_dup_email_address() if on another thread.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]

goa_mail_dup_email_address ()

gchar *             goa_mail_dup_email_address          (GoaMail *object);

Gets a copy of the "EmailAddress" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]

goa_mail_set_email_address ()

void                goa_mail_set_email_address          (GoaMail *object,
                                                         const gchar *value);

Sets the "EmailAddress" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

goa_mail_get_name ()

const gchar *       goa_mail_get_name                   (GoaMail *object);

Gets the value of the "Name" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

Warning

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use goa_mail_dup_name() if on another thread.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]

Since 3.8.0


goa_mail_dup_name ()

gchar *             goa_mail_dup_name                   (GoaMail *object);

Gets a copy of the "Name" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]

Since 3.8.0


goa_mail_set_name ()

void                goa_mail_set_name                   (GoaMail *object,
                                                         const gchar *value);

Sets the "Name" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

Since 3.8.0


goa_mail_get_imap_host ()

const gchar *       goa_mail_get_imap_host              (GoaMail *object);

Gets the value of the "ImapHost" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

Warning

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use goa_mail_dup_imap_host() if on another thread.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]

goa_mail_dup_imap_host ()

gchar *             goa_mail_dup_imap_host              (GoaMail *object);

Gets a copy of the "ImapHost" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]

goa_mail_set_imap_host ()

void                goa_mail_set_imap_host              (GoaMail *object,
                                                         const gchar *value);

Sets the "ImapHost" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

goa_mail_get_imap_supported ()

gboolean            goa_mail_get_imap_supported         (GoaMail *object);

Gets the value of the "ImapSupported" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value.

goa_mail_set_imap_supported ()

void                goa_mail_set_imap_supported         (GoaMail *object,
                                                         gboolean value);

Sets the "ImapSupported" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

goa_mail_get_imap_accept_ssl_errors ()

gboolean            goa_mail_get_imap_accept_ssl_errors (GoaMail *object);

Gets the value of the "ImapAcceptSslErrors" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value.

Since 3.8.0


goa_mail_set_imap_accept_ssl_errors ()

void                goa_mail_set_imap_accept_ssl_errors (GoaMail *object,
                                                         gboolean value);

Sets the "ImapAcceptSslErrors" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

Since 3.8.0


goa_mail_get_imap_use_ssl ()

gboolean            goa_mail_get_imap_use_ssl           (GoaMail *object);

Gets the value of the "ImapUseSsl" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value.

Since 3.8.0


goa_mail_set_imap_use_ssl ()

void                goa_mail_set_imap_use_ssl           (GoaMail *object,
                                                         gboolean value);

Sets the "ImapUseSsl" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

Since 3.8.0


goa_mail_get_imap_use_tls ()

gboolean            goa_mail_get_imap_use_tls           (GoaMail *object);

Gets the value of the "ImapUseTls" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value.

goa_mail_set_imap_use_tls ()

void                goa_mail_set_imap_use_tls           (GoaMail *object,
                                                         gboolean value);

Sets the "ImapUseTls" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

goa_mail_get_imap_user_name ()

const gchar *       goa_mail_get_imap_user_name         (GoaMail *object);

Gets the value of the "ImapUserName" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

Warning

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use goa_mail_dup_imap_user_name() if on another thread.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]

goa_mail_dup_imap_user_name ()

gchar *             goa_mail_dup_imap_user_name         (GoaMail *object);

Gets a copy of the "ImapUserName" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]

goa_mail_set_imap_user_name ()

void                goa_mail_set_imap_user_name         (GoaMail *object,
                                                         const gchar *value);

Sets the "ImapUserName" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

goa_mail_get_smtp_host ()

const gchar *       goa_mail_get_smtp_host              (GoaMail *object);

Gets the value of the "SmtpHost" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

Warning

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use goa_mail_dup_smtp_host() if on another thread.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]

goa_mail_dup_smtp_host ()

gchar *             goa_mail_dup_smtp_host              (GoaMail *object);

Gets a copy of the "SmtpHost" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]

goa_mail_set_smtp_host ()

void                goa_mail_set_smtp_host              (GoaMail *object,
                                                         const gchar *value);

Sets the "SmtpHost" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

goa_mail_get_smtp_supported ()

gboolean            goa_mail_get_smtp_supported         (GoaMail *object);

Gets the value of the "SmtpSupported" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value.

goa_mail_set_smtp_supported ()

void                goa_mail_set_smtp_supported         (GoaMail *object,
                                                         gboolean value);

Sets the "SmtpSupported" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

goa_mail_get_smtp_accept_ssl_errors ()

gboolean            goa_mail_get_smtp_accept_ssl_errors (GoaMail *object);

Gets the value of the "SmtpAcceptSslErrors" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value.

Since 3.8.0


goa_mail_set_smtp_accept_ssl_errors ()

void                goa_mail_set_smtp_accept_ssl_errors (GoaMail *object,
                                                         gboolean value);

Sets the "SmtpAcceptSslErrors" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

Since 3.8.0


goa_mail_get_smtp_use_auth ()

gboolean            goa_mail_get_smtp_use_auth          (GoaMail *object);

Gets the value of the "SmtpUseAuth" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value.

Since 3.8.0


goa_mail_set_smtp_use_auth ()

void                goa_mail_set_smtp_use_auth          (GoaMail *object,
                                                         gboolean value);

Sets the "SmtpUseAuth" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

Since 3.8.0


goa_mail_get_smtp_use_ssl ()

gboolean            goa_mail_get_smtp_use_ssl           (GoaMail *object);

Gets the value of the "SmtpUseSsl" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value.

Since 3.8.0


goa_mail_set_smtp_use_ssl ()

void                goa_mail_set_smtp_use_ssl           (GoaMail *object,
                                                         gboolean value);

Sets the "SmtpUseSsl" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

Since 3.8.0


goa_mail_get_smtp_use_tls ()

gboolean            goa_mail_get_smtp_use_tls           (GoaMail *object);

Gets the value of the "SmtpUseTls" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value.

goa_mail_set_smtp_use_tls ()

void                goa_mail_set_smtp_use_tls           (GoaMail *object,
                                                         gboolean value);

Sets the "SmtpUseTls" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

goa_mail_get_smtp_user_name ()

const gchar *       goa_mail_get_smtp_user_name         (GoaMail *object);

Gets the value of the "SmtpUserName" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

Warning

The returned value is only valid until the property changes so on the client-side it is only safe to use this function on the thread where object was constructed. Use goa_mail_dup_smtp_user_name() if on another thread.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. Do not free the returned value, it belongs to object. [transfer none]

goa_mail_dup_smtp_user_name ()

gchar *             goa_mail_dup_smtp_user_name         (GoaMail *object);

Gets a copy of the "SmtpUserName" D-Bus property.

Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side.

object :

A GoaMail.

Returns :

The property value or NULL if the property is not set. The returned value should be freed with g_free(). [transfer full]

goa_mail_set_smtp_user_name ()

void                goa_mail_set_smtp_user_name         (GoaMail *object,
                                                         const gchar *value);

Sets the "SmtpUserName" D-Bus property to value.

Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side.

object :

A GoaMail.

value :

The value to set.

struct GoaMailProxy

struct GoaMailProxy;

The GoaMailProxy structure contains only private data and should only be accessed using the provided API.


struct GoaMailProxyClass

struct GoaMailProxyClass {
  GDBusProxyClass parent_class;
};

Class structure for GoaMailProxy.

GDBusProxyClass parent_class;

The parent class.

goa_mail_proxy_new ()

void                goa_mail_proxy_new                  (GDBusConnection *connection,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

Asynchronously creates a proxy for the D-Bus interface org.gnome.OnlineAccounts.Mail. See g_dbus_proxy_new() for more details.

When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call goa_mail_proxy_new_finish() to get the result of the operation.

See goa_mail_proxy_new_sync() for the synchronous, blocking version of this constructor.

connection :

A GDBusConnection.

flags :

Flags from the GDBusProxyFlags enumeration.

name :

A bus name (well-known or unique) or NULL if connection is not a message bus connection. [allow-none]

object_path :

An object path.

cancellable :

A GCancellable or NULL. [allow-none]

callback :

A GAsyncReadyCallback to call when the request is satisfied.

user_data :

User data to pass to callback.

goa_mail_proxy_new_finish ()

GoaMail *           goa_mail_proxy_new_finish           (GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with goa_mail_proxy_new().

res :

The GAsyncResult obtained from the GAsyncReadyCallback passed to goa_mail_proxy_new().

error :

Return location for error or NULL

Returns :

The constructed proxy object or NULL if error is set. [transfer full][type GoaMailProxy]

goa_mail_proxy_new_sync ()

GoaMail *           goa_mail_proxy_new_sync             (GDBusConnection *connection,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GError **error);

Synchronously creates a proxy for the D-Bus interface org.gnome.OnlineAccounts.Mail. See g_dbus_proxy_new_sync() for more details.

The calling thread is blocked until a reply is received.

See goa_mail_proxy_new() for the asynchronous version of this constructor.

connection :

A GDBusConnection.

flags :

Flags from the GDBusProxyFlags enumeration.

name :

A bus name (well-known or unique) or NULL if connection is not a message bus connection. [allow-none]

object_path :

An object path.

cancellable :

A GCancellable or NULL. [allow-none]

error :

Return location for error or NULL

Returns :

The constructed proxy object or NULL if error is set. [transfer full][type GoaMailProxy]

goa_mail_proxy_new_for_bus ()

void                goa_mail_proxy_new_for_bus          (GBusType bus_type,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

Like goa_mail_proxy_new() but takes a GBusType instead of a GDBusConnection.

When the operation is finished, callback will be invoked in the thread-default main loop of the thread you are calling this method from. You can then call goa_mail_proxy_new_for_bus_finish() to get the result of the operation.

See goa_mail_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor.

bus_type :

A GBusType.

flags :

Flags from the GDBusProxyFlags enumeration.

name :

A bus name (well-known or unique).

object_path :

An object path.

cancellable :

A GCancellable or NULL. [allow-none]

callback :

A GAsyncReadyCallback to call when the request is satisfied.

user_data :

User data to pass to callback.

goa_mail_proxy_new_for_bus_finish ()

GoaMail *           goa_mail_proxy_new_for_bus_finish   (GAsyncResult *res,
                                                         GError **error);

Finishes an operation started with goa_mail_proxy_new_for_bus().

res :

The GAsyncResult obtained from the GAsyncReadyCallback passed to goa_mail_proxy_new_for_bus().

error :

Return location for error or NULL

Returns :

The constructed proxy object or NULL if error is set. [transfer full][type GoaMailProxy]

goa_mail_proxy_new_for_bus_sync ()

GoaMail *           goa_mail_proxy_new_for_bus_sync     (GBusType bus_type,
                                                         GDBusProxyFlags flags,
                                                         const gchar *name,
                                                         const gchar *object_path,
                                                         GCancellable *cancellable,
                                                         GError **error);

Like goa_mail_proxy_new_sync() but takes a GBusType instead of a GDBusConnection.

The calling thread is blocked until a reply is received.

See goa_mail_proxy_new_for_bus() for the asynchronous version of this constructor.

bus_type :

A GBusType.

flags :

Flags from the GDBusProxyFlags enumeration.

name :

A bus name (well-known or unique).

object_path :

An object path.

cancellable :

A GCancellable or NULL. [allow-none]

error :

Return location for error or NULL

Returns :

The constructed proxy object or NULL if error is set. [transfer full][type GoaMailProxy]

struct GoaMailSkeleton

struct GoaMailSkeleton;

The GoaMailSkeleton structure contains only private data and should only be accessed using the provided API.


struct GoaMailSkeletonClass

struct GoaMailSkeletonClass {
  GDBusInterfaceSkeletonClass parent_class;
};

Class structure for GoaMailSkeleton.

GDBusInterfaceSkeletonClass parent_class;

The parent class.

goa_mail_skeleton_new ()

GoaMail *           goa_mail_skeleton_new               (void);

Creates a skeleton object for the D-Bus interface org.gnome.OnlineAccounts.Mail.

Returns :

The skeleton object. [transfer full][type GoaMailSkeleton]

Property Details

The "email-address" property

  "email-address"            gchar*                : Read / Write

Represents the D-Bus property "EmailAddress".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: NULL


The "imap-accept-ssl-errors" property

  "imap-accept-ssl-errors"   gboolean              : Read / Write

Represents the D-Bus property "ImapAcceptSslErrors".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: FALSE

Since 3.8.0


The "imap-host" property

  "imap-host"                gchar*                : Read / Write

Represents the D-Bus property "ImapHost".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: NULL


The "imap-supported" property

  "imap-supported"           gboolean              : Read / Write

Represents the D-Bus property "ImapSupported".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: FALSE


The "imap-use-ssl" property

  "imap-use-ssl"             gboolean              : Read / Write

Represents the D-Bus property "ImapUseSsl".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: FALSE

Since 3.8.0


The "imap-use-tls" property

  "imap-use-tls"             gboolean              : Read / Write

Represents the D-Bus property "ImapUseTls".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: FALSE


The "imap-user-name" property

  "imap-user-name"           gchar*                : Read / Write

Represents the D-Bus property "ImapUserName".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: NULL


The "name" property

  "name"                     gchar*                : Read / Write

Represents the D-Bus property "Name".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: NULL

Since 3.8.0


The "smtp-accept-ssl-errors" property

  "smtp-accept-ssl-errors"   gboolean              : Read / Write

Represents the D-Bus property "SmtpAcceptSslErrors".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: FALSE

Since 3.8.0


The "smtp-host" property

  "smtp-host"                gchar*                : Read / Write

Represents the D-Bus property "SmtpHost".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: NULL


The "smtp-supported" property

  "smtp-supported"           gboolean              : Read / Write

Represents the D-Bus property "SmtpSupported".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: FALSE


The "smtp-use-auth" property

  "smtp-use-auth"            gboolean              : Read / Write

Represents the D-Bus property "SmtpUseAuth".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: FALSE

Since 3.8.0


The "smtp-use-ssl" property

  "smtp-use-ssl"             gboolean              : Read / Write

Represents the D-Bus property "SmtpUseSsl".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: FALSE

Since 3.8.0


The "smtp-use-tls" property

  "smtp-use-tls"             gboolean              : Read / Write

Represents the D-Bus property "SmtpUseTls".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: FALSE


The "smtp-user-name" property

  "smtp-user-name"           gchar*                : Read / Write

Represents the D-Bus property "SmtpUserName".

Since the D-Bus property for this GObject property is readable but not writable, it is meaningful to read from it on both the client- and service-side. It is only meaningful, however, to write to it on the service-side.

Default value: NULL