/* troubleshoot-view.c generated by valac 0.39.5, the Vala compiler
 * generated from troubleshoot-view.vala, do not modify */

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

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


#define BOXES_TYPE_UI (boxes_ui_get_type ())
#define BOXES_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_UI, BoxesUI))
#define BOXES_IS_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_UI))
#define BOXES_UI_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_UI, BoxesUIIface))

typedef struct _BoxesUI BoxesUI;
typedef struct _BoxesUIIface BoxesUIIface;

#define BOXES_TYPE_UI_STATE (boxes_ui_state_get_type ())

#define BOXES_TYPE_TROUBLESHOOT_VIEW (boxes_troubleshoot_view_get_type ())
#define BOXES_TROUBLESHOOT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootView))
#define BOXES_TROUBLESHOOT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootViewClass))
#define BOXES_IS_TROUBLESHOOT_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_TROUBLESHOOT_VIEW))
#define BOXES_IS_TROUBLESHOOT_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_TROUBLESHOOT_VIEW))
#define BOXES_TROUBLESHOOT_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootViewClass))

typedef struct _BoxesTroubleshootView BoxesTroubleshootView;
typedef struct _BoxesTroubleshootViewClass BoxesTroubleshootViewClass;
typedef struct _BoxesTroubleshootViewPrivate BoxesTroubleshootViewPrivate;

#define BOXES_TYPE_APP_WINDOW (boxes_app_window_get_type ())
#define BOXES_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindow))
#define BOXES_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))
#define BOXES_IS_APP_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP_WINDOW))
#define BOXES_IS_APP_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP_WINDOW))
#define BOXES_APP_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP_WINDOW, BoxesAppWindowClass))

typedef struct _BoxesAppWindow BoxesAppWindow;
typedef struct _BoxesAppWindowClass BoxesAppWindowClass;
enum  {
	BOXES_TROUBLESHOOT_VIEW_0_PROPERTY,
	BOXES_TROUBLESHOOT_VIEW_PREVIOUS_UI_STATE_PROPERTY,
	BOXES_TROUBLESHOOT_VIEW_UI_STATE_PROPERTY,
	BOXES_TROUBLESHOOT_VIEW_NUM_PROPERTIES
};
static GParamSpec* boxes_troubleshoot_view_properties[BOXES_TROUBLESHOOT_VIEW_NUM_PROPERTIES];
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

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

struct _BoxesUIIface {
	GTypeInterface parent_iface;
	BoxesUIState (*get_previous_ui_state) (BoxesUI* self);
	void (*set_previous_ui_state) (BoxesUI* self, BoxesUIState value);
	BoxesUIState (*get_ui_state) (BoxesUI* self);
	void (*set_ui_state) (BoxesUI* self, BoxesUIState value);
};

struct _BoxesTroubleshootView {
	GtkStack parent_instance;
	BoxesTroubleshootViewPrivate * priv;
};

struct _BoxesTroubleshootViewClass {
	GtkStackClass parent_class;
};

struct _BoxesTroubleshootViewPrivate {
	BoxesUIState _previous_ui_state;
	BoxesUIState _ui_state;
	BoxesAppWindow* window;
};


static gpointer boxes_troubleshoot_view_parent_class = NULL;
static BoxesUIIface * boxes_troubleshoot_view_boxes_ui_parent_iface = NULL;

GType boxes_ui_state_get_type (void) G_GNUC_CONST;
GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_troubleshoot_view_get_type (void) G_GNUC_CONST;
GType boxes_app_window_get_type (void) G_GNUC_CONST;
#define BOXES_TROUBLESHOOT_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootViewPrivate))
void boxes_troubleshoot_view_setup_ui (BoxesTroubleshootView* self,
                                       BoxesAppWindow* window);
BoxesTroubleshootView* boxes_troubleshoot_view_new (void);
BoxesTroubleshootView* boxes_troubleshoot_view_construct (GType object_type);
static void boxes_troubleshoot_view_finalize (GObject * obj);
BoxesUIState boxes_ui_get_previous_ui_state (BoxesUI* self);
BoxesUIState boxes_ui_get_ui_state (BoxesUI* self);
static void _vala_boxes_troubleshoot_view_get_property (GObject * object,
                                                 guint property_id,
                                                 GValue * value,
                                                 GParamSpec * pspec);
void boxes_ui_set_previous_ui_state (BoxesUI* self,
                                     BoxesUIState value);
