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

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

#include <glib.h>
#include <glib-object.h>
#include <clutter/clutter.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <govirt/govirt.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.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_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;

#define BOXES_TYPE_COLLECTION_ITEM (boxes_collection_item_get_type ())
#define BOXES_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItem))
#define BOXES_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))
#define BOXES_IS_COLLECTION_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_IS_COLLECTION_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_COLLECTION_ITEM))
#define BOXES_COLLECTION_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_COLLECTION_ITEM, BoxesCollectionItemClass))

typedef struct _BoxesCollectionItem BoxesCollectionItem;
typedef struct _BoxesCollectionItemClass BoxesCollectionItemClass;
typedef struct _BoxesCollectionItemPrivate BoxesCollectionItemPrivate;

#define BOXES_TYPE_IPROPERTIES_PROVIDER (boxes_iproperties_provider_get_type ())
#define BOXES_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProvider))
#define BOXES_IS_IPROPERTIES_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER))
#define BOXES_IPROPERTIES_PROVIDER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), BOXES_TYPE_IPROPERTIES_PROVIDER, BoxesIPropertiesProviderIface))

typedef struct _BoxesIPropertiesProvider BoxesIPropertiesProvider;
typedef struct _BoxesIPropertiesProviderIface BoxesIPropertiesProviderIface;

#define BOXES_TYPE_PROPERTIES_PAGE (boxes_properties_page_get_type ())

#define TYPE_PROPERTY_CREATION_FLAG (property_creation_flag_get_type ())

#define BOXES_TYPE_PROPERTY (boxes_property_get_type ())
#define BOXES_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_PROPERTY, BoxesProperty))
#define BOXES_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_PROPERTY, BoxesPropertyClass))
#define BOXES_IS_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_PROPERTY))
#define BOXES_IS_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_PROPERTY))
#define BOXES_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_PROPERTY, BoxesPropertyClass))

typedef struct _BoxesProperty BoxesProperty;
typedef struct _BoxesPropertyClass BoxesPropertyClass;

#define BOXES_TYPE_MACHINE (boxes_machine_get_type ())
#define BOXES_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_MACHINE, BoxesMachine))
#define BOXES_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_MACHINE, BoxesMachineClass))
#define BOXES_IS_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_MACHINE))
#define BOXES_IS_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_MACHINE))
#define BOXES_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_MACHINE, BoxesMachineClass))

typedef struct _BoxesMachine BoxesMachine;
typedef struct _BoxesMachineClass BoxesMachineClass;
typedef struct _BoxesMachinePrivate BoxesMachinePrivate;

#define BOXES_MACHINE_TYPE_CONNECT_FLAGS (boxes_machine_connect_flags_get_type ())

#define BOXES_TYPE_OVIRT_MACHINE (boxes_ovirt_machine_get_type ())
#define BOXES_OVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachine))
#define BOXES_OVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachineClass))
#define BOXES_IS_OVIRT_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_OVIRT_MACHINE))
#define BOXES_IS_OVIRT_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_OVIRT_MACHINE))
#define BOXES_OVIRT_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachineClass))

typedef struct _BoxesOvirtMachine BoxesOvirtMachine;
typedef struct _BoxesOvirtMachineClass BoxesOvirtMachineClass;
typedef struct _BoxesOvirtMachinePrivate BoxesOvirtMachinePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))

#define BOXES_TYPE_DISPLAY (boxes_display_get_type ())
#define BOXES_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_DISPLAY, BoxesDisplay))
#define BOXES_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_DISPLAY, BoxesDisplayClass))
#define BOXES_IS_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_DISPLAY))
#define BOXES_IS_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_DISPLAY))
#define BOXES_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_DISPLAY, BoxesDisplayClass))

typedef struct _BoxesDisplay BoxesDisplay;
typedef struct _BoxesDisplayClass BoxesDisplayClass;

#define BOXES_MACHINE_TYPE_MACHINE_STATE (boxes_machine_machine_state_get_type ())
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _BoxesOvirtMachineConnectDisplayData BoxesOvirtMachineConnectDisplayData;

#define BOXES_TYPE_STRING_PROPERTY (boxes_string_property_get_type ())
#define BOXES_STRING_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_STRING_PROPERTY, BoxesStringProperty))
#define BOXES_STRING_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_STRING_PROPERTY, BoxesStringPropertyClass))
#define BOXES_IS_STRING_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_STRING_PROPERTY))
#define BOXES_IS_STRING_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_STRING_PROPERTY))
#define BOXES_STRING_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_STRING_PROPERTY, BoxesStringPropertyClass))

typedef struct _BoxesStringProperty BoxesStringProperty;
typedef struct _BoxesStringPropertyClass BoxesStringPropertyClass;
#define __g_list_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

#define BOXES_TYPE_SPICE_DISPLAY (boxes_spice_display_get_type ())
#define BOXES_SPICE_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplay))
#define BOXES_SPICE_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplayClass))
#define BOXES_IS_SPICE_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_SPICE_DISPLAY))
#define BOXES_IS_SPICE_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_SPICE_DISPLAY))
#define BOXES_SPICE_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_SPICE_DISPLAY, BoxesSpiceDisplayClass))

typedef struct _BoxesSpiceDisplay BoxesSpiceDisplay;
typedef struct _BoxesSpiceDisplayClass BoxesSpiceDisplayClass;
#define _g_byte_array_unref0(var) ((var == NULL) ? NULL : (var = (g_byte_array_unref (var), NULL)))

#define BOXES_TYPE_VNC_DISPLAY (boxes_vnc_display_get_type ())
#define BOXES_VNC_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplay))
#define BOXES_VNC_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplayClass))
#define BOXES_IS_VNC_DISPLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_VNC_DISPLAY))
#define BOXES_IS_VNC_DISPLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_VNC_DISPLAY))
#define BOXES_VNC_DISPLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_VNC_DISPLAY, BoxesVncDisplayClass))

typedef struct _BoxesVncDisplay BoxesVncDisplay;
typedef struct _BoxesVncDisplayClass BoxesVncDisplayClass;

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

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

