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

/* This file is part of GNOME Boxes. License: LGPLv2+*/

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


#define BOXES_TYPE_UI_STATE (boxes_ui_state_get_type ())

#define BOXES_TYPE_UI (boxes_ui_get_type ())
#define BOXES_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UI, BoxesUI))
#define BOXES_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_UI, BoxesUIClass))
#define BOXES_IS_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UI))
#define BOXES_IS_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_UI))
#define BOXES_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_UI, BoxesUIClass))

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIClass BoxesUIClass;
typedef struct _BoxesUIPrivate BoxesUIPrivate;

typedef enum  {
	BOXES_UI_STATE_NONE,
	BOXES_UI_STATE_COLLECTION,
	BOXES_UI_STATE_CREDS,
	BOXES_UI_STATE_DISPLAY,
	BOXES_UI_STATE_SETTINGS,
	BOXES_UI_STATE_WIZARD,
	BOXES_UI_STATE_PROPERTIES
} BoxesUIState;

struct _BoxesUI {
	GObject parent_instance;
	BoxesUIPrivate * priv;
};

struct _BoxesUIClass {
	GObjectClass parent_class;
	void (*ui_state_changed) (BoxesUI* self);
	ClutterActor* (*get_actor) (BoxesUI* self);
};

struct _BoxesUIPrivate {
	BoxesUIState _previous_ui_state;
	BoxesUIState _ui_state;
};


static gpointer boxes_ui_parent_class = NULL;

GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
#define BOXES_UI_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_UI, BoxesUIPrivate))
enum  {
	BOXES_UI_DUMMY_PROPERTY,
	BOXES_UI_ACTOR,
	BOXES_UI_PREVIOUS_UI_STATE,
	BOXES_UI_UI_STATE
};
void boxes_ui_ui_state_changed (BoxesUI* self);
static void boxes_ui_real_ui_state_changed (BoxesUI* self);
BoxesUI* boxes_ui_construct (GType object_type);
ClutterActor* boxes_ui_get_actor (BoxesUI* self);
BoxesUIState boxes_ui_get_previous_ui_state (BoxesUI* self);
void boxes_ui_set_previous_ui_state (BoxesUI* self, BoxesUIState value);
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
void boxes_ui_set_ui_state (BoxesUI* self, BoxesUIState value);
static void boxes_ui_finalize (GObject* obj);
static void _vala_boxes_ui_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_boxes_ui_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


GType boxes_ui_state_get_type (void) {
	static volatile gsize boxes_ui_state_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_ui_state_type_id__volatile)) {
		static const GEnumValue values[] = {{BOXES_UI_STATE_NONE, "BOXES_UI_STATE_NONE", "none"}, {BOXES_UI_STATE_COLLECTION, "BOXES_UI_STATE_COLLECTION", "collection"}, {BOXES_UI_STATE_CREDS, "BOXES_UI_STATE_CREDS", "creds"}, {BOXES_UI_STATE_DISPLAY, "BOXES_UI_STATE_DISPLAY", "display"}, {BOXES_UI_STATE_SETTINGS, "BOXES_UI_STATE_SETTINGS", "settings"}, {BOXES_UI_STATE_WIZARD, "BOXES_UI_STATE_WIZARD", "wizard"}, {BOXES_UI_STATE_PROPERTIES, "BOXES_UI_STATE_PROPERTIES", "properties"}, {0, NULL, NULL}};
		GType boxes_ui_state_type_id;
		boxes_ui_state_type_id = g_enum_register_static ("BoxesUIState", values);
		g_once_init_leave (&boxes_ui_state_type_id__volatile, boxes_ui_state_type_id);
	}
	return boxes_ui_state_type_id__volatile;
}