void boxes_ui_set_ui_state (BoxesUI* self,
                            BoxesUIState value);
static void _vala_boxes_troubleshoot_view_set_property (GObject * object,
                                                 guint property_id,
                                                 const GValue * value,
                                                 GParamSpec * pspec);


static gpointer
_g_object_ref0 (gpointer self)
{
#line 11 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	return self ? g_object_ref (self) : NULL;
#line 119 "troubleshoot-view.c"
}


void
boxes_troubleshoot_view_setup_ui (BoxesTroubleshootView* self,
                                  BoxesAppWindow* window)
{
	BoxesAppWindow* _tmp0_;
#line 10 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	g_return_if_fail (self != NULL);
#line 10 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	g_return_if_fail (window != NULL);
#line 11 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	_tmp0_ = _g_object_ref0 (window);
#line 11 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	_g_object_unref0 (self->priv->window);
#line 11 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	self->priv->window = _tmp0_;
#line 138 "troubleshoot-view.c"
}


BoxesTroubleshootView*
boxes_troubleshoot_view_construct (GType object_type)
{
	BoxesTroubleshootView * self = NULL;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	self = (BoxesTroubleshootView*) g_object_new (object_type, NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	return self;
#line 150 "troubleshoot-view.c"
}


BoxesTroubleshootView*
boxes_troubleshoot_view_new (void)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	return boxes_troubleshoot_view_construct (BOXES_TYPE_TROUBLESHOOT_VIEW);
#line 159 "troubleshoot-view.c"
}


static BoxesUIState
boxes_troubleshoot_view_real_get_previous_ui_state (BoxesUI* base)
{
	BoxesUIState result;
	BoxesTroubleshootView* self;
	BoxesUIState _tmp0_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	self = (BoxesTroubleshootView*) base;
#line 5 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	_tmp0_ = self->priv->_previous_ui_state;
#line 5 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	result = _tmp0_;
#line 5 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	return result;
#line 177 "troubleshoot-view.c"
}


static void
boxes_troubleshoot_view_real_set_previous_ui_state (BoxesUI* base,
                                                    BoxesUIState value)
{
	BoxesTroubleshootView* self;
#line 5 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	self = (BoxesTroubleshootView*) base;
#line 5 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	if (boxes_troubleshoot_view_real_get_previous_ui_state (base) != value) {
#line 5 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		self->priv->_previous_ui_state = value;
#line 5 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_troubleshoot_view_properties[BOXES_TROUBLESHOOT_VIEW_PREVIOUS_UI_STATE_PROPERTY]);
#line 194 "troubleshoot-view.c"
	}
}


static BoxesUIState
boxes_troubleshoot_view_real_get_ui_state (BoxesUI* base)
{
	BoxesUIState result;
	BoxesTroubleshootView* self;
	BoxesUIState _tmp0_;
#line 6 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	self = (BoxesTroubleshootView*) base;
#line 6 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	_tmp0_ = self->priv->_ui_state;
#line 6 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	result = _tmp0_;
#line 6 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	return result;
#line 213 "troubleshoot-view.c"
}


static void
boxes_troubleshoot_view_real_set_ui_state (BoxesUI* base,
                                           BoxesUIState value)
{
	BoxesTroubleshootView* self;
#line 6 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	self = (BoxesTroubleshootView*) base;
#line 6 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	if (boxes_troubleshoot_view_real_get_ui_state (base) != value) {
#line 6 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		self->priv->_ui_state = value;
#line 6 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		g_object_notify_by_pspec ((GObject *) self, boxes_troubleshoot_view_properties[BOXES_TROUBLESHOOT_VIEW_UI_STATE_PROPERTY]);
#line 230 "troubleshoot-view.c"
	}
}


static void
boxes_troubleshoot_view_class_init (BoxesTroubleshootViewClass * klass)
{
	gint BoxesTroubleshootView_private_offset;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	boxes_troubleshoot_view_parent_class = g_type_class_peek_parent (klass);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	g_type_class_add_private (klass, sizeof (BoxesTroubleshootViewPrivate));
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_troubleshoot_view_get_property;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_boxes_troubleshoot_view_set_property;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_troubleshoot_view_finalize;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_TROUBLESHOOT_VIEW_PREVIOUS_UI_STATE_PROPERTY, boxes_troubleshoot_view_properties[BOXES_TROUBLESHOOT_VIEW_PREVIOUS_UI_STATE_PROPERTY] = 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 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_TROUBLESHOOT_VIEW_UI_STATE_PROPERTY, boxes_troubleshoot_view_properties[BOXES_TROUBLESHOOT_VIEW_UI_STATE_PROPERTY] = 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 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	BoxesTroubleshootView_private_offset = g_type_class_get_instance_private_offset (klass);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	gtk_widget_class_set_template_from_resource (GTK_WIDGET_CLASS (klass), "/org/gnome/Boxes/ui/troubleshoot-view.ui");
#line 257 "troubleshoot-view.c"
}