struct _BoxesCollectionItem {
	BoxesUI parent_instance;
	BoxesCollectionItemPrivate * priv;
};

struct _BoxesCollectionItemClass {
	BoxesUIClass parent_class;
	gint (*compare) (BoxesCollectionItem* self, BoxesCollectionItem* other);
};

typedef enum  {
	BOXES_PROPERTIES_PAGE_LOGIN,
	BOXES_PROPERTIES_PAGE_SYSTEM,
	BOXES_PROPERTIES_PAGE_DISPLAY,
	BOXES_PROPERTIES_PAGE_DEVICES,
	BOXES_PROPERTIES_PAGE_LAST
} BoxesPropertiesPage;

typedef enum  {
	PROPERTY_CREATION_FLAG_NONE = 1 << 0,
	PROPERTY_CREATION_FLAG_NO_USB = 1 << 1
} PropertyCreationFlag;

struct _BoxesIPropertiesProviderIface {
	GTypeInterface parent_iface;
	GList* (*get_properties) (BoxesIPropertiesProvider* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
};

typedef enum  {
	BOXES_MACHINE_CONNECT_FLAGS_NONE = 0,
	BOXES_MACHINE_CONNECT_FLAGS_IGNORE_SAVED_STATE = 1 << 0
} BoxesMachineConnectFlags;

struct _BoxesMachine {
	BoxesCollectionItem parent_instance;
	BoxesMachinePrivate * priv;
	BoxesCollectionSource* source;
	BoxesBoxConfig* config;
	gboolean stay_on_display;
	gboolean suspend_at_exit;
	gboolean deleted;
};

struct _BoxesMachineClass {
	BoxesCollectionItemClass parent_class;
	void (*save_real) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*save_real_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*take_screenshot) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	GdkPixbuf* (*take_screenshot_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	GList* (*get_properties) (BoxesMachine* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
	void (*connect_display) (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connect_display_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*disconnect_display) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
};

struct _BoxesOvirtMachine {
	BoxesMachine parent_instance;
	BoxesOvirtMachinePrivate * priv;
};

struct _BoxesOvirtMachineClass {
	BoxesMachineClass parent_class;
};

struct _BoxesOvirtMachinePrivate {
	OvirtVm* vm;
	OvirtProxy* proxy;
};

typedef enum  {
	BOXES_MACHINE_MACHINE_STATE_UNKNOWN,
	BOXES_MACHINE_MACHINE_STATE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_FORCE_STOPPED,
	BOXES_MACHINE_MACHINE_STATE_RUNNING,
	BOXES_MACHINE_MACHINE_STATE_PAUSED,
	BOXES_MACHINE_MACHINE_STATE_SAVED,
	BOXES_MACHINE_MACHINE_STATE_SLEEPING
} BoxesMachineMachineState;

struct _BoxesOvirtMachineConnectDisplayData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	BoxesOvirtMachine* self;
	BoxesMachineConnectFlags flags;
	BoxesDisplay* _tmp0_;
	BoxesDisplay* _tmp1_;
	GCancellable* _tmp2_;
	GCancellable* _tmp3_;
	BoxesMachineMachineState _tmp4_;
	BoxesMachineMachineState _tmp5_;
	OvirtVm* _tmp6_;
	OvirtProxy* _tmp7_;
	GCancellable* _tmp8_;
	GCancellable* _tmp9_;
	GError* _error_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	GError* _vala1__error_;
	OvirtVm* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	gchar* _tmp15_;
	GError* _tmp16_;
	const gchar* _tmp17_;
	GError* _tmp18_;
	GError* _tmp19_;
	BoxesMachineMachineState _tmp20_;
	BoxesMachineMachineState _tmp21_;
	OvirtVm* _tmp22_;
	gchar* _tmp23_;
	gchar* _tmp24_;
	gchar* _tmp25_;
	GError* _tmp26_;
	GError* _tmp27_;
	BoxesDisplay* _tmp28_;
	BoxesDisplay* _tmp29_;
	BoxesDisplay* _tmp30_;
	OvirtVm* _tmp31_;
	OvirtVmDisplay* _tmp32_;
	OvirtVmDisplay* _tmp33_;
	OvirtVmDisplay* _tmp34_;
	OvirtVmDisplayType _tmp35_;
	OvirtVmDisplayType _tmp36_;
	gboolean _tmp37_;
	OvirtVm* _tmp38_;
	OvirtProxy* _tmp39_;
	GCancellable* _tmp40_;
	GCancellable* _tmp41_;
	BoxesDisplay* _tmp42_;
	BoxesDisplay* _tmp43_;
	OvirtVm* _tmp44_;
	OvirtVmDisplay* _tmp45_;
	OvirtVmDisplay* _tmp46_;
	OvirtVmDisplay* _tmp47_;
	gchar* _tmp48_;
	gchar* _tmp49_;
	gchar* _tmp50_;
	BoxesDisplay* _tmp51_;
	BoxesDisplay* _tmp52_;
	GError* _vala2__error_;
	const gchar* _tmp53_;
	const gchar* _tmp54_;
	GError* e;
	GError* _tmp55_;
	const gchar* _tmp56_;
	GError* _tmp57_;
	GError * _inner_error_;
};


static gpointer boxes_ovirt_machine_parent_class = NULL;

GType boxes_ui_get_type (void) G_GNUC_CONST;
GType boxes_collection_item_get_type (void) G_GNUC_CONST;
GType boxes_properties_page_get_type (void) G_GNUC_CONST;
GType property_creation_flag_get_type (void) G_GNUC_CONST;
GType boxes_property_get_type (void) G_GNUC_CONST;
GType boxes_iproperties_provider_get_type (void) G_GNUC_CONST;
GType boxes_machine_get_type (void) G_GNUC_CONST;
GType boxes_machine_connect_flags_get_type (void) G_GNUC_CONST;
GType boxes_ovirt_machine_get_type (void) G_GNUC_CONST;
#define BOXES_OVIRT_MACHINE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachinePrivate))
enum  {
	BOXES_OVIRT_MACHINE_DUMMY_PROPERTY
};
BoxesOvirtMachine* boxes_ovirt_machine_new (BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error);
BoxesOvirtMachine* boxes_ovirt_machine_construct (GType object_type, BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error);
BoxesMachine* boxes_machine_construct (GType object_type, BoxesCollectionSource* source, const gchar* name);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
void boxes_machine_create_display_config (BoxesMachine* self, const gchar* uuid);
static void boxes_ovirt_machine_update_state (BoxesOvirtMachine* self);
void boxes_machine_load_screenshot (BoxesMachine* self);
void boxes_machine_set_screenshot_enable (BoxesMachine* self, gboolean enable);
static void boxes_ovirt_machine_real_connect_display_data_free (gpointer _data);
static void boxes_ovirt_machine_real_connect_display (BoxesMachine* base, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_ovirt_machine_real_connect_display_co (BoxesOvirtMachineConnectDisplayData* _data_);
GType boxes_display_get_type (void) G_GNUC_CONST;
BoxesDisplay* boxes_machine_get_display (BoxesMachine* self);
GCancellable* boxes_machine_get_connecting_cancellable (BoxesMachine* self);
GType boxes_machine_machine_state_get_type (void) G_GNUC_CONST;
BoxesMachineMachineState boxes_machine_get_state (BoxesMachine* self);
static void boxes_ovirt_machine_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static BoxesDisplay* boxes_ovirt_machine_create_display_connection (BoxesOvirtMachine* self, GError** error);
void boxes_machine_set_display (BoxesMachine* self, BoxesDisplay* value);
void boxes_display_set_password (BoxesDisplay* self, const gchar* value);
void boxes_display_connect_it (BoxesDisplay* self, GError** error);
static GList* boxes_ovirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag* flags);
GType boxes_string_property_get_type (void) G_GNUC_CONST;
BoxesStringProperty* boxes_iproperties_provider_add_string_property (BoxesIPropertiesProvider* self, GList** list, const gchar* name, const gchar* value);
gchar* boxes_display_get_uri (BoxesDisplay* self);
const gchar* boxes_display_get_protocol (BoxesDisplay* self);
GList* boxes_display_get_properties (BoxesDisplay* self, BoxesPropertiesPage page, PropertyCreationFlag* flags);
static void _g_object_unref0_ (gpointer var);
static void _g_list_free__g_object_unref0_ (GList* self);
GType boxes_spice_display_get_type (void) G_GNUC_CONST;
BoxesSpiceDisplay* boxes_spice_display_new (BoxesBoxConfig* config, const gchar* host, gint port, gint tls_port, const gchar* host_subject);
BoxesSpiceDisplay* boxes_spice_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port, gint tls_port, const gchar* host_subject);
void boxes_spice_display_set_ca_cert (BoxesSpiceDisplay* self, GByteArray* value);
BoxesVncDisplay* boxes_vnc_display_new (BoxesBoxConfig* config, const gchar* host, gint port);
BoxesVncDisplay* boxes_vnc_display_construct (GType object_type, BoxesBoxConfig* config, const gchar* host, gint port);
GType boxes_vnc_display_get_type (void) G_GNUC_CONST;
void boxes_machine_set_state (BoxesMachine* self, BoxesMachineMachineState value);
static void boxes_ovirt_machine_finalize (GObject* obj);


