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

/* -*- Mode: Vala; indent-tabs-mode: nil; tab-width: 2 -*- */
/*
    This file is part of Déjà Dup.
    For copyright information, see AUTHORS.

    Déjà Dup 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.

    Déjà Dup 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 Déjà Dup.  If not, see <http://www.gnu.org/licenses/>.
*/

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


#define DEJA_DUP_TYPE_CHECKER (deja_dup_checker_get_type ())
#define DEJA_DUP_CHECKER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CHECKER, DejaDupChecker))
#define DEJA_DUP_CHECKER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CHECKER, DejaDupCheckerClass))
#define DEJA_DUP_IS_CHECKER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CHECKER))
#define DEJA_DUP_IS_CHECKER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CHECKER))
#define DEJA_DUP_CHECKER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CHECKER, DejaDupCheckerClass))

typedef struct _DejaDupChecker DejaDupChecker;
typedef struct _DejaDupCheckerClass DejaDupCheckerClass;
typedef struct _DejaDupCheckerPrivate DejaDupCheckerPrivate;

struct _DejaDupChecker {
	GObject parent_instance;
	DejaDupCheckerPrivate * priv;
};

struct _DejaDupCheckerClass {
	GObjectClass parent_class;
};

struct _DejaDupCheckerPrivate {
	gboolean _available;
	gboolean _complete;
};


static gpointer deja_dup_checker_parent_class = NULL;

GType deja_dup_checker_get_type (void) G_GNUC_CONST;
#define DEJA_DUP_CHECKER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DEJA_DUP_TYPE_CHECKER, DejaDupCheckerPrivate))
enum  {
	DEJA_DUP_CHECKER_DUMMY_PROPERTY,
	DEJA_DUP_CHECKER_AVAILABLE,
	DEJA_DUP_CHECKER_COMPLETE
};
DejaDupChecker* deja_dup_checker_new (void);
DejaDupChecker* deja_dup_checker_construct (GType object_type);
DejaDupChecker* deja_dup_checker_new_with_available (gboolean available);
DejaDupChecker* deja_dup_checker_construct_with_available (GType object_type, gboolean available);
gboolean deja_dup_checker_get_available (DejaDupChecker* self);
void deja_dup_checker_set_available (DejaDupChecker* self, gboolean value);
gboolean deja_dup_checker_get_complete (DejaDupChecker* self);
void deja_dup_checker_set_complete (DejaDupChecker* self, gboolean value);
static void deja_dup_checker_finalize (GObject* obj);
static void _vala_deja_dup_checker_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_deja_dup_checker_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


DejaDupChecker* deja_dup_checker_construct (GType object_type) {
	DejaDupChecker * self = NULL;
	self = (DejaDupChecker*) g_object_new (object_type, NULL);
	return self;
}


DejaDupChecker* deja_dup_checker_new (void) {
	return deja_dup_checker_construct (DEJA_DUP_TYPE_CHECKER);
}


DejaDupChecker* deja_dup_checker_construct_with_available (GType object_type, gboolean available) {
	DejaDupChecker * self = NULL;
	gboolean _tmp0_ = FALSE;
	_tmp0_ = available;
	self = (DejaDupChecker*) g_object_new (object_type, "available", _tmp0_, "complete", TRUE, NULL);
	return self;
}


DejaDupChecker* deja_dup_checker_new_with_available (gboolean available) {
	return deja_dup_checker_construct_with_available (DEJA_DUP_TYPE_CHECKER, available);
}


gboolean deja_dup_checker_get_available (DejaDupChecker* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_available;
	result = _tmp0_;
	return result;
}


void deja_dup_checker_set_available (DejaDupChecker* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	self->priv->_available = _tmp0_;
	g_object_notify ((GObject *) self, "available");
}


gboolean deja_dup_checker_get_complete (DejaDupChecker* self) {
	gboolean result;
	gboolean _tmp0_ = FALSE;
	g_return_val_if_fail (self != NULL, FALSE);
	_tmp0_ = self->priv->_complete;
	result = _tmp0_;
	return result;
}


void deja_dup_checker_set_complete (DejaDupChecker* self, gboolean value) {
	gboolean _tmp0_ = FALSE;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	self->priv->_complete = _tmp0_;
	g_object_notify ((GObject *) self, "complete");
}


static void deja_dup_checker_class_init (DejaDupCheckerClass * klass) {
	deja_dup_checker_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (DejaDupCheckerPrivate));
	G_OBJECT_CLASS (klass)->get_property = _vala_deja_dup_checker_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_deja_dup_checker_set_property;
	G_OBJECT_CLASS (klass)->finalize = deja_dup_checker_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), DEJA_DUP_CHECKER_AVAILABLE, g_param_spec_boolean ("available", "available", "available", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), DEJA_DUP_CHECKER_COMPLETE, g_param_spec_boolean ("complete", "complete", "complete", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void deja_dup_checker_instance_init (DejaDupChecker * self) {
	self->priv = DEJA_DUP_CHECKER_GET_PRIVATE (self);
	self->priv->_available = FALSE;
	self->priv->_complete = FALSE;
}


static void deja_dup_checker_finalize (GObject* obj) {
	DejaDupChecker * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEJA_DUP_TYPE_CHECKER, DejaDupChecker);
	G_OBJECT_CLASS (deja_dup_checker_parent_class)->finalize (obj);
}


GType deja_dup_checker_get_type (void) {
	static volatile gsize deja_dup_checker_type_id__volatile = 0;
	if (g_once_init_enter (&deja_dup_checker_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DejaDupCheckerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) deja_dup_checker_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DejaDupChecker), 0, (GInstanceInitFunc) deja_dup_checker_instance_init, NULL };
		GType deja_dup_checker_type_id;
		deja_dup_checker_type_id = g_type_register_static (G_TYPE_OBJECT, "DejaDupChecker", &g_define_type_info, 0);
		g_once_init_leave (&deja_dup_checker_type_id__volatile, deja_dup_checker_type_id);
	}
	return deja_dup_checker_type_id__volatile;
}


static void _vala_deja_dup_checker_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	DejaDupChecker * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, DEJA_DUP_TYPE_CHECKER, DejaDupChecker);
	switch (property_id) {
		case DEJA_DUP_CHECKER_AVAILABLE:
		g_value_set_boolean (value, deja_dup_checker_get_available (self));
		break;
		case DEJA_DUP_CHECKER_COMPLETE:
		g_value_set_boolean (value, deja_dup_checker_get_complete (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_deja_dup_checker_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	DejaDupChecker * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, DEJA_DUP_TYPE_CHECKER, DejaDupChecker);
	switch (property_id) {
		case DEJA_DUP_CHECKER_AVAILABLE:
		deja_dup_checker_set_available (self, g_value_get_boolean (value));
		break;
		case DEJA_DUP_CHECKER_COMPLETE:
		deja_dup_checker_set_complete (self, g_value_get_boolean (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



