/* ConfigURLPartBool.c generated by valac 0.30.2, the Vala compiler
 * generated from ConfigURLPartBool.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>
#include <gtk/gtk.h>
#include <gio/gio.h>
#include "deja.h"
#include <stdlib.h>
#include <string.h>


#define DEJA_DUP_TYPE_CONFIG_WIDGET (deja_dup_config_widget_get_type ())
#define DEJA_DUP_CONFIG_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_WIDGET, DejaDupConfigWidget))
#define DEJA_DUP_CONFIG_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_WIDGET, DejaDupConfigWidgetClass))
#define DEJA_DUP_IS_CONFIG_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_WIDGET))
#define DEJA_DUP_IS_CONFIG_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_WIDGET))
#define DEJA_DUP_CONFIG_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_WIDGET, DejaDupConfigWidgetClass))

typedef struct _DejaDupConfigWidget DejaDupConfigWidget;
typedef struct _DejaDupConfigWidgetClass DejaDupConfigWidgetClass;
typedef struct _DejaDupConfigWidgetPrivate DejaDupConfigWidgetPrivate;

#define DEJA_DUP_TYPE_CONFIG_BOOL (deja_dup_config_bool_get_type ())
#define DEJA_DUP_CONFIG_BOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_BOOL, DejaDupConfigBool))
#define DEJA_DUP_CONFIG_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_BOOL, DejaDupConfigBoolClass))
#define DEJA_DUP_IS_CONFIG_BOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_BOOL))
#define DEJA_DUP_IS_CONFIG_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_BOOL))
#define DEJA_DUP_CONFIG_BOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_BOOL, DejaDupConfigBoolClass))

typedef struct _DejaDupConfigBool DejaDupConfigBool;
typedef struct _DejaDupConfigBoolClass DejaDupConfigBoolClass;
typedef struct _DejaDupConfigBoolPrivate DejaDupConfigBoolPrivate;

#define DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL (deja_dup_config_url_part_bool_get_type ())
#define DEJA_DUP_CONFIG_URL_PART_BOOL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBool))
#define DEJA_DUP_CONFIG_URL_PART_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBoolClass))
#define DEJA_DUP_IS_CONFIG_URL_PART_BOOL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL))
#define DEJA_DUP_IS_CONFIG_URL_PART_BOOL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL))
#define DEJA_DUP_CONFIG_URL_PART_BOOL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBoolClass))

typedef struct _DejaDupConfigURLPartBool DejaDupConfigURLPartBool;
typedef struct _DejaDupConfigURLPartBoolClass DejaDupConfigURLPartBoolClass;
typedef struct _DejaDupConfigURLPartBoolPrivate DejaDupConfigURLPartBoolPrivate;

#define DEJA_DUP_CONFIG_URL_PART_TYPE_PART (deja_dup_config_url_part_part_get_type ())
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _DejaDupConfigUrlPartBoolSetFromConfigData DejaDupConfigUrlPartBoolSetFromConfigData;

struct _DejaDupConfigWidget {
	GtkEventBox parent_instance;
	DejaDupConfigWidgetPrivate * priv;
	gboolean syncing;
	DejaDupFilteredSettings* settings;
	GList* all_settings;
};

struct _DejaDupConfigWidgetClass {
	GtkEventBoxClass parent_class;
	void (*set_from_config) (DejaDupConfigWidget* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*set_from_config_finish) (DejaDupConfigWidget* self, GAsyncResult* _res_);
};

struct _DejaDupConfigBool {
	DejaDupConfigWidget parent_instance;
	DejaDupConfigBoolPrivate * priv;
	GtkCheckButton* button;
	gboolean user_driven;
};

struct _DejaDupConfigBoolClass {
	DejaDupConfigWidgetClass parent_class;
	void (*handle_toggled) (DejaDupConfigBool* self);
};

struct _DejaDupConfigURLPartBool {
	DejaDupConfigBool parent_instance;
	DejaDupConfigURLPartBoolPrivate * priv;
};

struct _DejaDupConfigURLPartBoolClass {
	DejaDupConfigBoolClass parent_class;
};

typedef enum  {
	DEJA_DUP_CONFIG_URL_PART_PART_SCHEME,
	DEJA_DUP_CONFIG_URL_PART_PART_SERVER,
	DEJA_DUP_CONFIG_URL_PART_PART_PORT,
	DEJA_DUP_CONFIG_URL_PART_PART_USER,
	DEJA_DUP_CONFIG_URL_PART_PART_FOLDER,
	DEJA_DUP_CONFIG_URL_PART_PART_DOMAIN
} DejaDupConfigURLPartPart;

typedef gboolean (*DejaDupConfigURLPartBoolTestActive) (const gchar* val, void* user_data);
struct _DejaDupConfigURLPartBoolPrivate {
	DejaDupConfigURLPartPart _part;
	DejaDupConfigURLPartBoolTestActive _test_active;
	gpointer _test_active_target;
};

struct _DejaDupConfigUrlPartBoolSetFromConfigData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	DejaDupConfigURLPartBool* self;
	DejaDupConfigURLPartBoolTestActive _tmp0_;
	void* _tmp0__target;
	DejaDupConfigURLPartBoolTestActive _tmp1_;
	void* _tmp1__target;
	gchar* userval;
	DejaDupFilteredSettings* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	DejaDupConfigURLPartPart _tmp5_;
	gchar* _tmp6_;
	gboolean prev;
	gboolean _tmp7_;
	GtkCheckButton* _tmp8_;
	DejaDupConfigURLPartBoolTestActive _tmp9_;
	void* _tmp9__target;
	DejaDupConfigURLPartBoolTestActive _tmp10_;
	void* _tmp10__target;
	const gchar* _tmp11_;
	gboolean _tmp12_;
	gboolean _tmp13_;
};


static gpointer deja_dup_config_url_part_bool_parent_class = NULL;

GType deja_dup_config_widget_get_type (void) G_GNUC_CONST;
GType deja_dup_config_bool_get_type (void) G_GNUC_CONST;
GType deja_dup_config_url_part_bool_get_type (void) G_GNUC_CONST;
GType deja_dup_config_url_part_part_get_type (void) G_GNUC_CONST;
#define DEJA_DUP_CONFIG_URL_PART_BOOL_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBoolPrivate))
enum  {
	DEJA_DUP_CONFIG_URL_PART_BOOL_DUMMY_PROPERTY,
	DEJA_DUP_CONFIG_URL_PART_BOOL_PART
};
DejaDupConfigURLPartBool* deja_dup_config_url_part_bool_new (DejaDupConfigURLPartPart part, const gchar* key, const gchar* ns, const gchar* label);
DejaDupConfigURLPartBool* deja_dup_config_url_part_bool_construct (GType object_type, DejaDupConfigURLPartPart part, const gchar* key, const gchar* ns, const gchar* label);
static void deja_dup_config_url_part_bool_real_set_from_config_data_free (gpointer _data);
static void deja_dup_config_url_part_bool_real_set_from_config (DejaDupConfigWidget* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean deja_dup_config_url_part_bool_real_set_from_config_co (DejaDupConfigUrlPartBoolSetFromConfigData* _data_);
DejaDupConfigURLPartBoolTestActive deja_dup_config_url_part_bool_get_test_active (DejaDupConfigURLPartBool* self, gpointer* result_target);
gchar* deja_dup_config_url_part_read_uri_part (DejaDupFilteredSettings* settings, const gchar* key, DejaDupConfigURLPartPart part);
const gchar* deja_dup_config_widget_get_key (DejaDupConfigWidget* self);
DejaDupConfigURLPartPart deja_dup_config_url_part_bool_get_part (DejaDupConfigURLPartBool* self);
static void deja_dup_config_url_part_bool_real_handle_toggled (DejaDupConfigBool* base);
static void deja_dup_config_url_part_bool_set_part (DejaDupConfigURLPartBool* self, DejaDupConfigURLPartPart value);
void deja_dup_config_url_part_bool_set_test_active (DejaDupConfigURLPartBool* self, DejaDupConfigURLPartBoolTestActive value, gpointer value_target);
void deja_dup_config_widget_set_from_config (DejaDupConfigWidget* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void deja_dup_config_widget_set_from_config_finish (DejaDupConfigWidget* self, GAsyncResult* _res_);
static void deja_dup_config_url_part_bool_finalize (GObject* obj);
static void _vala_deja_dup_config_url_part_bool_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_deja_dup_config_url_part_bool_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


DejaDupConfigURLPartBool* deja_dup_config_url_part_bool_construct (GType object_type, DejaDupConfigURLPartPart part, const gchar* key, const gchar* ns, const gchar* label) {
	DejaDupConfigURLPartBool * self = NULL;
	const gchar* _tmp0_ = NULL;
	const gchar* _tmp1_ = NULL;
	DejaDupConfigURLPartPart _tmp2_ = 0;
	const gchar* _tmp3_ = NULL;
	g_return_val_if_fail (key != NULL, NULL);
	g_return_val_if_fail (ns != NULL, NULL);
	g_return_val_if_fail (label != NULL, NULL);
	_tmp0_ = key;
	_tmp1_ = ns;
	_tmp2_ = part;
	_tmp3_ = label;
	self = (DejaDupConfigURLPartBool*) g_object_new (object_type, "key", _tmp0_, "ns", _tmp1_, "part", _tmp2_, "label", _tmp3_, NULL);
	return self;
}


DejaDupConfigURLPartBool* deja_dup_config_url_part_bool_new (DejaDupConfigURLPartPart part, const gchar* key, const gchar* ns, const gchar* label) {
	return deja_dup_config_url_part_bool_construct (DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, part, key, ns, label);
}


static void deja_dup_config_url_part_bool_real_set_from_config_data_free (gpointer _data) {
	DejaDupConfigUrlPartBoolSetFromConfigData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (DejaDupConfigUrlPartBoolSetFromConfigData, _data_);
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static void deja_dup_config_url_part_bool_real_set_from_config (DejaDupConfigWidget* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	DejaDupConfigURLPartBool * self;
	DejaDupConfigUrlPartBoolSetFromConfigData* _data_;
	DejaDupConfigURLPartBool* _tmp0_ = NULL;
	self = (DejaDupConfigURLPartBool*) base;
	_data_ = g_slice_new0 (DejaDupConfigUrlPartBoolSetFromConfigData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, deja_dup_config_url_part_bool_real_set_from_config);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, deja_dup_config_url_part_bool_real_set_from_config_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	deja_dup_config_url_part_bool_real_set_from_config_co (_data_);
}


static void deja_dup_config_url_part_bool_real_set_from_config_finish (DejaDupConfigWidget* base, GAsyncResult* _res_) {
	DejaDupConfigUrlPartBoolSetFromConfigData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean deja_dup_config_url_part_bool_real_set_from_config_co (DejaDupConfigUrlPartBoolSetFromConfigData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0__target = NULL;
	_data_->_tmp0_ = deja_dup_config_url_part_bool_get_test_active (_data_->self, &_data_->_tmp0__target);
	_data_->_tmp1_ = NULL;
	_data_->_tmp1__target = NULL;
	_data_->_tmp1_ = _data_->_tmp0_;
	_data_->_tmp1__target = _data_->_tmp0__target;
	if (_data_->_tmp1_ != NULL) {
		_data_->_tmp2_ = NULL;
		_data_->_tmp2_ = ((DejaDupConfigWidget*) _data_->self)->settings;
		_data_->_tmp3_ = NULL;
		_data_->_tmp3_ = deja_dup_config_widget_get_key ((DejaDupConfigWidget*) _data_->self);
		_data_->_tmp4_ = NULL;
		_data_->_tmp4_ = _data_->_tmp3_;
		_data_->_tmp5_ = 0;
		_data_->_tmp5_ = _data_->self->priv->_part;
		_data_->_tmp6_ = NULL;
		_data_->_tmp6_ = deja_dup_config_url_part_read_uri_part (_data_->_tmp2_, _data_->_tmp4_, _data_->_tmp5_);
		_data_->userval = _data_->_tmp6_;
		_data_->_tmp7_ = FALSE;
		_data_->_tmp7_ = ((DejaDupConfigBool*) _data_->self)->user_driven;
		_data_->prev = _data_->_tmp7_;
		((DejaDupConfigBool*) _data_->self)->user_driven = FALSE;
		_data_->_tmp8_ = NULL;
		_data_->_tmp8_ = ((DejaDupConfigBool*) _data_->self)->button;
		_data_->_tmp9_ = NULL;
		_data_->_tmp9__target = NULL;
		_data_->_tmp9_ = deja_dup_config_url_part_bool_get_test_active (_data_->self, &_data_->_tmp9__target);
		_data_->_tmp10_ = NULL;
		_data_->_tmp10__target = NULL;
		_data_->_tmp10_ = _data_->_tmp9_;
		_data_->_tmp10__target = _data_->_tmp9__target;
		_data_->_tmp11_ = NULL;
		_data_->_tmp11_ = _data_->userval;
		_data_->_tmp12_ = FALSE;
		_data_->_tmp12_ = _data_->_tmp10_ (_data_->_tmp11_, _data_->_tmp10__target);
		gtk_toggle_button_set_active ((GtkToggleButton*) _data_->_tmp8_, _data_->_tmp12_);
		_data_->_tmp13_ = FALSE;
		_data_->_tmp13_ = _data_->prev;
		((DejaDupConfigBool*) _data_->self)->user_driven = _data_->_tmp13_;
		_g_free0 (_data_->userval);
	}
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


static void deja_dup_config_url_part_bool_real_handle_toggled (DejaDupConfigBool* base) {
	DejaDupConfigURLPartBool * self;
	gboolean _tmp0_ = FALSE;
	self = (DejaDupConfigURLPartBool*) base;
	_tmp0_ = ((DejaDupConfigBool*) self)->user_driven;
	g_signal_emit_by_name ((DejaDupConfigBool*) self, "toggled", (DejaDupConfigBool*) self, _tmp0_);
}


DejaDupConfigURLPartPart deja_dup_config_url_part_bool_get_part (DejaDupConfigURLPartBool* self) {
	DejaDupConfigURLPartPart result;
	DejaDupConfigURLPartPart _tmp0_ = 0;
	g_return_val_if_fail (self != NULL, 0);
	_tmp0_ = self->priv->_part;
	result = _tmp0_;
	return result;
}


static void deja_dup_config_url_part_bool_set_part (DejaDupConfigURLPartBool* self, DejaDupConfigURLPartPart value) {
	DejaDupConfigURLPartPart _tmp0_ = 0;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	self->priv->_part = _tmp0_;
	g_object_notify ((GObject *) self, "part");
}


DejaDupConfigURLPartBoolTestActive deja_dup_config_url_part_bool_get_test_active (DejaDupConfigURLPartBool* self, gpointer* result_target) {
	DejaDupConfigURLPartBoolTestActive result;
	DejaDupConfigURLPartBoolTestActive _tmp0_ = NULL;
	void* _tmp0__target = NULL;
	DejaDupConfigURLPartBoolTestActive _tmp1_ = NULL;
	void* _tmp1__target = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	_tmp0_ = self->priv->_test_active;
	_tmp0__target = self->priv->_test_active_target;
	_tmp1_ = _tmp0_;
	_tmp1__target = _tmp0__target;
	*result_target = _tmp1__target;
	result = _tmp1_;
	return result;
}


void deja_dup_config_url_part_bool_set_test_active (DejaDupConfigURLPartBool* self, DejaDupConfigURLPartBoolTestActive value, gpointer value_target) {
	DejaDupConfigURLPartBoolTestActive _tmp0_ = NULL;
	void* _tmp0__target = NULL;
	g_return_if_fail (self != NULL);
	_tmp0_ = value;
	_tmp0__target = value_target;
	self->priv->_test_active = _tmp0_;
	self->priv->_test_active_target = _tmp0__target;
	deja_dup_config_widget_set_from_config ((DejaDupConfigWidget*) self, NULL, NULL);
}


static void deja_dup_config_url_part_bool_class_init (DejaDupConfigURLPartBoolClass * klass) {
	deja_dup_config_url_part_bool_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (DejaDupConfigURLPartBoolPrivate));
	((DejaDupConfigWidgetClass *) klass)->set_from_config = deja_dup_config_url_part_bool_real_set_from_config;
	((DejaDupConfigWidgetClass *) klass)->set_from_config_finish = deja_dup_config_url_part_bool_real_set_from_config_finish;
	((DejaDupConfigBoolClass *) klass)->handle_toggled = deja_dup_config_url_part_bool_real_handle_toggled;
	G_OBJECT_CLASS (klass)->get_property = _vala_deja_dup_config_url_part_bool_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_deja_dup_config_url_part_bool_set_property;
	G_OBJECT_CLASS (klass)->finalize = deja_dup_config_url_part_bool_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), DEJA_DUP_CONFIG_URL_PART_BOOL_PART, g_param_spec_enum ("part", "part", "part", DEJA_DUP_CONFIG_URL_PART_TYPE_PART, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY));
}


static void deja_dup_config_url_part_bool_instance_init (DejaDupConfigURLPartBool * self) {
	self->priv = DEJA_DUP_CONFIG_URL_PART_BOOL_GET_PRIVATE (self);
}


static void deja_dup_config_url_part_bool_finalize (GObject* obj) {
	DejaDupConfigURLPartBool * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBool);
	G_OBJECT_CLASS (deja_dup_config_url_part_bool_parent_class)->finalize (obj);
}


GType deja_dup_config_url_part_bool_get_type (void) {
	static volatile gsize deja_dup_config_url_part_bool_type_id__volatile = 0;
	if (g_once_init_enter (&deja_dup_config_url_part_bool_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (DejaDupConfigURLPartBoolClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) deja_dup_config_url_part_bool_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (DejaDupConfigURLPartBool), 0, (GInstanceInitFunc) deja_dup_config_url_part_bool_instance_init, NULL };
		GType deja_dup_config_url_part_bool_type_id;
		deja_dup_config_url_part_bool_type_id = g_type_register_static (DEJA_DUP_TYPE_CONFIG_BOOL, "DejaDupConfigURLPartBool", &g_define_type_info, 0);
		g_once_init_leave (&deja_dup_config_url_part_bool_type_id__volatile, deja_dup_config_url_part_bool_type_id);
	}
	return deja_dup_config_url_part_bool_type_id__volatile;
}


static void _vala_deja_dup_config_url_part_bool_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	DejaDupConfigURLPartBool * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBool);
	switch (property_id) {
		case DEJA_DUP_CONFIG_URL_PART_BOOL_PART:
		g_value_set_enum (value, deja_dup_config_url_part_bool_get_part (self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_deja_dup_config_url_part_bool_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	DejaDupConfigURLPartBool * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, DEJA_DUP_TYPE_CONFIG_URL_PART_BOOL, DejaDupConfigURLPartBool);
	switch (property_id) {
		case DEJA_DUP_CONFIG_URL_PART_BOOL_PART:
		deja_dup_config_url_part_bool_set_part (self, g_value_get_enum (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