static gpointer _g_object_ref0 (gpointer self) {
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return self ? g_object_ref (self) : NULL;
#line 357 "ovirt-machine.c"
}


BoxesOvirtMachine* boxes_ovirt_machine_construct (GType object_type, BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error) {
	BoxesOvirtMachine * self = NULL;
	BoxesCollectionSource* _tmp0_ = NULL;
	OvirtVm* _tmp1_ = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	const gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	OvirtVm* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	OvirtProxy* _tmp13_ = NULL;
	OvirtProxy* _tmp14_ = NULL;
	OvirtVm* _tmp15_ = NULL;
	OvirtVm* _tmp16_ = NULL;
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_val_if_fail (source != NULL, NULL);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_val_if_fail (proxy != NULL, NULL);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_val_if_fail (vm != NULL, NULL);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp0_ = source;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp1_ = vm;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get ((OvirtResource*) _tmp1_, "name", &_tmp2_, NULL);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp4_ = _tmp3_;
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self = (BoxesOvirtMachine*) boxes_machine_construct (object_type, _tmp0_, _tmp4_);
#line 12 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_free0 (_tmp4_);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp5_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp6_ = _tmp5_;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp7_ = g_strconcat ("new ovirt machine: ", _tmp6_, NULL);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp8_ = _tmp7_;
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_debug ("ovirt-machine.vala:14: %s", _tmp8_);
#line 14 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_free0 (_tmp8_);
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp9_ = vm;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get ((OvirtResource*) _tmp9_, "guid", &_tmp10_, NULL);
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp11_ = _tmp10_;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp12_ = _tmp11_;
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_machine_create_display_config ((BoxesMachine*) self, _tmp12_);
#line 15 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_free0 (_tmp12_);
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp13_ = proxy;
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp14_ = _g_object_ref0 (_tmp13_);
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (self->priv->proxy);
#line 16 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self->priv->proxy = _tmp14_;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp15_ = vm;
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp16_ = _g_object_ref0 (_tmp15_);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (self->priv->vm);
#line 17 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self->priv->vm = _tmp16_;
#line 19 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_ovirt_machine_update_state (self);
#line 21 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_machine_load_screenshot ((BoxesMachine*) self);
#line 22 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_machine_set_screenshot_enable ((BoxesMachine*) self, TRUE);
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return self;
#line 448 "ovirt-machine.c"
}


BoxesOvirtMachine* boxes_ovirt_machine_new (BoxesCollectionSource* source, OvirtProxy* proxy, OvirtVm* vm, GError** error) {
#line 9 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return boxes_ovirt_machine_construct (BOXES_TYPE_OVIRT_MACHINE, source, proxy, vm, error);
#line 455 "ovirt-machine.c"
}


