/* PantheonAccountsServicePlugin.c generated by valac 0.56.3, the Vala compiler
 * generated from PantheonAccountsServicePlugin.vala, do not modify */

#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <gio/gio.h>

#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define PANTHEON_TYPE_ACCOUNTS_SERVICE (pantheon_accounts_service_get_type ())
#define PANTHEON_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANTHEON_TYPE_ACCOUNTS_SERVICE, PantheonAccountsService))
#define PANTHEON_IS_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANTHEON_TYPE_ACCOUNTS_SERVICE))
#define PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), PANTHEON_TYPE_ACCOUNTS_SERVICE, PantheonAccountsServiceIface))

typedef struct _PantheonAccountsService PantheonAccountsService;
typedef struct _PantheonAccountsServiceIface PantheonAccountsServiceIface;

#define PANTHEON_TYPE_ACCOUNTS_SERVICE_PROXY (pantheon_accounts_service_proxy_get_type ())
typedef GDBusProxy PantheonAccountsServiceProxy;
typedef GDBusProxyClass PantheonAccountsServiceProxyClass;
#define _g_free0(var) (var = (g_free (var), NULL))

#define PANTHEON_SETTINGS_DAEMON_TYPE_ACCOUNTS_SERVICE (pantheon_settings_daemon_accounts_service_get_type ())
#define PANTHEON_SETTINGS_DAEMON_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PANTHEON_SETTINGS_DAEMON_TYPE_ACCOUNTS_SERVICE, PantheonSettingsDaemonAccountsService))
#define PANTHEON_SETTINGS_DAEMON_IS_ACCOUNTS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PANTHEON_SETTINGS_DAEMON_TYPE_ACCOUNTS_SERVICE))
#define PANTHEON_SETTINGS_DAEMON_ACCOUNTS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), PANTHEON_SETTINGS_DAEMON_TYPE_ACCOUNTS_SERVICE, PantheonSettingsDaemonAccountsServiceIface))

typedef struct _PantheonSettingsDaemonAccountsService PantheonSettingsDaemonAccountsService;
typedef struct _PantheonSettingsDaemonAccountsServiceIface PantheonSettingsDaemonAccountsServiceIface;

#define PANTHEON_SETTINGS_DAEMON_ACCOUNTS_SERVICE_TYPE_KEYBOARD_LAYOUT (pantheon_settings_daemon_accounts_service_keyboard_layout_get_type ())
typedef struct _PantheonSettingsDaemonAccountsServiceKeyboardLayout PantheonSettingsDaemonAccountsServiceKeyboardLayout;

#define PANTHEON_SETTINGS_DAEMON_TYPE_ACCOUNTS_SERVICE_PROXY (pantheon_settings_daemon_accounts_service_proxy_get_type ())
typedef GDBusProxy PantheonSettingsDaemonAccountsServiceProxy;
typedef GDBusProxyClass PantheonSettingsDaemonAccountsServiceProxyClass;

struct _PantheonAccountsServiceIface {
	GTypeInterface parent_iface;
	gchar* (*get_time_format) (PantheonAccountsService* self);
	void (*set_time_format) (PantheonAccountsService* self, const gchar* value);
	gint (*get_prefers_accent_color) (PantheonAccountsService* self);
	void (*set_prefers_accent_color) (PantheonAccountsService* self, gint value);
	gint (*get_sleep_inactive_ac_timeout) (PantheonAccountsService* self);
	void (*set_sleep_inactive_ac_timeout) (PantheonAccountsService* self, gint value);
	gint (*get_sleep_inactive_ac_type) (PantheonAccountsService* self);
	void (*set_sleep_inactive_ac_type) (PantheonAccountsService* self, gint value);
	gint (*get_sleep_inactive_battery_timeout) (PantheonAccountsService* self);
	void (*set_sleep_inactive_battery_timeout) (PantheonAccountsService* self, gint value);
	gint (*get_sleep_inactive_battery_type) (PantheonAccountsService* self);
	void (*set_sleep_inactive_battery_type) (PantheonAccountsService* self, gint value);
};

struct _PantheonSettingsDaemonAccountsServiceKeyboardLayout {
	gchar* backend;
	gchar* name;
};

struct _PantheonSettingsDaemonAccountsServiceIface {
	GTypeInterface parent_iface;
	PantheonSettingsDaemonAccountsServiceKeyboardLayout* (*get_keyboard_layouts) (PantheonSettingsDaemonAccountsService* self, gint* result_length1);
	void (*set_keyboard_layouts) (PantheonSettingsDaemonAccountsService* self, PantheonSettingsDaemonAccountsServiceKeyboardLayout* value, gint value_length1);
	guint (*get_active_keyboard_layout) (PantheonSettingsDaemonAccountsService* self);
	void (*set_active_keyboard_layout) (PantheonSettingsDaemonAccountsService* self, guint value);
};

VALA_EXTERN GType pantheon_accounts_service_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PantheonAccountsService, g_object_unref)
VALA_EXTERN GType pantheon_accounts_service_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint pantheon_accounts_service_register_object (void* object,
                                                 GDBusConnection* connection,
                                                 const gchar* path,
                                                 GError** error);
VALA_EXTERN gchar* pantheon_accounts_service_get_time_format (PantheonAccountsService* self);
VALA_EXTERN void pantheon_accounts_service_set_time_format (PantheonAccountsService* self,
                                                const gchar* value);
VALA_EXTERN gint pantheon_accounts_service_get_prefers_accent_color (PantheonAccountsService* self);
VALA_EXTERN void pantheon_accounts_service_set_prefers_accent_color (PantheonAccountsService* self,
                                                         gint value);
VALA_EXTERN gint pantheon_accounts_service_get_sleep_inactive_ac_timeout (PantheonAccountsService* self);
VALA_EXTERN void pantheon_accounts_service_set_sleep_inactive_ac_timeout (PantheonAccountsService* self,
                                                              gint value);
VALA_EXTERN gint pantheon_accounts_service_get_sleep_inactive_ac_type (PantheonAccountsService* self);
VALA_EXTERN void pantheon_accounts_service_set_sleep_inactive_ac_type (PantheonAccountsService* self,
                                                           gint value);
VALA_EXTERN gint pantheon_accounts_service_get_sleep_inactive_battery_timeout (PantheonAccountsService* self);
VALA_EXTERN void pantheon_accounts_service_set_sleep_inactive_battery_timeout (PantheonAccountsService* self,
                                                                   gint value);
VALA_EXTERN gint pantheon_accounts_service_get_sleep_inactive_battery_type (PantheonAccountsService* self);
VALA_EXTERN void pantheon_accounts_service_set_sleep_inactive_battery_type (PantheonAccountsService* self,
                                                                gint value);
static GType pantheon_accounts_service_get_type_once (void);
static void pantheon_accounts_service_proxy_g_signal (GDBusProxy* proxy,
                                               const gchar* sender_name,
                                               const gchar* signal_name,
                                               GVariant* parameters);
static gchar* pantheon_accounts_service_dbus_proxy_get_time_format (PantheonAccountsService* self);
static void pantheon_accounts_service_dbus_proxy_set_time_format (PantheonAccountsService* self,
                                                           const gchar* value);