static void boxes_ui_real_ui_state_changed (BoxesUI* self) {
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_critical ("Type `%s' does not implement abstract method `boxes_ui_ui_state_changed'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	return;
#line 93 "ui.c"
}


void boxes_ui_ui_state_changed (BoxesUI* self) {
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_return_if_fail (self != NULL);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	BOXES_UI_GET_CLASS (self)->ui_state_changed (self);
#line 102 "ui.c"
}


BoxesUI* boxes_ui_construct (GType object_type) {
	BoxesUI * self = NULL;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	self = (BoxesUI*) g_object_new (object_type, NULL);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	return self;
#line 112 "ui.c"
}


ClutterActor* boxes_ui_get_actor (BoxesUI* self) {
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	return BOXES_UI_GET_CLASS (self)->get_actor (self);
#line 121 "ui.c"
}


BoxesUIState boxes_ui_get_previous_ui_state (BoxesUI* self) {
	BoxesUIState result;
	BoxesUIState _tmp0_ = 0;
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	_tmp0_ = self->priv->_previous_ui_state;
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	result = _tmp0_;
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	return result;
#line 136 "ui.c"
}


void boxes_ui_set_previous_ui_state (BoxesUI* self, BoxesUIState value) {
	BoxesUIState _tmp0_ = 0;
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_return_if_fail (self != NULL);
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	_tmp0_ = value;
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	self->priv->_previous_ui_state = _tmp0_;
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_object_notify ((GObject *) self, "previous-ui-state");
#line 150 "ui.c"
}


BoxesUIState boxes_ui_get_ui_state (BoxesUI* self) {
	BoxesUIState result;
	BoxesUIState _tmp0_ = 0;
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	_tmp0_ = self->priv->_ui_state;
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	result = _tmp0_;
#line 20 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	return result;
#line 165 "ui.c"
}


void boxes_ui_set_ui_state (BoxesUI* self, BoxesUIState value) {
	BoxesUIState _tmp0_ = 0;
	BoxesUIState _tmp1_ = 0;
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_return_if_fail (self != NULL);
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	_tmp0_ = self->priv->_ui_state;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	_tmp1_ = value;
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	if (_tmp0_ != _tmp1_) {
#line 180 "ui.c"
		BoxesUIState _tmp2_ = 0;
		BoxesUIState _tmp3_ = 0;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		_tmp2_ = self->priv->_ui_state;
#line 23 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		boxes_ui_set_previous_ui_state (self, _tmp2_);
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		_tmp3_ = value;
#line 24 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		self->priv->_ui_state = _tmp3_;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		boxes_ui_ui_state_changed (self);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		g_object_notify ((GObject*) self, "ui-state");
#line 195 "ui.c"
	}
}


static void boxes_ui_class_init (BoxesUIClass * klass) {
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	boxes_ui_parent_class = g_type_class_peek_parent (klass);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_type_class_add_private (klass, sizeof (BoxesUIPrivate));
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	BOXES_UI_CLASS (klass)->ui_state_changed = boxes_ui_real_ui_state_changed;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_ui_get_property;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_ui_set_property;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_ui_finalize;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UI_ACTOR, g_param_spec_object ("actor", "actor", "actor", clutter_actor_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UI_PREVIOUS_UI_STATE, g_param_spec_enum ("previous-ui-state", "previous-ui-state", "previous-ui-state", BOXES_TYPE_UI_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_UI_UI_STATE, g_param_spec_enum ("ui-state", "ui-state", "ui-state", BOXES_TYPE_UI_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 219 "ui.c"
}


static void boxes_ui_instance_init (BoxesUI * self) {
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	self->priv = BOXES_UI_GET_PRIVATE (self);
#line 226 "ui.c"
}


static void boxes_ui_finalize (GObject* obj) {
	BoxesUI * self;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_UI, BoxesUI);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	G_OBJECT_CLASS (boxes_ui_parent_class)->finalize (obj);
#line 236 "ui.c"
}


GType boxes_ui_get_type (void) {
	static volatile gsize boxes_ui_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_ui_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesUIClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_ui_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesUI), 0, (GInstanceInitFunc) boxes_ui_instance_init, NULL };
		GType boxes_ui_type_id;
		boxes_ui_type_id = g_type_register_static (G_TYPE_OBJECT, "BoxesUI", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
		g_once_init_leave (&boxes_ui_type_id__volatile, boxes_ui_type_id);
	}
	return boxes_ui_type_id__volatile;
}


static void _vala_boxes_ui_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesUI * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UI, BoxesUI);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	switch (property_id) {
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		case BOXES_UI_PREVIOUS_UI_STATE:
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		g_value_set_enum (value, boxes_ui_get_previous_ui_state (self));
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		break;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		case BOXES_UI_UI_STATE:
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		g_value_set_enum (value, boxes_ui_get_ui_state (self));
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		break;
#line 269 "ui.c"
		default:
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		break;
#line 275 "ui.c"
	}
}


static void _vala_boxes_ui_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	BoxesUI * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_UI, BoxesUI);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
	switch (property_id) {
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		case BOXES_UI_PREVIOUS_UI_STATE:
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		boxes_ui_set_previous_ui_state (self, g_value_get_enum (value));
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		break;
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		case BOXES_UI_UI_STATE:
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		boxes_ui_set_ui_state (self, g_value_get_enum (value));
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		break;
#line 297 "ui.c"
		default:
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 13 "/extra-data/checkout/gnome/gnome-boxes/src/ui.vala"
		break;
#line 303 "ui.c"
	}
}