static void boxes_ovirt_machine_real_connect_display_data_free (gpointer _data) {
	BoxesOvirtMachineConnectDisplayData* _data_;
	_data_ = _data;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (_data_->self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_slice_free (BoxesOvirtMachineConnectDisplayData, _data_);
#line 466 "ovirt-machine.c"
}


static void boxes_ovirt_machine_real_connect_display (BoxesMachine* base, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesOvirtMachine * self;
	BoxesOvirtMachineConnectDisplayData* _data_;
	BoxesOvirtMachine* _tmp0_ = NULL;
	BoxesMachineConnectFlags _tmp1_ = 0;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self = (BoxesOvirtMachine*) base;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_ = g_slice_new0 (BoxesOvirtMachineConnectDisplayData);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, boxes_ovirt_machine_real_connect_display);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, boxes_ovirt_machine_real_connect_display_data_free);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->self = _tmp0_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp1_ = flags;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->flags = _tmp1_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_ovirt_machine_real_connect_display_co (_data_);
#line 493 "ovirt-machine.c"
}


static void boxes_ovirt_machine_real_connect_display_finish (BoxesMachine* base, GAsyncResult* _res_, GError** error) {
	BoxesOvirtMachineConnectDisplayData* _data_;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return;
#line 503 "ovirt-machine.c"
	}
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 507 "ovirt-machine.c"
}


static void boxes_ovirt_machine_connect_display_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	BoxesOvirtMachineConnectDisplayData* _data_;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_ = _user_data_;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_source_object_ = source_object;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_res_ = _res_;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_ovirt_machine_real_connect_display_co (_data_);
#line 521 "ovirt-machine.c"
}


static gboolean boxes_ovirt_machine_real_connect_display_co (BoxesOvirtMachineConnectDisplayData* _data_) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	switch (_data_->_state_) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case 0:
#line 530 "ovirt-machine.c"
		goto _state_0;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case 1:
#line 534 "ovirt-machine.c"
		goto _state_1;
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case 2:
#line 538 "ovirt-machine.c"
		goto _state_2;
		default:
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_assert_not_reached ();
#line 543 "ovirt-machine.c"
	}
	_state_0:
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp0_ = NULL;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp0_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp1_ = NULL;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 26 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_tmp1_ != NULL) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 560 "ovirt-machine.c"
		} else {
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 564 "ovirt-machine.c"
		}
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 27 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return FALSE;
#line 570 "ovirt-machine.c"
	}
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp2_ = NULL;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp2_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp3_ = NULL;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 29 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_cancellable_reset (_data_->_tmp3_);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp4_ = 0;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp4_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp5_ = 0;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 31 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_tmp5_ == BOXES_MACHINE_MACHINE_STATE_STOPPED) {
#line 592 "ovirt-machine.c"
		{
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp6_ = NULL;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp6_ = _data_->self->priv->vm;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp7_ = NULL;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp7_ = _data_->self->priv->proxy;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp8_ = NULL;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp8_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp9_ = NULL;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp9_ = _data_->_tmp8_;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_state_ = 1;
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			ovirt_vm_start_async (_data_->_tmp6_, _data_->_tmp7_, _data_->_tmp9_, boxes_ovirt_machine_connect_display_ready, _data_);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return FALSE;
#line 616 "ovirt-machine.c"
			_state_1:
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			ovirt_vm_start_finish (_data_->_tmp6_, _data_->_res_, &_data_->_inner_error_);
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 33 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
				if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 624 "ovirt-machine.c"
					goto __catch117_g_io_error_cancelled;
				}
				goto __catch117_g_error;
			}