static void
boxes_troubleshoot_view_boxes_ui_interface_init (BoxesUIIface * iface)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	boxes_troubleshoot_view_boxes_ui_parent_iface = g_type_interface_peek_parent (iface);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	iface->get_previous_ui_state = boxes_troubleshoot_view_real_get_previous_ui_state;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	iface->set_previous_ui_state = boxes_troubleshoot_view_real_set_previous_ui_state;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	iface->get_ui_state = boxes_troubleshoot_view_real_get_ui_state;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	iface->set_ui_state = boxes_troubleshoot_view_real_set_ui_state;
#line 274 "troubleshoot-view.c"
}


static void
boxes_troubleshoot_view_instance_init (BoxesTroubleshootView * self)
{
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	self->priv = BOXES_TROUBLESHOOT_VIEW_GET_PRIVATE (self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	gtk_widget_init_template (GTK_WIDGET (self));
#line 285 "troubleshoot-view.c"
}


static void
boxes_troubleshoot_view_finalize (GObject * obj)
{
	BoxesTroubleshootView * self;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootView);
#line 8 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	_g_object_unref0 (self->priv->window);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	G_OBJECT_CLASS (boxes_troubleshoot_view_parent_class)->finalize (obj);
#line 299 "troubleshoot-view.c"
}


GType
boxes_troubleshoot_view_get_type (void)
{
	static volatile gsize boxes_troubleshoot_view_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_troubleshoot_view_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesTroubleshootViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_troubleshoot_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesTroubleshootView), 0, (GInstanceInitFunc) boxes_troubleshoot_view_instance_init, NULL };
		static const GInterfaceInfo boxes_ui_info = { (GInterfaceInitFunc) boxes_troubleshoot_view_boxes_ui_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_troubleshoot_view_type_id;
		boxes_troubleshoot_view_type_id = g_type_register_static (gtk_stack_get_type (), "BoxesTroubleshootView", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_troubleshoot_view_type_id, BOXES_TYPE_UI, &boxes_ui_info);
		g_once_init_leave (&boxes_troubleshoot_view_type_id__volatile, boxes_troubleshoot_view_type_id);
	}
	return boxes_troubleshoot_view_type_id__volatile;
}


static void
_vala_boxes_troubleshoot_view_get_property (GObject * object,
                                            guint property_id,
                                            GValue * value,
                                            GParamSpec * pspec)
{
	BoxesTroubleshootView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootView);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	switch (property_id) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		case BOXES_TROUBLESHOOT_VIEW_PREVIOUS_UI_STATE_PROPERTY:
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		g_value_set_enum (value, boxes_ui_get_previous_ui_state ((BoxesUI*) self));
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		break;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		case BOXES_TROUBLESHOOT_VIEW_UI_STATE_PROPERTY:
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		g_value_set_enum (value, boxes_ui_get_ui_state ((BoxesUI*) self));
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		break;
#line 341 "troubleshoot-view.c"
		default:
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		break;
#line 347 "troubleshoot-view.c"
	}
}


static void
_vala_boxes_troubleshoot_view_set_property (GObject * object,
                                            guint property_id,
                                            const GValue * value,
                                            GParamSpec * pspec)
{
	BoxesTroubleshootView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_TROUBLESHOOT_VIEW, BoxesTroubleshootView);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
	switch (property_id) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		case BOXES_TROUBLESHOOT_VIEW_PREVIOUS_UI_STATE_PROPERTY:
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		boxes_ui_set_previous_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		break;
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		case BOXES_TROUBLESHOOT_VIEW_UI_STATE_PROPERTY:
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		boxes_ui_set_ui_state ((BoxesUI*) self, g_value_get_enum (value));
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		break;
#line 374 "troubleshoot-view.c"
		default:
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 4 "/home/fborges/checkout/gnome-boxes/src/troubleshoot-view.vala"
		break;
#line 380 "troubleshoot-view.c"
	}
}