static gint pantheon_accounts_service_dbus_proxy_get_prefers_accent_color (PantheonAccountsService* self);
static void pantheon_accounts_service_dbus_proxy_set_prefers_accent_color (PantheonAccountsService* self,
                                                                    gint value);
static gint pantheon_accounts_service_dbus_proxy_get_sleep_inactive_ac_timeout (PantheonAccountsService* self);
static void pantheon_accounts_service_dbus_proxy_set_sleep_inactive_ac_timeout (PantheonAccountsService* self,
                                                                         gint value);
static gint pantheon_accounts_service_dbus_proxy_get_sleep_inactive_ac_type (PantheonAccountsService* self);
static void pantheon_accounts_service_dbus_proxy_set_sleep_inactive_ac_type (PantheonAccountsService* self,
                                                                      gint value);
static gint pantheon_accounts_service_dbus_proxy_get_sleep_inactive_battery_timeout (PantheonAccountsService* self);
static void pantheon_accounts_service_dbus_proxy_set_sleep_inactive_battery_timeout (PantheonAccountsService* self,
                                                                              gint value);
static gint pantheon_accounts_service_dbus_proxy_get_sleep_inactive_battery_type (PantheonAccountsService* self);
static void pantheon_accounts_service_dbus_proxy_set_sleep_inactive_battery_type (PantheonAccountsService* self,
                                                                           gint value);
static void pantheon_accounts_service_proxy_pantheon_accounts_service_interface_init (PantheonAccountsServiceIface* iface);
static void pantheon_accounts_service_dbus_interface_method_call (GDBusConnection* connection,
                                                           const gchar* sender,
                                                           const gchar* object_path,
                                                           const gchar* interface_name,
                                                           const gchar* method_name,
                                                           GVariant* parameters,
                                                           GDBusMethodInvocation* invocation,
                                                           gpointer user_data);
static GVariant* pantheon_accounts_service_dbus_interface_get_property (GDBusConnection* connection,
                                                                 const gchar* sender,
                                                                 const gchar* object_path,
                                                                 const gchar* interface_name,
                                                                 const gchar* property_name,
                                                                 GError** error,
                                                                 gpointer user_data);
static GVariant* _dbus_pantheon_accounts_service_get_time_format (PantheonAccountsService* self);
static GVariant* _dbus_pantheon_accounts_service_get_prefers_accent_color (PantheonAccountsService* self);
static GVariant* _dbus_pantheon_accounts_service_get_sleep_inactive_ac_timeout (PantheonAccountsService* self);
static GVariant* _dbus_pantheon_accounts_service_get_sleep_inactive_ac_type (PantheonAccountsService* self);
static GVariant* _dbus_pantheon_accounts_service_get_sleep_inactive_battery_timeout (PantheonAccountsService* self);
static GVariant* _dbus_pantheon_accounts_service_get_sleep_inactive_battery_type (PantheonAccountsService* self);
static gboolean pantheon_accounts_service_dbus_interface_set_property (GDBusConnection* connection,
                                                                const gchar* sender,
                                                                const gchar* object_path,
                                                                const gchar* interface_name,
                                                                const gchar* property_name,
                                                                GVariant* value,
                                                                GError** error,
                                                                gpointer user_data);
static void _dbus_pantheon_accounts_service_set_time_format (PantheonAccountsService* self,
                                                      GVariant* _value);
static void _dbus_pantheon_accounts_service_set_prefers_accent_color (PantheonAccountsService* self,
                                                               GVariant* _value);
static void _dbus_pantheon_accounts_service_set_sleep_inactive_ac_timeout (PantheonAccountsService* self,
                                                                    GVariant* _value);
static void _dbus_pantheon_accounts_service_set_sleep_inactive_ac_type (PantheonAccountsService* self,
                                                                 GVariant* _value);
static void _dbus_pantheon_accounts_service_set_sleep_inactive_battery_timeout (PantheonAccountsService* self,
                                                                         GVariant* _value);
static void _dbus_pantheon_accounts_service_set_sleep_inactive_battery_type (PantheonAccountsService* self,
                                                                      GVariant* _value);
static void _pantheon_accounts_service_unregister_object (gpointer user_data);
VALA_EXTERN GType pantheon_settings_daemon_accounts_service_keyboard_layout_get_type (void) G_GNUC_CONST ;
VALA_EXTERN PantheonSettingsDaemonAccountsServiceKeyboardLayout* pantheon_settings_daemon_accounts_service_keyboard_layout_dup (const PantheonSettingsDaemonAccountsServiceKeyboardLayout* self);
VALA_EXTERN void pantheon_settings_daemon_accounts_service_keyboard_layout_free (PantheonSettingsDaemonAccountsServiceKeyboardLayout* self);
VALA_EXTERN void pantheon_settings_daemon_accounts_service_keyboard_layout_copy (const PantheonSettingsDaemonAccountsServiceKeyboardLayout* self,
                                                                     PantheonSettingsDaemonAccountsServiceKeyboardLayout* dest);
VALA_EXTERN void pantheon_settings_daemon_accounts_service_keyboard_layout_destroy (PantheonSettingsDaemonAccountsServiceKeyboardLayout* self);
G_DEFINE_AUTO_CLEANUP_CLEAR_FUNC (PantheonSettingsDaemonAccountsServiceKeyboardLayout, pantheon_settings_daemon_accounts_service_keyboard_layout_destroy)
VALA_EXTERN GType pantheon_settings_daemon_accounts_service_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PantheonSettingsDaemonAccountsService, g_object_unref)
VALA_EXTERN GType pantheon_settings_daemon_accounts_service_proxy_get_type (void) G_GNUC_CONST ;
VALA_EXTERN guint pantheon_settings_daemon_accounts_service_register_object (void* object,
                                                                 GDBusConnection* connection,
                                                                 const gchar* path,
                                                                 GError** error);
VALA_EXTERN PantheonSettingsDaemonAccountsServiceKeyboardLayout* pantheon_settings_daemon_accounts_service_get_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                                                                     gint* result_length1);
VALA_EXTERN void pantheon_settings_daemon_accounts_service_set_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                     PantheonSettingsDaemonAccountsServiceKeyboardLayout* value,
                                                                     gint value_length1);
VALA_EXTERN guint pantheon_settings_daemon_accounts_service_get_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self);
VALA_EXTERN void pantheon_settings_daemon_accounts_service_set_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self,
                                                                           guint value);
static GType pantheon_settings_daemon_accounts_service_get_type_once (void);
static void pantheon_settings_daemon_accounts_service_proxy_g_signal (GDBusProxy* proxy,
                                                               const gchar* sender_name,
                                                               const gchar* signal_name,
                                                               GVariant* parameters);
static PantheonSettingsDaemonAccountsServiceKeyboardLayout* pantheon_settings_daemon_accounts_service_dbus_proxy_get_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                                                                                gint* result_length1);
static void pantheon_settings_daemon_accounts_service_dbus_proxy_set_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                                PantheonSettingsDaemonAccountsServiceKeyboardLayout* value,
                                                                                gint value_length1);
static guint pantheon_settings_daemon_accounts_service_dbus_proxy_get_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self);
static void pantheon_settings_daemon_accounts_service_dbus_proxy_set_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self,
                                                                                      guint value);