#line 34 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_ovirt_machine_update_state (_data_->self);
#line 631 "ovirt-machine.c"
		}
		goto __finally117;
		__catch117_g_io_error_cancelled:
		{
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_error_ = _data_->_inner_error_;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_inner_error_ = NULL;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp10_ = NULL;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp10_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp11_ = NULL;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp11_ = _data_->_tmp10_;
#line 36 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_debug ("ovirt-machine.vala:36: connection to %s was cancelled", _data_->_tmp11_);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_error_free0 (_data_->_error_);
#line 652 "ovirt-machine.c"
		}
		goto __finally117;
		__catch117_g_error:
		{
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_vala1__error_ = _data_->_inner_error_;
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_inner_error_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp12_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp12_ = _data_->self->priv->vm;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp13_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get ((OvirtResource*) _data_->_tmp12_, "name", &_data_->_tmp13_, NULL);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp14_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp14_ = _data_->_tmp13_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp15_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp15_ = _data_->_tmp14_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp16_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp16_ = _data_->_vala1__error_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp17_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp17_ = _data_->_tmp16_->message;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp18_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp18_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "Couldn't start oVirt VM '%s': %s", _data_->_tmp15_, _data_->_tmp17_);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp19_ = NULL;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp19_ = _data_->_tmp18_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_data_->_tmp15_);
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_inner_error_ = _data_->_tmp19_;
#line 38 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_error_free0 (_data_->_vala1__error_);
#line 699 "ovirt-machine.c"
			goto __finally117;
		}
		__finally117:
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_error_free (_data_->_inner_error_);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (_data_->_state_ == 0) {
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
				g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 713 "ovirt-machine.c"
			} else {
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
				g_simple_async_result_complete (_data_->_async_result);
#line 717 "ovirt-machine.c"
			}
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_unref (_data_->_async_result);
#line 32 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return FALSE;
#line 723 "ovirt-machine.c"
		}
	}
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp20_ = 0;
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp20_ = boxes_machine_get_state ((BoxesMachine*) _data_->self);
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp21_ = 0;
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_data_->_tmp21_ = _data_->_tmp20_;
#line 41 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_tmp21_ != BOXES_MACHINE_MACHINE_STATE_RUNNING) {
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp22_ = NULL;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp22_ = _data_->self->priv->vm;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp23_ = NULL;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get ((OvirtResource*) _data_->_tmp22_, "name", &_data_->_tmp23_, NULL);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp24_ = NULL;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp24_ = _data_->_tmp23_;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp25_ = NULL;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp25_ = _data_->_tmp24_;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp26_ = NULL;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp26_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "oVirt VM '%s' is not RUNNING", _data_->_tmp25_);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp27_ = NULL;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp27_ = _data_->_tmp26_;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_free0 (_data_->_tmp25_);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_inner_error_ = _data_->_tmp27_;
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 772 "ovirt-machine.c"
		} else {
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 776 "ovirt-machine.c"
		}
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 42 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return FALSE;
#line 782 "ovirt-machine.c"
	}
	{
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp29_ = NULL;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp29_ = boxes_ovirt_machine_create_display_connection (_data_->self, &_data_->_inner_error_);
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp28_ = _data_->_tmp29_;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 795 "ovirt-machine.c"
				goto __catch118_g_io_error_cancelled;
			}
			goto __catch118_g_error;
		}
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp30_ = NULL;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp30_ = _data_->_tmp28_;
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		boxes_machine_set_display ((BoxesMachine*) _data_->self, _data_->_tmp30_);
#line 45 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_object_unref0 (_data_->_tmp30_);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp31_ = NULL;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp31_ = _data_->self->priv->vm;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp32_ = NULL;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_data_->_tmp31_, "display", &_data_->_tmp32_, NULL);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp33_ = NULL;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp33_ = _data_->_tmp32_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp34_ = NULL;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp34_ = _data_->_tmp33_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp35_ = 0;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_data_->_tmp34_, "type", &_data_->_tmp35_, NULL);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp36_ = 0;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp36_ = _data_->_tmp35_;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp37_ = FALSE;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp37_ = _data_->_tmp36_ == OVIRT_VM_DISPLAY_SPICE;
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_object_unref0 (_data_->_tmp34_);
#line 46 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_tmp37_) {
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp38_ = NULL;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp38_ = _data_->self->priv->vm;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp39_ = NULL;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp39_ = _data_->self->priv->proxy;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp40_ = NULL;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp40_ = boxes_machine_get_connecting_cancellable ((BoxesMachine*) _data_->self);
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp41_ = NULL;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp41_ = _data_->_tmp40_;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_state_ = 2;
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			ovirt_vm_get_ticket_async (_data_->_tmp38_, _data_->_tmp39_, _data_->_tmp41_, boxes_ovirt_machine_connect_display_ready, _data_);
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return FALSE;
#line 862 "ovirt-machine.c"
			_state_2:
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			ovirt_vm_get_ticket_finish (_data_->_tmp38_, _data_->_res_, &_data_->_inner_error_);
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (_data_->_inner_error_ != NULL) {
#line 47 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
				if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 870 "ovirt-machine.c"
					goto __catch118_g_io_error_cancelled;
				}
				goto __catch118_g_error;
			}
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp42_ = NULL;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp42_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp43_ = NULL;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp43_ = _data_->_tmp42_;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp44_ = NULL;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp44_ = _data_->self->priv->vm;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp45_ = NULL;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_data_->_tmp44_, "display", &_data_->_tmp45_, NULL);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp46_ = NULL;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp46_ = _data_->_tmp45_;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp47_ = NULL;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp47_ = _data_->_tmp46_;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp48_ = NULL;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_data_->_tmp47_, "ticket", &_data_->_tmp48_, NULL);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp49_ = NULL;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp49_ = _data_->_tmp48_;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp50_ = NULL;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_data_->_tmp50_ = _data_->_tmp49_;
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_display_set_password (_data_->_tmp43_, _data_->_tmp50_);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_data_->_tmp50_);
#line 48 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_data_->_tmp47_);
#line 917 "ovirt-machine.c"
		}
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp51_ = NULL;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp51_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp52_ = NULL;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp52_ = _data_->_tmp51_;
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		boxes_display_connect_it (_data_->_tmp52_, &_data_->_inner_error_);
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_inner_error_ != NULL) {
#line 51 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			if (g_error_matches (_data_->_inner_error_, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
#line 933 "ovirt-machine.c"
				goto __catch118_g_io_error_cancelled;
			}
			goto __catch118_g_error;
		}
	}
	goto __finally118;
	__catch118_g_io_error_cancelled:
	{
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_vala2__error_ = _data_->_inner_error_;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp53_ = NULL;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp53_ = boxes_collection_item_get_name ((BoxesCollectionItem*) _data_->self);
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp54_ = NULL;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp54_ = _data_->_tmp53_;
#line 53 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_debug ("ovirt-machine.vala:53: connection to %s was cancelled", _data_->_tmp54_);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_error_free0 (_data_->_vala2__error_);
#line 958 "ovirt-machine.c"
	}
	goto __finally118;
	__catch118_g_error:
	{
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->e = _data_->_inner_error_;
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_inner_error_ = NULL;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp55_ = NULL;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp55_ = _data_->e;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp56_ = NULL;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp56_ = _data_->_tmp55_->message;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp57_ = NULL;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_tmp57_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "Error opening display: %s", _data_->_tmp56_);
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_data_->_inner_error_ = _data_->_tmp57_;
#line 55 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_error_free0 (_data_->e);
#line 983 "ovirt-machine.c"
		goto __finally118;
	}
	__finally118:
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_inner_error_ != NULL) {
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_error_free (_data_->_inner_error_);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		if (_data_->_state_ == 0) {
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 997 "ovirt-machine.c"
		} else {
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1001 "ovirt-machine.c"
		}
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_unref (_data_->_async_result);
#line 44 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return FALSE;
#line 1007 "ovirt-machine.c"
	}
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_data_->_state_ == 0) {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1013 "ovirt-machine.c"
	} else {
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 1017 "ovirt-machine.c"
	}
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_unref (_data_->_async_result);
#line 25 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return FALSE;
#line 1023 "ovirt-machine.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 1030 "ovirt-machine.c"
}


