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

/*
    ISettingsService.vala
    Copyright (C) 2010 Maia Kozheva <sikon@ubuntu.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

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

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#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 STEADYFLOW_CORE_TYPE_ISETTINGS_SERVICE (steadyflow_core_isettings_service_get_type ())
#define STEADYFLOW_CORE_ISETTINGS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STEADYFLOW_CORE_TYPE_ISETTINGS_SERVICE, SteadyflowCoreISettingsService))
#define STEADYFLOW_CORE_IS_ISETTINGS_SERVICE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STEADYFLOW_CORE_TYPE_ISETTINGS_SERVICE))
#define STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), STEADYFLOW_CORE_TYPE_ISETTINGS_SERVICE, SteadyflowCoreISettingsServiceIface))

typedef struct _SteadyflowCoreISettingsService SteadyflowCoreISettingsService;
typedef struct _SteadyflowCoreISettingsServiceIface SteadyflowCoreISettingsServiceIface;
enum  {
	STEADYFLOW_CORE_ISETTINGS_SERVICE_CHANGED_SIGNAL,
	STEADYFLOW_CORE_ISETTINGS_SERVICE_NUM_SIGNALS
};
static guint steadyflow_core_isettings_service_signals[STEADYFLOW_CORE_ISETTINGS_SERVICE_NUM_SIGNALS] = {0};

struct _SteadyflowCoreISettingsServiceIface {
	GTypeInterface parent_iface;
	gboolean (*get_boolean) (SteadyflowCoreISettingsService* self, const gchar* key);
	gint (*get_int) (SteadyflowCoreISettingsService* self, const gchar* key);
	gint (*get_enum) (SteadyflowCoreISettingsService* self, const gchar* key);
	gchar* (*get_string) (SteadyflowCoreISettingsService* self, const gchar* key);
	void (*set_boolean) (SteadyflowCoreISettingsService* self, const gchar* key, gboolean value);
	void (*set_int) (SteadyflowCoreISettingsService* self, const gchar* key, gint value);
	void (*set_enum) (SteadyflowCoreISettingsService* self, const gchar* key, gint value);
	void (*set_string) (SteadyflowCoreISettingsService* self, const gchar* key, const gchar* value);
	void (*save) (SteadyflowCoreISettingsService* self);
};

VALA_EXTERN GType steadyflow_core_isettings_service_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SteadyflowCoreISettingsService, g_object_unref)
VALA_EXTERN gboolean steadyflow_core_isettings_service_get_boolean (SteadyflowCoreISettingsService* self,
                                                        const gchar* key);
VALA_EXTERN gint steadyflow_core_isettings_service_get_int (SteadyflowCoreISettingsService* self,
                                                const gchar* key);
VALA_EXTERN gint steadyflow_core_isettings_service_get_enum (SteadyflowCoreISettingsService* self,
                                                 const gchar* key);
VALA_EXTERN gchar* steadyflow_core_isettings_service_get_string (SteadyflowCoreISettingsService* self,
                                                     const gchar* key);
VALA_EXTERN void steadyflow_core_isettings_service_set_boolean (SteadyflowCoreISettingsService* self,
                                                    const gchar* key,
                                                    gboolean value);
VALA_EXTERN void steadyflow_core_isettings_service_set_int (SteadyflowCoreISettingsService* self,
                                                const gchar* key,
                                                gint value);
VALA_EXTERN void steadyflow_core_isettings_service_set_enum (SteadyflowCoreISettingsService* self,
                                                 const gchar* key,
                                                 gint value);
VALA_EXTERN void steadyflow_core_isettings_service_set_string (SteadyflowCoreISettingsService* self,
                                                   const gchar* key,
                                                   const gchar* value);
VALA_EXTERN void steadyflow_core_isettings_service_save (SteadyflowCoreISettingsService* self);
static GType steadyflow_core_isettings_service_get_type_once (void);

gboolean
steadyflow_core_isettings_service_get_boolean (SteadyflowCoreISettingsService* self,
                                               const gchar* key)
{
	SteadyflowCoreISettingsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, FALSE);
	_iface_ = STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_boolean) {
		return _iface_->get_boolean (self, key);
	}
	return FALSE;
}

gint
steadyflow_core_isettings_service_get_int (SteadyflowCoreISettingsService* self,
                                           const gchar* key)
{
	SteadyflowCoreISettingsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_int) {
		return _iface_->get_int (self, key);
	}
	return -1;
}

gint
steadyflow_core_isettings_service_get_enum (SteadyflowCoreISettingsService* self,
                                            const gchar* key)
{
	SteadyflowCoreISettingsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_enum) {
		return _iface_->get_enum (self, key);
	}
	return -1;
}

gchar*
steadyflow_core_isettings_service_get_string (SteadyflowCoreISettingsService* self,
                                              const gchar* key)
{
	SteadyflowCoreISettingsServiceIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE (self);
	if (_iface_->get_string) {
		return _iface_->get_string (self, key);
	}
	return NULL;
}

void
steadyflow_core_isettings_service_set_boolean (SteadyflowCoreISettingsService* self,
                                               const gchar* key,
                                               gboolean value)
{
	SteadyflowCoreISettingsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_boolean) {
		_iface_->set_boolean (self, key, value);
	}
}

void
steadyflow_core_isettings_service_set_int (SteadyflowCoreISettingsService* self,
                                           const gchar* key,
                                           gint value)
{
	SteadyflowCoreISettingsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_int) {
		_iface_->set_int (self, key, value);
	}
}

void
steadyflow_core_isettings_service_set_enum (SteadyflowCoreISettingsService* self,
                                            const gchar* key,
                                            gint value)
{
	SteadyflowCoreISettingsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_enum) {
		_iface_->set_enum (self, key, value);
	}
}

void
steadyflow_core_isettings_service_set_string (SteadyflowCoreISettingsService* self,
                                              const gchar* key,
                                              const gchar* value)
{
	SteadyflowCoreISettingsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE (self);
	if (_iface_->set_string) {
		_iface_->set_string (self, key, value);
	}
}

void
steadyflow_core_isettings_service_save (SteadyflowCoreISettingsService* self)
{
	SteadyflowCoreISettingsServiceIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_CORE_ISETTINGS_SERVICE_GET_INTERFACE (self);
	if (_iface_->save) {
		_iface_->save (self);
	}
}

static void
steadyflow_core_isettings_service_default_init (SteadyflowCoreISettingsServiceIface * iface,
                                                gpointer iface_data)
{
	steadyflow_core_isettings_service_signals[STEADYFLOW_CORE_ISETTINGS_SERVICE_CHANGED_SIGNAL] = g_signal_new ("changed", STEADYFLOW_CORE_TYPE_ISETTINGS_SERVICE, G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, 0, NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
}

static GType
steadyflow_core_isettings_service_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SteadyflowCoreISettingsServiceIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) steadyflow_core_isettings_service_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType steadyflow_core_isettings_service_type_id;
	steadyflow_core_isettings_service_type_id = g_type_register_static (G_TYPE_INTERFACE, "SteadyflowCoreISettingsService", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (steadyflow_core_isettings_service_type_id, G_TYPE_OBJECT);
	return steadyflow_core_isettings_service_type_id;
}

GType
steadyflow_core_isettings_service_get_type (void)
{
	static volatile gsize steadyflow_core_isettings_service_type_id__once = 0;
	if (g_once_init_enter (&steadyflow_core_isettings_service_type_id__once)) {
		GType steadyflow_core_isettings_service_type_id;
		steadyflow_core_isettings_service_type_id = steadyflow_core_isettings_service_get_type_once ();
		g_once_init_leave (&steadyflow_core_isettings_service_type_id__once, steadyflow_core_isettings_service_type_id);
	}
	return steadyflow_core_isettings_service_type_id__once;
}