static void pantheon_settings_daemon_accounts_service_proxy_pantheon_settings_daemon_accounts_service_interface_init (PantheonSettingsDaemonAccountsServiceIface* iface);
static void pantheon_settings_daemon_accounts_service_dbus_interface_method_call (GDBusConnection* connection,
                                                                           const gchar* sender,
                                                                           const gchar* object_path,
                                                                           const gchar* interface_name,
                                                                           const gchar* method_name,
                                                                           GVariant* parameters,
                                                                           GDBusMethodInvocation* invocation,
                                                                           gpointer user_data);
static GVariant* pantheon_settings_daemon_accounts_service_dbus_interface_get_property (GDBusConnection* connection,
                                                                                 const gchar* sender,
                                                                                 const gchar* object_path,
                                                                                 const gchar* interface_name,
                                                                                 const gchar* property_name,
                                                                                 GError** error,
                                                                                 gpointer user_data);
static void _vala_PantheonSettingsDaemonAccountsServiceKeyboardLayout_array_free (PantheonSettingsDaemonAccountsServiceKeyboardLayout * array,
                                                                           gssize array_length);
static GVariant* _dbus_pantheon_settings_daemon_accounts_service_get_keyboard_layouts (PantheonSettingsDaemonAccountsService* self);
static GVariant* _dbus_pantheon_settings_daemon_accounts_service_get_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self);
static gboolean pantheon_settings_daemon_accounts_service_dbus_interface_set_property (GDBusConnection* connection,
                                                                                const gchar* sender,
                                                                                const gchar* object_path,
                                                                                const gchar* interface_name,
                                                                                const gchar* property_name,
                                                                                GVariant* value,
                                                                                GError** error,
                                                                                gpointer user_data);
static void _dbus_pantheon_settings_daemon_accounts_service_set_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                           GVariant* _value);
static void _dbus_pantheon_settings_daemon_accounts_service_set_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self,
                                                                                 GVariant* _value);
static void _pantheon_settings_daemon_accounts_service_unregister_object (gpointer user_data);

static const GDBusMethodInfo * const _pantheon_accounts_service_dbus_method_info[] = {NULL};
static const GDBusSignalInfo * const _pantheon_accounts_service_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo _pantheon_accounts_service_dbus_property_info_time_format = {-1, "TimeFormat", "s", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _pantheon_accounts_service_dbus_property_info_prefers_accent_color = {-1, "PrefersAccentColor", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _pantheon_accounts_service_dbus_property_info_sleep_inactive_ac_timeout = {-1, "SleepInactiveACTimeout", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _pantheon_accounts_service_dbus_property_info_sleep_inactive_ac_type = {-1, "SleepInactiveACType", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _pantheon_accounts_service_dbus_property_info_sleep_inactive_battery_timeout = {-1, "SleepInactiveBatteryTimeout", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _pantheon_accounts_service_dbus_property_info_sleep_inactive_battery_type = {-1, "SleepInactiveBatteryType", "i", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo * const _pantheon_accounts_service_dbus_property_info[] = {&_pantheon_accounts_service_dbus_property_info_time_format, &_pantheon_accounts_service_dbus_property_info_prefers_accent_color, &_pantheon_accounts_service_dbus_property_info_sleep_inactive_ac_timeout, &_pantheon_accounts_service_dbus_property_info_sleep_inactive_ac_type, &_pantheon_accounts_service_dbus_property_info_sleep_inactive_battery_timeout, &_pantheon_accounts_service_dbus_property_info_sleep_inactive_battery_type, NULL};
static const GDBusInterfaceInfo _pantheon_accounts_service_dbus_interface_info = {-1, "io.elementary.pantheon.AccountsService", (GDBusMethodInfo **) (&_pantheon_accounts_service_dbus_method_info), (GDBusSignalInfo **) (&_pantheon_accounts_service_dbus_signal_info), (GDBusPropertyInfo **) (&_pantheon_accounts_service_dbus_property_info), NULL};
static const GDBusInterfaceVTable _pantheon_accounts_service_dbus_interface_vtable = {pantheon_accounts_service_dbus_interface_method_call, pantheon_accounts_service_dbus_interface_get_property, pantheon_accounts_service_dbus_interface_set_property};
static const GDBusMethodInfo * const _pantheon_settings_daemon_accounts_service_dbus_method_info[] = {NULL};
static const GDBusSignalInfo * const _pantheon_settings_daemon_accounts_service_dbus_signal_info[] = {NULL};
static const GDBusPropertyInfo _pantheon_settings_daemon_accounts_service_dbus_property_info_keyboard_layouts = {-1, "KeyboardLayouts", "a(ss)", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo _pantheon_settings_daemon_accounts_service_dbus_property_info_active_keyboard_layout = {-1, "ActiveKeyboardLayout", "u", G_DBUS_PROPERTY_INFO_FLAGS_READABLE | G_DBUS_PROPERTY_INFO_FLAGS_WRITABLE, NULL};
static const GDBusPropertyInfo * const _pantheon_settings_daemon_accounts_service_dbus_property_info[] = {&_pantheon_settings_daemon_accounts_service_dbus_property_info_keyboard_layouts, &_pantheon_settings_daemon_accounts_service_dbus_property_info_active_keyboard_layout, NULL};
static const GDBusInterfaceInfo _pantheon_settings_daemon_accounts_service_dbus_interface_info = {-1, "io.elementary.SettingsDaemon.AccountsService", (GDBusMethodInfo **) (&_pantheon_settings_daemon_accounts_service_dbus_method_info), (GDBusSignalInfo **) (&_pantheon_settings_daemon_accounts_service_dbus_signal_info), (GDBusPropertyInfo **) (&_pantheon_settings_daemon_accounts_service_dbus_property_info), NULL};
static const GDBusInterfaceVTable _pantheon_settings_daemon_accounts_service_dbus_interface_vtable = {pantheon_settings_daemon_accounts_service_dbus_interface_method_call, pantheon_settings_daemon_accounts_service_dbus_interface_get_property, pantheon_settings_daemon_accounts_service_dbus_interface_set_property};

gchar*
pantheon_accounts_service_get_time_format (PantheonAccountsService* self)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_time_format) {
		return _iface_->get_time_format (self);
	}
	return NULL;
}

void
pantheon_accounts_service_set_time_format (PantheonAccountsService* self,
                                           const gchar* value)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_time_format) {
		_iface_->set_time_format (self, value);
	}
}

gint
pantheon_accounts_service_get_prefers_accent_color (PantheonAccountsService* self)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_prefers_accent_color) {
		return _iface_->get_prefers_accent_color (self);
	}
	return -1;
}

void
pantheon_accounts_service_set_prefers_accent_color (PantheonAccountsService* self,
                                                    gint value)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_prefers_accent_color) {
		_iface_->set_prefers_accent_color (self, value);
	}
}

gint
pantheon_accounts_service_get_sleep_inactive_ac_timeout (PantheonAccountsService* self)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_sleep_inactive_ac_timeout) {
		return _iface_->get_sleep_inactive_ac_timeout (self);
	}
	return -1;
}

void
pantheon_accounts_service_set_sleep_inactive_ac_timeout (PantheonAccountsService* self,
                                                         gint value)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_sleep_inactive_ac_timeout) {
		_iface_->set_sleep_inactive_ac_timeout (self, value);
	}
}

gint
pantheon_accounts_service_get_sleep_inactive_ac_type (PantheonAccountsService* self)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_sleep_inactive_ac_type) {
		return _iface_->get_sleep_inactive_ac_type (self);
	}
	return -1;
}