static void _g_list_free__g_object_unref0_ (GList* self) {
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_list_free (self);
#line 1039 "ovirt-machine.c"
}


static GList* boxes_ovirt_machine_real_get_properties (BoxesMachine* base, BoxesPropertiesPage page, PropertyCreationFlag* flags) {
	BoxesOvirtMachine * self;
	GList* result = NULL;
	GList* list = NULL;
	BoxesPropertiesPage _tmp0_ = 0;
	BoxesDisplay* _tmp23_ = NULL;
	BoxesDisplay* _tmp24_ = NULL;
	BoxesPropertiesPage _tmp25_ = 0;
	GList* _tmp26_ = NULL;
#line 59 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self = (BoxesOvirtMachine*) base;
#line 60 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	list = NULL;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp0_ = page;
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	switch (_tmp0_) {
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_LOGIN:
#line 1062 "ovirt-machine.c"
		{
			const gchar* _tmp1_ = NULL;
			BoxesCollectionSource* _tmp2_ = NULL;
			gchar* _tmp3_ = NULL;
			gchar* _tmp4_ = NULL;
			gchar* _tmp5_ = NULL;
			BoxesStringProperty* _tmp6_ = NULL;
			BoxesStringProperty* _tmp7_ = NULL;
			const gchar* _tmp8_ = NULL;
			BoxesDisplay* _tmp9_ = NULL;
			BoxesDisplay* _tmp10_ = NULL;
			gchar* _tmp11_ = NULL;
			gchar* _tmp12_ = NULL;
			gchar* _tmp13_ = NULL;
			BoxesStringProperty* _tmp14_ = NULL;
			BoxesStringProperty* _tmp15_ = NULL;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp1_ = _ ("Virtualizer");
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp2_ = ((BoxesMachine*) self)->source;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp3_ = boxes_collection_source_get_uri (_tmp2_);
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp4_ = _tmp3_;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp5_ = _tmp4_;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp6_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp1_, _tmp5_);
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp7_ = _tmp6_;
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp7_);
#line 64 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp5_);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp8_ = _ ("URI");
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp9_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp10_ = _tmp9_;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp11_ = boxes_display_get_uri (_tmp10_);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp12_ = _tmp11_;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp13_ = _tmp12_;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp14_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp8_, _tmp13_);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp15_ = _tmp14_;
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp15_);
#line 65 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp13_);
#line 66 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1119 "ovirt-machine.c"
		}
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case BOXES_PROPERTIES_PAGE_DISPLAY:
#line 1123 "ovirt-machine.c"
		{
			const gchar* _tmp16_ = NULL;
			BoxesDisplay* _tmp17_ = NULL;
			BoxesDisplay* _tmp18_ = NULL;
			const gchar* _tmp19_ = NULL;
			const gchar* _tmp20_ = NULL;
			BoxesStringProperty* _tmp21_ = NULL;
			BoxesStringProperty* _tmp22_ = NULL;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp16_ = _ ("Protocol");
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp17_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp18_ = _tmp17_;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp19_ = boxes_display_get_protocol (_tmp18_);
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp20_ = _tmp19_;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp21_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _tmp16_, _tmp20_);
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp22_ = _tmp21_;
#line 69 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp22_);
#line 70 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1150 "ovirt-machine.c"
		}
		default:
#line 62 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		break;
#line 1155 "ovirt-machine.c"
	}
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp23_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp24_ = _tmp23_;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp25_ = page;
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp26_ = boxes_display_get_properties (_tmp24_, _tmp25_, flags);
#line 73 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	list = g_list_concat (list, _tmp26_);
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	result = list;
#line 75 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	return result;
#line 1171 "ovirt-machine.c"
}


static BoxesDisplay* boxes_ovirt_machine_create_display_connection (BoxesOvirtMachine* self, GError** error) {
	BoxesDisplay* result = NULL;
	gboolean _tmp0_ = FALSE;
	OvirtVm* _tmp1_ = NULL;
	OvirtVmDisplay* _tmp2_ = NULL;
	OvirtVmDisplay* _tmp3_ = NULL;
	OvirtVmDisplay* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gboolean _tmp8_ = FALSE;
	gboolean _tmp16_ = FALSE;
	OvirtVm* _tmp23_ = NULL;
	OvirtVmDisplay* _tmp24_ = NULL;
	OvirtVmDisplay* _tmp25_ = NULL;
	OvirtVmDisplay* _tmp26_ = NULL;
	OvirtVmDisplayType _tmp27_ = 0;
	OvirtVmDisplayType _tmp28_ = 0;
	OvirtVmDisplayType _tmp29_ = 0;
	GError * _inner_error_ = NULL;
#line 78 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp1_ = self->priv->vm;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp1_, "display", &_tmp2_, NULL);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp3_ = _tmp2_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp4_ = _tmp3_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp4_, "address", &_tmp5_, NULL);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp6_ = _tmp5_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp7_ = _tmp6_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp8_ = _tmp7_ == NULL;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_free0 (_tmp7_);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (_tmp4_);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_tmp8_) {
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp0_ = TRUE;
#line 1221 "ovirt-machine.c"
	} else {
		OvirtVm* _tmp9_ = NULL;
		OvirtVmDisplay* _tmp10_ = NULL;
		OvirtVmDisplay* _tmp11_ = NULL;
		OvirtVmDisplay* _tmp12_ = NULL;
		gchar* _tmp13_ = NULL;
		gchar* _tmp14_ = NULL;
		gchar* _tmp15_ = NULL;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp9_ = self->priv->vm;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_tmp9_, "display", &_tmp10_, NULL);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp11_ = _tmp10_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp12_ = _tmp11_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get (_tmp12_, "address", &_tmp13_, NULL);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp14_ = _tmp13_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp15_ = _tmp14_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp0_ = g_strcmp0 (_tmp15_, "") == 0;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_free0 (_tmp15_);
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_object_unref0 (_tmp12_);
#line 1250 "ovirt-machine.c"
	}
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp16_ = _tmp0_;
#line 79 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	if (_tmp16_) {
#line 1256 "ovirt-machine.c"
		OvirtVm* _tmp17_ = NULL;
		gchar* _tmp18_ = NULL;
		gchar* _tmp19_ = NULL;
		gchar* _tmp20_ = NULL;
		GError* _tmp21_ = NULL;
		GError* _tmp22_ = NULL;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp17_ = self->priv->vm;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_object_get ((OvirtResource*) _tmp17_, "name", &_tmp18_, NULL);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp19_ = _tmp18_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp20_ = _tmp19_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp21_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "empty display address for %s", _tmp20_);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_tmp22_ = _tmp21_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_g_free0 (_tmp20_);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		_inner_error_ = _tmp22_;
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		g_propagate_error (error, _inner_error_);
#line 80 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		return NULL;
#line 1283 "ovirt-machine.c"
	}
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp23_ = self->priv->vm;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp23_, "display", &_tmp24_, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp25_ = _tmp24_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp26_ = _tmp25_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp26_, "type", &_tmp27_, NULL);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp28_ = _tmp27_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp29_ = _tmp28_;
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (_tmp26_);
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	switch (_tmp29_) {
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case OVIRT_VM_DISPLAY_SPICE:
#line 1305 "ovirt-machine.c"
		{
			BoxesSpiceDisplay* display = NULL;
			BoxesBoxConfig* _tmp30_ = NULL;
			OvirtVm* _tmp31_ = NULL;
			OvirtVmDisplay* _tmp32_ = NULL;
			OvirtVmDisplay* _tmp33_ = NULL;
			OvirtVmDisplay* _tmp34_ = NULL;
			gchar* _tmp35_ = NULL;
			gchar* _tmp36_ = NULL;
			gchar* _tmp37_ = NULL;
			OvirtVm* _tmp38_ = NULL;
			OvirtVmDisplay* _tmp39_ = NULL;
			OvirtVmDisplay* _tmp40_ = NULL;
			OvirtVmDisplay* _tmp41_ = NULL;
			guint _tmp42_ = 0U;
			guint _tmp43_ = 0U;
			OvirtVm* _tmp44_ = NULL;
			OvirtVmDisplay* _tmp45_ = NULL;
			OvirtVmDisplay* _tmp46_ = NULL;
			OvirtVmDisplay* _tmp47_ = NULL;
			guint _tmp48_ = 0U;
			guint _tmp49_ = 0U;
			OvirtVm* _tmp50_ = NULL;
			OvirtVmDisplay* _tmp51_ = NULL;
			OvirtVmDisplay* _tmp52_ = NULL;
			OvirtVmDisplay* _tmp53_ = NULL;
			gchar* _tmp54_ = NULL;
			gchar* _tmp55_ = NULL;
			gchar* _tmp56_ = NULL;
			BoxesSpiceDisplay* _tmp57_ = NULL;
			BoxesSpiceDisplay* _tmp58_ = NULL;
			BoxesSpiceDisplay* _tmp59_ = NULL;
			OvirtProxy* _tmp60_ = NULL;
			GByteArray* _tmp61_ = NULL;
			GByteArray* _tmp62_ = NULL;
			GByteArray* _tmp63_ = NULL;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp30_ = ((BoxesMachine*) self)->config;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp31_ = self->priv->vm;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp31_, "display", &_tmp32_, NULL);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp33_ = _tmp32_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp34_ = _tmp33_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp34_, "address", &_tmp35_, NULL);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp36_ = _tmp35_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp37_ = _tmp36_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp38_ = self->priv->vm;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp38_, "display", &_tmp39_, NULL);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp40_ = _tmp39_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp41_ = _tmp40_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp41_, "port", &_tmp42_, NULL);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp43_ = _tmp42_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp44_ = self->priv->vm;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp44_, "display", &_tmp45_, NULL);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp46_ = _tmp45_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp47_ = _tmp46_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp47_, "secure-port", &_tmp48_, NULL);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp49_ = _tmp48_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp50_ = self->priv->vm;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp50_, "display", &_tmp51_, NULL);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp52_ = _tmp51_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp53_ = _tmp52_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp53_, "host-subject", &_tmp54_, NULL);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp55_ = _tmp54_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp56_ = _tmp55_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp57_ = boxes_spice_display_new (_tmp30_, _tmp37_, (gint) _tmp43_, (gint) _tmp49_, _tmp56_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp58_ = _tmp57_;
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp56_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp53_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp47_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp41_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp37_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp34_);
#line 84 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			display = _tmp58_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp59_ = display;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp60_ = self->priv->proxy;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp60_, "ca-cert", &_tmp61_, NULL);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp62_ = _tmp61_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp63_ = _tmp62_;
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_spice_display_set_ca_cert (_tmp59_, _tmp63_);
#line 89 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_byte_array_unref0 (_tmp63_);
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			result = (BoxesDisplay*) display;
#line 90 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return result;
#line 1432 "ovirt-machine.c"
		}