void
pantheon_accounts_service_set_sleep_inactive_ac_type (PantheonAccountsService* self,
                                                      gint value)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_sleep_inactive_ac_type) {
		_iface_->set_sleep_inactive_ac_type (self, value);
	}
}

gint
pantheon_accounts_service_get_sleep_inactive_battery_timeout (PantheonAccountsService* self)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_sleep_inactive_battery_timeout) {
		return _iface_->get_sleep_inactive_battery_timeout (self);
	}
	return -1;
}

void
pantheon_accounts_service_set_sleep_inactive_battery_timeout (PantheonAccountsService* self,
                                                              gint value)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_sleep_inactive_battery_timeout) {
		_iface_->set_sleep_inactive_battery_timeout (self, value);
	}
}

gint
pantheon_accounts_service_get_sleep_inactive_battery_type (PantheonAccountsService* self)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_sleep_inactive_battery_type) {
		return _iface_->get_sleep_inactive_battery_type (self);
	}
	return -1;
}

void
pantheon_accounts_service_set_sleep_inactive_battery_type (PantheonAccountsService* self,
                                                           gint value)
{
	PantheonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_sleep_inactive_battery_type) {
		_iface_->set_sleep_inactive_battery_type (self, value);
	}
}

static void
pantheon_accounts_service_default_init (PantheonAccountsServiceIface * iface,
                                        gpointer iface_data)
{
}

static GType
pantheon_accounts_service_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PantheonAccountsServiceIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pantheon_accounts_service_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType pantheon_accounts_service_type_id;
	pantheon_accounts_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "PantheonAccountsService", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (pantheon_accounts_service_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (pantheon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) pantheon_accounts_service_proxy_get_type);
	g_type_set_qdata (pantheon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "io.elementary.pantheon.AccountsService");
	g_type_set_qdata (pantheon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_pantheon_accounts_service_dbus_interface_info));
	g_type_set_qdata (pantheon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) pantheon_accounts_service_register_object);
	return pantheon_accounts_service_type_id;
}

GType
pantheon_accounts_service_get_type (void)
{
	static volatile gsize pantheon_accounts_service_type_id__once = 0;
	if (g_once_init_enter (&pantheon_accounts_service_type_id__once)) {
		GType pantheon_accounts_service_type_id;
		pantheon_accounts_service_type_id = pantheon_accounts_service_get_type_once ();
		g_once_init_leave (&pantheon_accounts_service_type_id__once, pantheon_accounts_service_type_id);
	}
	return pantheon_accounts_service_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (PantheonAccountsServiceProxy, pantheon_accounts_service_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (PANTHEON_TYPE_ACCOUNTS_SERVICE, pantheon_accounts_service_proxy_pantheon_accounts_service_interface_init) )
static void
pantheon_accounts_service_proxy_class_init (PantheonAccountsServiceProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = pantheon_accounts_service_proxy_g_signal;
}

static void
pantheon_accounts_service_proxy_g_signal (GDBusProxy* proxy,
                                          const gchar* sender_name,
                                          const gchar* signal_name,
                                          GVariant* parameters)
{
}

static void
pantheon_accounts_service_proxy_init (PantheonAccountsServiceProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_pantheon_accounts_service_dbus_interface_info));
}

static gchar*
pantheon_accounts_service_dbus_proxy_get_time_format (PantheonAccountsService* self)
{
	GVariant *_inner_reply;
	gchar* _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "TimeFormat");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("TimeFormat"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			return NULL;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_dup_string (_inner_reply, NULL);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
pantheon_accounts_service_dbus_proxy_set_time_format (PantheonAccountsService* self,
                                                      const gchar* value)
{
	GVariant *_arguments;
	GVariant *_reply;
	GVariantBuilder _arguments_builder;
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("TimeFormat"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static gint
pantheon_accounts_service_dbus_proxy_get_prefers_accent_color (PantheonAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "PrefersAccentColor");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("PrefersAccentColor"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			gint _tmp0_ = 0;
			return _tmp0_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_int32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
pantheon_accounts_service_dbus_proxy_set_prefers_accent_color (PantheonAccountsService* self,
                                                               gint value)
{
	GVariant *_arguments;
	GVariant *_reply;
	GVariantBuilder _arguments_builder;
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("PrefersAccentColor"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static gint
pantheon_accounts_service_dbus_proxy_get_sleep_inactive_ac_timeout (PantheonAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "SleepInactiveACTimeout");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveACTimeout"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			gint _tmp1_ = 0;
			return _tmp1_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_int32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
pantheon_accounts_service_dbus_proxy_set_sleep_inactive_ac_timeout (PantheonAccountsService* self,
                                                                    gint value)
{
	GVariant *_arguments;
	GVariant *_reply;
	GVariantBuilder _arguments_builder;
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveACTimeout"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static gint
pantheon_accounts_service_dbus_proxy_get_sleep_inactive_ac_type (PantheonAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "SleepInactiveACType");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveACType"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			gint _tmp2_ = 0;
			return _tmp2_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_int32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
pantheon_accounts_service_dbus_proxy_set_sleep_inactive_ac_type (PantheonAccountsService* self,
                                                                 gint value)
{
	GVariant *_arguments;
	GVariant *_reply;
	GVariantBuilder _arguments_builder;
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveACType"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static gint
pantheon_accounts_service_dbus_proxy_get_sleep_inactive_battery_timeout (PantheonAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "SleepInactiveBatteryTimeout");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveBatteryTimeout"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			gint _tmp3_ = 0;
			return _tmp3_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_int32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
pantheon_accounts_service_dbus_proxy_set_sleep_inactive_battery_timeout (PantheonAccountsService* self,
                                                                         gint value)
{
	GVariant *_arguments;
	GVariant *_reply;
	GVariantBuilder _arguments_builder;
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveBatteryTimeout"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static gint
pantheon_accounts_service_dbus_proxy_get_sleep_inactive_battery_type (PantheonAccountsService* self)
{
	GVariant *_inner_reply;
	gint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "SleepInactiveBatteryType");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveBatteryType"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			gint _tmp4_ = 0;
			return _tmp4_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_int32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
pantheon_accounts_service_dbus_proxy_set_sleep_inactive_battery_type (PantheonAccountsService* self,
                                                                      gint value)
{
	GVariant *_arguments;
	GVariant *_reply;
	GVariantBuilder _arguments_builder;
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.pantheon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("SleepInactiveBatteryType"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_int32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static void
pantheon_accounts_service_proxy_pantheon_accounts_service_interface_init (PantheonAccountsServiceIface* iface)
{
	iface->get_time_format = pantheon_accounts_service_dbus_proxy_get_time_format;
	iface->set_time_format = pantheon_accounts_service_dbus_proxy_set_time_format;
	iface->get_prefers_accent_color = pantheon_accounts_service_dbus_proxy_get_prefers_accent_color;
	iface->set_prefers_accent_color = pantheon_accounts_service_dbus_proxy_set_prefers_accent_color;
	iface->get_sleep_inactive_ac_timeout = pantheon_accounts_service_dbus_proxy_get_sleep_inactive_ac_timeout;
	iface->set_sleep_inactive_ac_timeout = pantheon_accounts_service_dbus_proxy_set_sleep_inactive_ac_timeout;
	iface->get_sleep_inactive_ac_type = pantheon_accounts_service_dbus_proxy_get_sleep_inactive_ac_type;
	iface->set_sleep_inactive_ac_type = pantheon_accounts_service_dbus_proxy_set_sleep_inactive_ac_type;
	iface->get_sleep_inactive_battery_timeout = pantheon_accounts_service_dbus_proxy_get_sleep_inactive_battery_timeout;
	iface->set_sleep_inactive_battery_timeout = pantheon_accounts_service_dbus_proxy_set_sleep_inactive_battery_timeout;
	iface->get_sleep_inactive_battery_type = pantheon_accounts_service_dbus_proxy_get_sleep_inactive_battery_type;
	iface->set_sleep_inactive_battery_type = pantheon_accounts_service_dbus_proxy_set_sleep_inactive_battery_type;
}

static void
pantheon_accounts_service_dbus_interface_method_call (GDBusConnection* connection,
                                                      const gchar* sender,
                                                      const gchar* object_path,
                                                      const gchar* interface_name,
                                                      const gchar* method_name,
                                                      GVariant* parameters,
                                                      GDBusMethodInvocation* invocation,
                                                      gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	g_object_unref (invocation);
}

static GVariant*
_dbus_pantheon_accounts_service_get_time_format (PantheonAccountsService* self)
{
	gchar* result;
	GVariant* _reply;
	result = pantheon_accounts_service_get_time_format (self);
	_reply = g_variant_new_string (result);
	_g_free0 (result);
	return _reply;
}

static GVariant*
_dbus_pantheon_accounts_service_get_prefers_accent_color (PantheonAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = pantheon_accounts_service_get_prefers_accent_color (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
_dbus_pantheon_accounts_service_get_sleep_inactive_ac_timeout (PantheonAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = pantheon_accounts_service_get_sleep_inactive_ac_timeout (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
_dbus_pantheon_accounts_service_get_sleep_inactive_ac_type (PantheonAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = pantheon_accounts_service_get_sleep_inactive_ac_type (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
_dbus_pantheon_accounts_service_get_sleep_inactive_battery_timeout (PantheonAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = pantheon_accounts_service_get_sleep_inactive_battery_timeout (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
_dbus_pantheon_accounts_service_get_sleep_inactive_battery_type (PantheonAccountsService* self)
{
	gint result;
	GVariant* _reply;
	result = pantheon_accounts_service_get_sleep_inactive_battery_type (self);
	_reply = g_variant_new_int32 (result);
	return _reply;
}

static GVariant*
pantheon_accounts_service_dbus_interface_get_property (GDBusConnection* connection,
                                                       const gchar* sender,
                                                       const gchar* object_path,
                                                       const gchar* interface_name,
                                                       const gchar* property_name,
                                                       GError** error,
                                                       gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (property_name, "TimeFormat") == 0) {
		return _dbus_pantheon_accounts_service_get_time_format (object);
	} else if (strcmp (property_name, "PrefersAccentColor") == 0) {
		return _dbus_pantheon_accounts_service_get_prefers_accent_color (object);
	} else if (strcmp (property_name, "SleepInactiveACTimeout") == 0) {
		return _dbus_pantheon_accounts_service_get_sleep_inactive_ac_timeout (object);
	} else if (strcmp (property_name, "SleepInactiveACType") == 0) {
		return _dbus_pantheon_accounts_service_get_sleep_inactive_ac_type (object);
	} else if (strcmp (property_name, "SleepInactiveBatteryTimeout") == 0) {
		return _dbus_pantheon_accounts_service_get_sleep_inactive_battery_timeout (object);
	} else if (strcmp (property_name, "SleepInactiveBatteryType") == 0) {
		return _dbus_pantheon_accounts_service_get_sleep_inactive_battery_type (object);
	}
	return NULL;
}

static void
_dbus_pantheon_accounts_service_set_time_format (PantheonAccountsService* self,
                                                 GVariant* _value)
{
	gchar* value = NULL;
	value = g_variant_dup_string (_value, NULL);
	pantheon_accounts_service_set_time_format (self, value);
	_g_free0 (value);
}

static void
_dbus_pantheon_accounts_service_set_prefers_accent_color (PantheonAccountsService* self,
                                                          GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	pantheon_accounts_service_set_prefers_accent_color (self, value);
}

static void
_dbus_pantheon_accounts_service_set_sleep_inactive_ac_timeout (PantheonAccountsService* self,
                                                               GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	pantheon_accounts_service_set_sleep_inactive_ac_timeout (self, value);
}

static void
_dbus_pantheon_accounts_service_set_sleep_inactive_ac_type (PantheonAccountsService* self,
                                                            GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	pantheon_accounts_service_set_sleep_inactive_ac_type (self, value);
}

static void
_dbus_pantheon_accounts_service_set_sleep_inactive_battery_timeout (PantheonAccountsService* self,
                                                                    GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	pantheon_accounts_service_set_sleep_inactive_battery_timeout (self, value);
}

static void
_dbus_pantheon_accounts_service_set_sleep_inactive_battery_type (PantheonAccountsService* self,
                                                                 GVariant* _value)
{
	gint value = 0;
	value = g_variant_get_int32 (_value);
	pantheon_accounts_service_set_sleep_inactive_battery_type (self, value);
}

static gboolean
pantheon_accounts_service_dbus_interface_set_property (GDBusConnection* connection,
                                                       const gchar* sender,
                                                       const gchar* object_path,
                                                       const gchar* interface_name,
                                                       const gchar* property_name,
                                                       GVariant* value,
                                                       GError** error,
                                                       gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (property_name, "TimeFormat") == 0) {
		_dbus_pantheon_accounts_service_set_time_format (object, value);
		return TRUE;
	} else if (strcmp (property_name, "PrefersAccentColor") == 0) {
		_dbus_pantheon_accounts_service_set_prefers_accent_color (object, value);
		return TRUE;
	} else if (strcmp (property_name, "SleepInactiveACTimeout") == 0) {
		_dbus_pantheon_accounts_service_set_sleep_inactive_ac_timeout (object, value);
		return TRUE;
	} else if (strcmp (property_name, "SleepInactiveACType") == 0) {
		_dbus_pantheon_accounts_service_set_sleep_inactive_ac_type (object, value);
		return TRUE;
	} else if (strcmp (property_name, "SleepInactiveBatteryTimeout") == 0) {
		_dbus_pantheon_accounts_service_set_sleep_inactive_battery_timeout (object, value);
		return TRUE;
	} else if (strcmp (property_name, "SleepInactiveBatteryType") == 0) {
		_dbus_pantheon_accounts_service_set_sleep_inactive_battery_type (object, value);
		return TRUE;
	}
	return FALSE;
}

guint
pantheon_accounts_service_register_object (gpointer object,
                                           GDBusConnection* connection,
                                           const gchar* path,
                                           GError** error)
{
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_pantheon_accounts_service_dbus_interface_info), &_pantheon_accounts_service_dbus_interface_vtable, data, _pantheon_accounts_service_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}

static void
_pantheon_accounts_service_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}

PantheonSettingsDaemonAccountsServiceKeyboardLayout*
pantheon_settings_daemon_accounts_service_get_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                gint* result_length1)
{
	PantheonSettingsDaemonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = PANTHEON_SETTINGS_DAEMON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_keyboard_layouts) {
		return _iface_->get_keyboard_layouts (self, result_length1);
	}
	return NULL;
}

void
pantheon_settings_daemon_accounts_service_set_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                PantheonSettingsDaemonAccountsServiceKeyboardLayout* value,
                                                                gint value_length1)
{
	PantheonSettingsDaemonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_SETTINGS_DAEMON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_keyboard_layouts) {
		_iface_->set_keyboard_layouts (self, value, value_length1);
	}
}

guint
pantheon_settings_daemon_accounts_service_get_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self)
{
	PantheonSettingsDaemonAccountsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0U);
	_iface_ = PANTHEON_SETTINGS_DAEMON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_active_keyboard_layout) {
		return _iface_->get_active_keyboard_layout (self);
	}
	return 0U;
}

void
pantheon_settings_daemon_accounts_service_set_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self,
                                                                      guint value)
{
	PantheonSettingsDaemonAccountsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = PANTHEON_SETTINGS_DAEMON_ACCOUNTS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_active_keyboard_layout) {
		_iface_->set_active_keyboard_layout (self, value);
	}
}

void
pantheon_settings_daemon_accounts_service_keyboard_layout_copy (const PantheonSettingsDaemonAccountsServiceKeyboardLayout* self,
                                                                PantheonSettingsDaemonAccountsServiceKeyboardLayout* dest)
{
	const gchar* _tmp0_;
	gchar* _tmp1_;
	const gchar* _tmp2_;
	gchar* _tmp3_;
	_tmp0_ = (*self).backend;
	_tmp1_ = g_strdup (_tmp0_);
	_g_free0 ((*dest).backend);
	(*dest).backend = _tmp1_;
	_tmp2_ = (*self).name;
	_tmp3_ = g_strdup (_tmp2_);
	_g_free0 ((*dest).name);
	(*dest).name = _tmp3_;
}

void
pantheon_settings_daemon_accounts_service_keyboard_layout_destroy (PantheonSettingsDaemonAccountsServiceKeyboardLayout* self)
{
	_g_free0 ((*self).backend);
	_g_free0 ((*self).name);
}

PantheonSettingsDaemonAccountsServiceKeyboardLayout*
pantheon_settings_daemon_accounts_service_keyboard_layout_dup (const PantheonSettingsDaemonAccountsServiceKeyboardLayout* self)
{
	PantheonSettingsDaemonAccountsServiceKeyboardLayout* dup;
	dup = g_new0 (PantheonSettingsDaemonAccountsServiceKeyboardLayout, 1);
	pantheon_settings_daemon_accounts_service_keyboard_layout_copy (self, dup);
	return dup;
}

void
pantheon_settings_daemon_accounts_service_keyboard_layout_free (PantheonSettingsDaemonAccountsServiceKeyboardLayout* self)
{
	pantheon_settings_daemon_accounts_service_keyboard_layout_destroy (self);
	g_free (self);
}

static GType
pantheon_settings_daemon_accounts_service_keyboard_layout_get_type_once (void)
{
	GType pantheon_settings_daemon_accounts_service_keyboard_layout_type_id;
	pantheon_settings_daemon_accounts_service_keyboard_layout_type_id = g_boxed_type_register_static ("PantheonSettingsDaemonAccountsServiceKeyboardLayout", (GBoxedCopyFunc) pantheon_settings_daemon_accounts_service_keyboard_layout_dup, (GBoxedFreeFunc) pantheon_settings_daemon_accounts_service_keyboard_layout_free);
	return pantheon_settings_daemon_accounts_service_keyboard_layout_type_id;
}

GType
pantheon_settings_daemon_accounts_service_keyboard_layout_get_type (void)
{
	static volatile gsize pantheon_settings_daemon_accounts_service_keyboard_layout_type_id__once = 0;
	if (g_once_init_enter (&pantheon_settings_daemon_accounts_service_keyboard_layout_type_id__once)) {
		GType pantheon_settings_daemon_accounts_service_keyboard_layout_type_id;
		pantheon_settings_daemon_accounts_service_keyboard_layout_type_id = pantheon_settings_daemon_accounts_service_keyboard_layout_get_type_once ();
		g_once_init_leave (&pantheon_settings_daemon_accounts_service_keyboard_layout_type_id__once, pantheon_settings_daemon_accounts_service_keyboard_layout_type_id);
	}
	return pantheon_settings_daemon_accounts_service_keyboard_layout_type_id__once;
}

static void
pantheon_settings_daemon_accounts_service_default_init (PantheonSettingsDaemonAccountsServiceIface * iface,
                                                        gpointer iface_data)
{
}

static GType
pantheon_settings_daemon_accounts_service_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (PantheonSettingsDaemonAccountsServiceIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) pantheon_settings_daemon_accounts_service_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType pantheon_settings_daemon_accounts_service_type_id;
	pantheon_settings_daemon_accounts_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "PantheonSettingsDaemonAccountsService", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (pantheon_settings_daemon_accounts_service_type_id, G_TYPE_OBJECT);
	g_type_set_qdata (pantheon_settings_daemon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-proxy-type"), (void*) pantheon_settings_daemon_accounts_service_proxy_get_type);
	g_type_set_qdata (pantheon_settings_daemon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-interface-name"), "io.elementary.SettingsDaemon.AccountsService");
	g_type_set_qdata (pantheon_settings_daemon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-interface-info"), (void*) (&_pantheon_settings_daemon_accounts_service_dbus_interface_info));
	g_type_set_qdata (pantheon_settings_daemon_accounts_service_type_id, g_quark_from_static_string ("vala-dbus-register-object"), (void*) pantheon_settings_daemon_accounts_service_register_object);
	return pantheon_settings_daemon_accounts_service_type_id;
}

GType
pantheon_settings_daemon_accounts_service_get_type (void)
{
	static volatile gsize pantheon_settings_daemon_accounts_service_type_id__once = 0;
	if (g_once_init_enter (&pantheon_settings_daemon_accounts_service_type_id__once)) {
		GType pantheon_settings_daemon_accounts_service_type_id;
		pantheon_settings_daemon_accounts_service_type_id = pantheon_settings_daemon_accounts_service_get_type_once ();
		g_once_init_leave (&pantheon_settings_daemon_accounts_service_type_id__once, pantheon_settings_daemon_accounts_service_type_id);
	}
	return pantheon_settings_daemon_accounts_service_type_id__once;
}

G_DEFINE_TYPE_EXTENDED (PantheonSettingsDaemonAccountsServiceProxy, pantheon_settings_daemon_accounts_service_proxy, G_TYPE_DBUS_PROXY, 0, G_IMPLEMENT_INTERFACE (PANTHEON_SETTINGS_DAEMON_TYPE_ACCOUNTS_SERVICE, pantheon_settings_daemon_accounts_service_proxy_pantheon_settings_daemon_accounts_service_interface_init) )
static void
pantheon_settings_daemon_accounts_service_proxy_class_init (PantheonSettingsDaemonAccountsServiceProxyClass* klass)
{
	G_DBUS_PROXY_CLASS (klass)->g_signal = pantheon_settings_daemon_accounts_service_proxy_g_signal;
}

static void
pantheon_settings_daemon_accounts_service_proxy_g_signal (GDBusProxy* proxy,
                                                          const gchar* sender_name,
                                                          const gchar* signal_name,
                                                          GVariant* parameters)
{
}

static void
pantheon_settings_daemon_accounts_service_proxy_init (PantheonSettingsDaemonAccountsServiceProxy* self)
{
	g_dbus_proxy_set_interface_info (G_DBUS_PROXY (self), (GDBusInterfaceInfo *) (&_pantheon_settings_daemon_accounts_service_dbus_interface_info));
}

static PantheonSettingsDaemonAccountsServiceKeyboardLayout*
pantheon_settings_daemon_accounts_service_dbus_proxy_get_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                           gint* result_length1)
{
	GVariant *_inner_reply;
	PantheonSettingsDaemonAccountsServiceKeyboardLayout* _result;
	gint _result_length1;
	PantheonSettingsDaemonAccountsServiceKeyboardLayout* _tmp5_;
	gint _tmp5__length;
	gint _tmp5__size;
	gint _tmp5__length1;
	GVariantIter _tmp6_;
	GVariant* _tmp7_;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "KeyboardLayouts");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.SettingsDaemon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("KeyboardLayouts"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			return NULL;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result_length1 = 0;
	_tmp5_ = g_new (PantheonSettingsDaemonAccountsServiceKeyboardLayout, 5);
	_tmp5__length = 0;
	_tmp5__size = 4;
	_tmp5__length1 = 0;
	g_variant_iter_init (&_tmp6_, _inner_reply);
	for (; (_tmp7_ = g_variant_iter_next_value (&_tmp6_)) != NULL; _tmp5__length1++) {
		PantheonSettingsDaemonAccountsServiceKeyboardLayout _tmp8_;
		GVariantIter _tmp9_;
		GVariant* _tmp10_;
		GVariant* _tmp11_;
		if (_tmp5__size == _tmp5__length) {
			_tmp5__size = 2 * _tmp5__size;
			_tmp5_ = g_renew (PantheonSettingsDaemonAccountsServiceKeyboardLayout, _tmp5_, _tmp5__size + 1);
		}
		g_variant_iter_init (&_tmp9_, _tmp7_);
		_tmp10_ = g_variant_iter_next_value (&_tmp9_);
		_tmp8_.backend = g_variant_dup_string (_tmp10_, NULL);
		g_variant_unref (_tmp10_);
		_tmp11_ = g_variant_iter_next_value (&_tmp9_);
		_tmp8_.name = g_variant_dup_string (_tmp11_, NULL);
		g_variant_unref (_tmp11_);
		_tmp5_[_tmp5__length++] = _tmp8_;
		g_variant_unref (_tmp7_);
	}
	_result_length1 = _tmp5__length1;
	_result = _tmp5_;
	*result_length1 = _result_length1;
	g_variant_unref (_inner_reply);
	return _result;
}

static void
pantheon_settings_daemon_accounts_service_dbus_proxy_set_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                           PantheonSettingsDaemonAccountsServiceKeyboardLayout* value,
                                                                           gint value_length1)
{
	GVariant *_arguments;
	GVariant *_reply;
	GVariantBuilder _arguments_builder;
	PantheonSettingsDaemonAccountsServiceKeyboardLayout* _tmp12_;
	GVariantBuilder _tmp13_;
	gint _tmp14_;
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.SettingsDaemon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("KeyboardLayouts"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	_tmp12_ = value;
	g_variant_builder_init (&_tmp13_, G_VARIANT_TYPE ("a(ss)"));
	for (_tmp14_ = 0; _tmp14_ < value_length1; _tmp14_++) {
		GVariantBuilder _tmp15_;
		g_variant_builder_init (&_tmp15_, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_tmp15_, g_variant_new_string ((*_tmp12_).backend));
		g_variant_builder_add_value (&_tmp15_, g_variant_new_string ((*_tmp12_).name));
		g_variant_builder_add_value (&_tmp13_, g_variant_builder_end (&_tmp15_));
		_tmp12_++;
	}
	g_variant_builder_add_value (&_arguments_builder, g_variant_builder_end (&_tmp13_));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static guint
pantheon_settings_daemon_accounts_service_dbus_proxy_get_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self)
{
	GVariant *_inner_reply;
	guint _result;
	_inner_reply = g_dbus_proxy_get_cached_property ((GDBusProxy *) self, "ActiveKeyboardLayout");
	if (!_inner_reply) {
		GVariant *_arguments;
		GVariant *_reply;
		GVariantBuilder _arguments_builder;
		g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.SettingsDaemon.AccountsService"));
		g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("ActiveKeyboardLayout"));
		_arguments = g_variant_builder_end (&_arguments_builder);
		_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Get", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
		if (!_reply) {
			guint _tmp16_ = 0U;
			return _tmp16_;
		}
		g_variant_get (_reply, "(v)", &_inner_reply);
		g_variant_unref (_reply);
	}
	_result = g_variant_get_uint32 (_inner_reply);
	g_variant_unref (_inner_reply);
	return _result;
}

static void
pantheon_settings_daemon_accounts_service_dbus_proxy_set_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self,
                                                                                 guint value)
{
	GVariant *_arguments;
	GVariant *_reply;
	GVariantBuilder _arguments_builder;
	g_variant_builder_init (&_arguments_builder, G_VARIANT_TYPE_TUPLE);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("io.elementary.SettingsDaemon.AccountsService"));
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_string ("ActiveKeyboardLayout"));
	g_variant_builder_open (&_arguments_builder, G_VARIANT_TYPE_VARIANT);
	g_variant_builder_add_value (&_arguments_builder, g_variant_new_uint32 (value));
	g_variant_builder_close (&_arguments_builder);
	_arguments = g_variant_builder_end (&_arguments_builder);
	_reply = g_dbus_proxy_call_sync ((GDBusProxy *) self, "org.freedesktop.DBus.Properties.Set", _arguments, G_DBUS_CALL_FLAGS_NONE, -1, NULL, NULL);
	if (!_reply) {
		return;
	}
	g_variant_unref (_reply);
}

static void
pantheon_settings_daemon_accounts_service_proxy_pantheon_settings_daemon_accounts_service_interface_init (PantheonSettingsDaemonAccountsServiceIface* iface)
{
	iface->get_keyboard_layouts = pantheon_settings_daemon_accounts_service_dbus_proxy_get_keyboard_layouts;
	iface->set_keyboard_layouts = pantheon_settings_daemon_accounts_service_dbus_proxy_set_keyboard_layouts;
	iface->get_active_keyboard_layout = pantheon_settings_daemon_accounts_service_dbus_proxy_get_active_keyboard_layout;
	iface->set_active_keyboard_layout = pantheon_settings_daemon_accounts_service_dbus_proxy_set_active_keyboard_layout;
}

static void
pantheon_settings_daemon_accounts_service_dbus_interface_method_call (GDBusConnection* connection,
                                                                      const gchar* sender,
                                                                      const gchar* object_path,
                                                                      const gchar* interface_name,
                                                                      const gchar* method_name,
                                                                      GVariant* parameters,
                                                                      GDBusMethodInvocation* invocation,
                                                                      gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	g_object_unref (invocation);
}

static void
_vala_PantheonSettingsDaemonAccountsServiceKeyboardLayout_array_free (PantheonSettingsDaemonAccountsServiceKeyboardLayout * array,
                                                                      gssize array_length)
{
	if (array != NULL) {
		gssize i;
		for (i = 0; i < array_length; i = i + 1) {
			pantheon_settings_daemon_accounts_service_keyboard_layout_destroy (&array[i]);
		}
	}
	g_free (array);
}

static GVariant*
_dbus_pantheon_settings_daemon_accounts_service_get_keyboard_layouts (PantheonSettingsDaemonAccountsService* self)
{
	PantheonSettingsDaemonAccountsServiceKeyboardLayout* result;
	gint result_length1 = 0;
	GVariant* _reply;
	PantheonSettingsDaemonAccountsServiceKeyboardLayout* _tmp17_;
	GVariantBuilder _tmp18_;
	gint _tmp19_;
	result = pantheon_settings_daemon_accounts_service_get_keyboard_layouts (self, &result_length1);
	_tmp17_ = result;
	g_variant_builder_init (&_tmp18_, G_VARIANT_TYPE ("a(ss)"));
	for (_tmp19_ = 0; _tmp19_ < result_length1; _tmp19_++) {
		GVariantBuilder _tmp20_;
		g_variant_builder_init (&_tmp20_, G_VARIANT_TYPE_TUPLE);
		g_variant_builder_add_value (&_tmp20_, g_variant_new_string ((*_tmp17_).backend));
		g_variant_builder_add_value (&_tmp20_, g_variant_new_string ((*_tmp17_).name));
		g_variant_builder_add_value (&_tmp18_, g_variant_builder_end (&_tmp20_));
		_tmp17_++;
	}
	_reply = g_variant_builder_end (&_tmp18_);
	result = (_vala_PantheonSettingsDaemonAccountsServiceKeyboardLayout_array_free (result, result_length1), NULL);
	return _reply;
}

static GVariant*
_dbus_pantheon_settings_daemon_accounts_service_get_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self)
{
	guint result;
	GVariant* _reply;
	result = pantheon_settings_daemon_accounts_service_get_active_keyboard_layout (self);
	_reply = g_variant_new_uint32 (result);
	return _reply;
}

static GVariant*
pantheon_settings_daemon_accounts_service_dbus_interface_get_property (GDBusConnection* connection,
                                                                       const gchar* sender,
                                                                       const gchar* object_path,
                                                                       const gchar* interface_name,
                                                                       const gchar* property_name,
                                                                       GError** error,
                                                                       gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (property_name, "KeyboardLayouts") == 0) {
		return _dbus_pantheon_settings_daemon_accounts_service_get_keyboard_layouts (object);
	} else if (strcmp (property_name, "ActiveKeyboardLayout") == 0) {
		return _dbus_pantheon_settings_daemon_accounts_service_get_active_keyboard_layout (object);
	}
	return NULL;
}

static void
_dbus_pantheon_settings_daemon_accounts_service_set_keyboard_layouts (PantheonSettingsDaemonAccountsService* self,
                                                                      GVariant* _value)
{
	PantheonSettingsDaemonAccountsServiceKeyboardLayout* value = NULL;
	gint value_length1;
	PantheonSettingsDaemonAccountsServiceKeyboardLayout* _tmp21_;
	gint _tmp21__length;
	gint _tmp21__size;
	gint _tmp21__length1;
	GVariantIter _tmp22_;
	GVariant* _tmp23_;
	_tmp21_ = g_new (PantheonSettingsDaemonAccountsServiceKeyboardLayout, 5);
	_tmp21__length = 0;
	_tmp21__size = 4;
	_tmp21__length1 = 0;
	g_variant_iter_init (&_tmp22_, _value);
	for (; (_tmp23_ = g_variant_iter_next_value (&_tmp22_)) != NULL; _tmp21__length1++) {
		PantheonSettingsDaemonAccountsServiceKeyboardLayout _tmp24_;
		GVariantIter _tmp25_;
		GVariant* _tmp26_;
		GVariant* _tmp27_;
		if (_tmp21__size == _tmp21__length) {
			_tmp21__size = 2 * _tmp21__size;
			_tmp21_ = g_renew (PantheonSettingsDaemonAccountsServiceKeyboardLayout, _tmp21_, _tmp21__size + 1);
		}
		g_variant_iter_init (&_tmp25_, _tmp23_);
		_tmp26_ = g_variant_iter_next_value (&_tmp25_);
		_tmp24_.backend = g_variant_dup_string (_tmp26_, NULL);
		g_variant_unref (_tmp26_);
		_tmp27_ = g_variant_iter_next_value (&_tmp25_);
		_tmp24_.name = g_variant_dup_string (_tmp27_, NULL);
		g_variant_unref (_tmp27_);
		_tmp21_[_tmp21__length++] = _tmp24_;
		g_variant_unref (_tmp23_);
	}
	value_length1 = _tmp21__length1;
	value = _tmp21_;
	pantheon_settings_daemon_accounts_service_set_keyboard_layouts (self, value, value_length1);
	value = (_vala_PantheonSettingsDaemonAccountsServiceKeyboardLayout_array_free (value, value_length1), NULL);
}

static void
_dbus_pantheon_settings_daemon_accounts_service_set_active_keyboard_layout (PantheonSettingsDaemonAccountsService* self,
                                                                            GVariant* _value)
{
	guint value = 0U;
	value = g_variant_get_uint32 (_value);
	pantheon_settings_daemon_accounts_service_set_active_keyboard_layout (self, value);
}

static gboolean
pantheon_settings_daemon_accounts_service_dbus_interface_set_property (GDBusConnection* connection,
                                                                       const gchar* sender,
                                                                       const gchar* object_path,
                                                                       const gchar* interface_name,
                                                                       const gchar* property_name,
                                                                       GVariant* value,
                                                                       GError** error,
                                                                       gpointer user_data)
{
	gpointer* data;
	gpointer object;
	data = user_data;
	object = data[0];
	if (strcmp (property_name, "KeyboardLayouts") == 0) {
		_dbus_pantheon_settings_daemon_accounts_service_set_keyboard_layouts (object, value);
		return TRUE;
	} else if (strcmp (property_name, "ActiveKeyboardLayout") == 0) {
		_dbus_pantheon_settings_daemon_accounts_service_set_active_keyboard_layout (object, value);
		return TRUE;
	}
	return FALSE;
}

guint
pantheon_settings_daemon_accounts_service_register_object (gpointer object,
                                                           GDBusConnection* connection,
                                                           const gchar* path,
                                                           GError** error)
{
	guint result;
	gpointer *data;
	data = g_new (gpointer, 3);
	data[0] = g_object_ref (object);
	data[1] = g_object_ref (connection);
	data[2] = g_strdup (path);
	result = g_dbus_connection_register_object (connection, path, (GDBusInterfaceInfo *) (&_pantheon_settings_daemon_accounts_service_dbus_interface_info), &_pantheon_settings_daemon_accounts_service_dbus_interface_vtable, data, _pantheon_settings_daemon_accounts_service_unregister_object, error);
	if (!result) {
		return 0;
	}
	return result;
}

static void
_pantheon_settings_daemon_accounts_service_unregister_object (gpointer user_data)
{
	gpointer* data;
	data = user_data;
	g_object_unref (data[0]);
	g_object_unref (data[1]);
	g_free (data[2]);
	g_free (data);
}