#line 82 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case OVIRT_VM_DISPLAY_VNC:
#line 1436 "ovirt-machine.c"
		{
			BoxesBoxConfig* _tmp64_ = NULL;
			OvirtVm* _tmp65_ = NULL;
			OvirtVmDisplay* _tmp66_ = NULL;
			OvirtVmDisplay* _tmp67_ = NULL;
			OvirtVmDisplay* _tmp68_ = NULL;
			gchar* _tmp69_ = NULL;
			gchar* _tmp70_ = NULL;
			gchar* _tmp71_ = NULL;
			OvirtVm* _tmp72_ = NULL;
			OvirtVmDisplay* _tmp73_ = NULL;
			OvirtVmDisplay* _tmp74_ = NULL;
			OvirtVmDisplay* _tmp75_ = NULL;
			guint _tmp76_ = 0U;
			guint _tmp77_ = 0U;
			BoxesVncDisplay* _tmp78_ = NULL;
			BoxesDisplay* _tmp79_ = NULL;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp64_ = ((BoxesMachine*) self)->config;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp65_ = self->priv->vm;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp65_, "display", &_tmp66_, NULL);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp67_ = _tmp66_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp68_ = _tmp67_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp68_, "address", &_tmp69_, NULL);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp70_ = _tmp69_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp71_ = _tmp70_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp72_ = self->priv->vm;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp72_, "display", &_tmp73_, NULL);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp74_ = _tmp73_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp75_ = _tmp74_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp75_, "port", &_tmp76_, NULL);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp77_ = _tmp76_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp78_ = boxes_vnc_display_new (_tmp64_, _tmp71_, (gint) _tmp77_);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp79_ = (BoxesDisplay*) _tmp78_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp75_);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp71_);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp68_);
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			result = _tmp79_;
#line 93 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return result;
#line 1496 "ovirt-machine.c"
		}
		default:
		{
			OvirtVm* _tmp80_ = NULL;
			OvirtVmDisplay* _tmp81_ = NULL;
			OvirtVmDisplay* _tmp82_ = NULL;
			OvirtVmDisplay* _tmp83_ = NULL;
			OvirtVmDisplayType _tmp84_ = 0;
			OvirtVmDisplayType _tmp85_ = 0;
			OvirtVm* _tmp86_ = NULL;
			OvirtVmDisplay* _tmp87_ = NULL;
			OvirtVmDisplay* _tmp88_ = NULL;
			OvirtVmDisplay* _tmp89_ = NULL;
			OvirtVmDisplayType _tmp90_ = 0;
			OvirtVmDisplayType _tmp91_ = 0;
			OvirtVm* _tmp92_ = NULL;
			gchar* _tmp93_ = NULL;
			gchar* _tmp94_ = NULL;
			gchar* _tmp95_ = NULL;
			GError* _tmp96_ = NULL;
			GError* _tmp97_ = NULL;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp80_ = self->priv->vm;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp80_, "display", &_tmp81_, NULL);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp82_ = _tmp81_;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp83_ = _tmp82_;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp83_, "type", &_tmp84_, NULL);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp85_ = _tmp84_;
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_warning ("ovirt-machine.vala:96: unsupported display of type %d", (gint) _tmp85_);
#line 96 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp83_);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp86_ = self->priv->vm;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp86_, "display", &_tmp87_, NULL);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp88_ = _tmp87_;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp89_ = _tmp88_;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get (_tmp89_, "type", &_tmp90_, NULL);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp91_ = _tmp90_;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp92_ = self->priv->vm;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_object_get ((OvirtResource*) _tmp92_, "name", &_tmp93_, NULL);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp94_ = _tmp93_;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp95_ = _tmp94_;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp96_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "unsupported display type %d for %s", _tmp91_, _tmp95_);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_tmp97_ = _tmp96_;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_free0 (_tmp95_);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_g_object_unref0 (_tmp89_);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			_inner_error_ = _tmp97_;
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 97 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			return NULL;
#line 1568 "ovirt-machine.c"
		}
	}
}


static void boxes_ovirt_machine_update_state (BoxesOvirtMachine* self) {
	OvirtVm* _tmp0_ = NULL;
	OvirtVmState _tmp1_ = 0;
	OvirtVmState _tmp2_ = 0;
#line 100 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_return_if_fail (self != NULL);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp0_ = self->priv->vm;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_object_get (_tmp0_, "state", &_tmp1_, NULL);
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_tmp2_ = _tmp1_;
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	switch (_tmp2_) {
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case OVIRT_VM_STATE_UP:
#line 1590 "ovirt-machine.c"
		{
#line 103 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 104 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1596 "ovirt-machine.c"
		}
#line 101 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
		case OVIRT_VM_STATE_DOWN:
#line 1600 "ovirt-machine.c"
		{
#line 106 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_STOPPED);
#line 107 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1606 "ovirt-machine.c"
		}
		default:
		{
#line 109 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_UNKNOWN);
#line 110 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
			break;
#line 1614 "ovirt-machine.c"
		}
	}
}


static void boxes_ovirt_machine_class_init (BoxesOvirtMachineClass * klass) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	boxes_ovirt_machine_parent_class = g_type_class_peek_parent (klass);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	g_type_class_add_private (klass, sizeof (BoxesOvirtMachinePrivate));
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->connect_display = boxes_ovirt_machine_real_connect_display;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->connect_display_finish = boxes_ovirt_machine_real_connect_display_finish;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_properties = boxes_ovirt_machine_real_get_properties;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	G_OBJECT_CLASS (klass)->finalize = boxes_ovirt_machine_finalize;
#line 1633 "ovirt-machine.c"
}


static void boxes_ovirt_machine_instance_init (BoxesOvirtMachine * self) {
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self->priv = BOXES_OVIRT_MACHINE_GET_PRIVATE (self);
#line 1640 "ovirt-machine.c"
}


static void boxes_ovirt_machine_finalize (GObject* obj) {
	BoxesOvirtMachine * self;
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, BOXES_TYPE_OVIRT_MACHINE, BoxesOvirtMachine);
#line 6 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (self->priv->vm);
#line 7 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	_g_object_unref0 (self->priv->proxy);
#line 5 "/extra-data/checkout/gnome/gnome-boxes/src/ovirt-machine.vala"
	G_OBJECT_CLASS (boxes_ovirt_machine_parent_class)->finalize (obj);
#line 1654 "ovirt-machine.c"
}


GType boxes_ovirt_machine_get_type (void) {
	static volatile gsize boxes_ovirt_machine_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_ovirt_machine_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesOvirtMachineClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_ovirt_machine_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesOvirtMachine), 0, (GInstanceInitFunc) boxes_ovirt_machine_instance_init, NULL };
		GType boxes_ovirt_machine_type_id;
		boxes_ovirt_machine_type_id = g_type_register_static (BOXES_TYPE_MACHINE, "BoxesOvirtMachine", &g_define_type_info, 0);
		g_once_init_leave (&boxes_ovirt_machine_type_id__volatile, boxes_ovirt_machine_type_id);
	}
	return boxes_ovirt_machine_type_id__volatile;
}



