/* remote-machine.c generated by valac 0.36.1.38-6532, the Vala compiler
 * generated from remote-machine.vala, do not modify */

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

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libcommon.h>
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include <glib/gi18n-lib.h>
#include <libxml/uri.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_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 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_REMOTE_MACHINE (boxes_remote_machine_get_type ())
#define BOXES_REMOTE_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_REMOTE_MACHINE, BoxesRemoteMachine))
#define BOXES_REMOTE_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_REMOTE_MACHINE, BoxesRemoteMachineClass))
#define BOXES_IS_REMOTE_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_REMOTE_MACHINE))
#define BOXES_IS_REMOTE_MACHINE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_REMOTE_MACHINE))
#define BOXES_REMOTE_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_REMOTE_MACHINE, BoxesRemoteMachineClass))

typedef struct _BoxesRemoteMachine BoxesRemoteMachine;
typedef struct _BoxesRemoteMachineClass BoxesRemoteMachineClass;
typedef struct _BoxesRemoteMachinePrivate BoxesRemoteMachinePrivate;
enum  {
	BOXES_REMOTE_MACHINE_DUMMY_PROPERTY,
	BOXES_REMOTE_MACHINE_CAN_RESTART,
	BOXES_REMOTE_MACHINE_CAN_CLONE,
	BOXES_REMOTE_MACHINE_LAST_PROPERTY
};
static GParamSpec* boxes_remote_machine_properties[BOXES_REMOTE_MACHINE_LAST_PROPERTY];
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define BOXES_MACHINE_TYPE_MACHINE_STATE (boxes_machine_machine_state_get_type ())

#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_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 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;
typedef struct _BoxesDisplayPrivate BoxesDisplayPrivate;
typedef struct _BoxesRemoteMachineConnectDisplayData BoxesRemoteMachineConnectDisplayData;

#define BOXES_TYPE_EDITABLE_STRING_PROPERTY (boxes_editable_string_property_get_type ())
#define BOXES_EDITABLE_STRING_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_EDITABLE_STRING_PROPERTY, BoxesEditableStringProperty))
#define BOXES_EDITABLE_STRING_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_EDITABLE_STRING_PROPERTY, BoxesEditableStringPropertyClass))
#define BOXES_IS_EDITABLE_STRING_PROPERTY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_EDITABLE_STRING_PROPERTY))
#define BOXES_IS_EDITABLE_STRING_PROPERTY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_EDITABLE_STRING_PROPERTY))
#define BOXES_EDITABLE_STRING_PROPERTY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_EDITABLE_STRING_PROPERTY, BoxesEditableStringPropertyClass))

typedef struct _BoxesEditableStringProperty BoxesEditableStringProperty;
typedef struct _BoxesEditableStringPropertyClass BoxesEditableStringPropertyClass;
typedef struct _Block76Data Block76Data;

#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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

#define BOXES_TYPE_APP (boxes_app_get_type ())
#define BOXES_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BOXES_TYPE_APP, BoxesApp))
#define BOXES_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BOXES_TYPE_APP, BoxesAppClass))
#define BOXES_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BOXES_TYPE_APP))
#define BOXES_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), BOXES_TYPE_APP))
#define BOXES_APP_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), BOXES_TYPE_APP, BoxesAppClass))

typedef struct _BoxesApp BoxesApp;
typedef struct _BoxesAppClass BoxesAppClass;
typedef struct _BoxesRemoteMachineCloneData BoxesRemoteMachineCloneData;
#define _xmlFreeURI0(var) ((var == NULL) ? NULL : (var = (xmlFreeURI (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
} 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 _BoxesCollectionItem {
	GObject parent_instance;
	BoxesCollectionItemPrivate * priv;
};

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

typedef enum  {
	BOXES_PROPERTIES_PAGE_GENERAL,
	BOXES_PROPERTIES_PAGE_SYSTEM,
	BOXES_PROPERTIES_PAGE_DEVICES,
	BOXES_PROPERTIES_PAGE_SNAPSHOTS,
	BOXES_PROPERTIES_PAGE_LAST
} BoxesPropertiesPage;

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

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;
};

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);
	void (*connect_display) (BoxesMachine* self, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connect_display_finish) (BoxesMachine* self, GAsyncResult* _res_, GError** error);
	void (*restart) (BoxesMachine* self);
	void (*clone) (BoxesMachine* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*clone_finish) (BoxesMachine* self, GAsyncResult* _res_);
	void (*disconnect_display) (BoxesMachine* self);
	void (*update_status) (BoxesMachine* self);
	void (*delete) (BoxesMachine* self, gboolean by_user);
	gboolean (*get_suspend_at_exit) (BoxesMachine* self);
	gboolean (*get_can_save) (BoxesMachine* self);
	gboolean (*get_can_restart) (BoxesMachine* self);
	gboolean (*get_can_clone) (BoxesMachine* self);
	gboolean (*get_should_autosave) (BoxesMachine* self);
	gboolean (*get_is_local) (BoxesMachine* self);
};

struct _BoxesRemoteMachine {
	BoxesMachine parent_instance;
	BoxesRemoteMachinePrivate * priv;
};

struct _BoxesRemoteMachineClass {
	BoxesMachineClass parent_class;
};

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;

typedef gint (*BoxesDisplayOpenFDFunc) (void* user_data);
struct _BoxesDisplay {
	GObject parent_instance;
	BoxesDisplayPrivate * priv;
	gboolean connected;
	GHashTable* displays;
};

struct _BoxesDisplayClass {
	GObjectClass parent_class;
	GtkWidget* (*get_display) (BoxesDisplay* self, gint n);
	GdkPixbuf* (*get_pixbuf) (BoxesDisplay* self, gint n, GError** error);
	void (*set_enable_audio) (BoxesDisplay* self, gboolean enable);
	gboolean (*should_keep_alive) (BoxesDisplay* self);
	void (*connect_it) (BoxesDisplay* self, BoxesDisplayOpenFDFunc open_fd, void* open_fd_target, GDestroyNotify open_fd_target_destroy_notify, GError** error);
	void (*disconnect_it) (BoxesDisplay* self);
	void (*collect_logs) (BoxesDisplay* self, GString* builder);
	void (*send_keys) (BoxesDisplay* self, guint* keyvals, int keyvals_length1);
	GList* (*get_properties) (BoxesDisplay* self, BoxesPropertiesPage page);
	const gchar* (*get_protocol) (BoxesDisplay* self);
	gchar* (*get_uri) (BoxesDisplay* self);
};

struct _BoxesRemoteMachineConnectDisplayData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	BoxesRemoteMachine* self;
	BoxesMachineConnectFlags flags;
	BoxesBoxConfig* _tmp0_;
	gint64 _tmp1_;
	BoxesDisplay* _tmp2_;
	BoxesDisplay* _tmp3_;
	BoxesDisplay* _tmp4_;
	BoxesDisplay* _tmp5_;
	BoxesDisplay* _tmp6_;
	BoxesDisplay* _tmp7_;
	BoxesDisplay* _tmp8_;
	BoxesDisplay* _tmp9_;
	gboolean _tmp10_;
	BoxesDisplay* _tmp11_;
	BoxesDisplay* _tmp12_;
	BoxesDisplay* _tmp13_;
	BoxesDisplay* _tmp14_;
	GError * _inner_error_;
};

struct _Block76Data {
	int _ref_count_;
	BoxesRemoteMachine* self;
	BoxesEditableStringProperty* name_property;
};

struct _BoxesRemoteMachineCloneData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GTask* _async_result;
	gboolean _task_complete_;
	BoxesRemoteMachine* self;
	gchar* name;
	BoxesCollectionSource* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	BoxesCollectionSource* source;
	BoxesCollectionSource* _tmp6_;
	gchar* _tmp7_;
	gchar* _tmp8_;
	gchar* _tmp9_;
	BoxesCollectionSource* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	BoxesCollectionSource* _tmp14_;
	BoxesCollectionSource* _tmp15_;
	BoxesApp* _tmp16_;
};


static gpointer boxes_remote_machine_parent_class = NULL;
extern BoxesApp* boxes_app_app;
static BoxesIPropertiesProviderIface * boxes_remote_machine_boxes_iproperties_provider_parent_iface = NULL;

GType boxes_ui_state_get_type (void) G_GNUC_CONST;
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 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_remote_machine_get_type (void) G_GNUC_CONST;
BoxesRemoteMachine* boxes_remote_machine_new (BoxesCollectionSource* source, GError** error);
BoxesRemoteMachine* boxes_remote_machine_construct (GType object_type, BoxesCollectionSource* source, GError** error);
BoxesMachine* boxes_machine_construct (GType object_type, BoxesCollectionSource* source, const gchar* name, const gchar* uuid);
GType boxes_machine_machine_state_get_type (void) G_GNUC_CONST;
void boxes_machine_set_state (BoxesMachine* self, BoxesMachineMachineState value);
void boxes_machine_load_screenshot (BoxesMachine* self);
static void boxes_remote_machine_update_info (BoxesRemoteMachine* self);
static void boxes_remote_machine_on_name_or_uri_changed (BoxesRemoteMachine* self);
static void _boxes_remote_machine_on_name_or_uri_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
GType boxes_display_get_type (void) G_GNUC_CONST;
static BoxesDisplay* boxes_remote_machine_create_display (BoxesRemoteMachine* self, GError** error);
BoxesSpiceDisplay* boxes_spice_display_new_with_uri (BoxesMachine* machine, BoxesBoxConfig* config, const gchar* uri);
BoxesSpiceDisplay* boxes_spice_display_construct_with_uri (GType object_type, BoxesMachine* machine, BoxesBoxConfig* config, const gchar* uri);
GType boxes_spice_display_get_type (void) G_GNUC_CONST;
GType boxes_vnc_display_get_type (void) G_GNUC_CONST;
BoxesVncDisplay* boxes_vnc_display_new_with_uri (BoxesBoxConfig* config, const gchar* _uri, GError** error);
BoxesVncDisplay* boxes_vnc_display_construct_with_uri (GType object_type, BoxesBoxConfig* config, const gchar* _uri, GError** error);
static void boxes_remote_machine_real_connect_display_data_free (gpointer _data);
static void boxes_remote_machine_real_connect_display (BoxesMachine* base, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_remote_machine_real_connect_display_co (BoxesRemoteMachineConnectDisplayData* _data_);
BoxesDisplay* boxes_machine_get_display (BoxesMachine* self);
void boxes_machine_set_display (BoxesMachine* self, BoxesDisplay* value);
void boxes_display_connect_it (BoxesDisplay* self, BoxesDisplayOpenFDFunc open_fd, void* open_fd_target, GDestroyNotify open_fd_target_destroy_notify, GError** error);
void boxes_machine_show_display (BoxesMachine* self);
void boxes_display_set_enable_audio (BoxesDisplay* self, gboolean enable);
static GList* boxes_remote_machine_real_get_properties (BoxesIPropertiesProvider* base, BoxesPropertiesPage page);
GType boxes_editable_string_property_get_type (void) G_GNUC_CONST;
static Block76Data* block76_data_ref (Block76Data* _data76_);
static void block76_data_unref (void * _userdata_);
BoxesEditableStringProperty* boxes_iproperties_provider_add_editable_string_property (BoxesIPropertiesProvider* self, GList* * list, const gchar* name, const gchar* value);
static void ___lambda98_ (BoxesRemoteMachine* self, BoxesEditableStringProperty* property, const gchar* name);
void boxes_collection_item_set_name (BoxesCollectionItem* self, const gchar* value);
static void ____lambda98__boxes_editable_string_property_changed (BoxesEditableStringProperty* _sender, const gchar* value, gpointer self);
static void ___lambda99_ (Block76Data* _data76_);
const gchar* boxes_collection_item_get_name (BoxesCollectionItem* self);
void boxes_editable_string_property_set_text (BoxesEditableStringProperty* self, const gchar* value);
static void ____lambda99__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
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);
gboolean boxes_machine_get_is_connected (BoxesMachine* self);
static void ____lambda100_ (BoxesRemoteMachine* self, BoxesEditableStringProperty* property, const gchar* uri);
static void _____lambda100__boxes_editable_string_property_changed (BoxesEditableStringProperty* _sender, const gchar* value, gpointer self);
static void _g_object_unref0_ (gpointer var);
static inline void _g_list_free__g_object_unref0_ (GList* self);
GList* boxes_display_get_properties (BoxesDisplay* self, BoxesPropertiesPage page);
static void boxes_remote_machine_real_delete (BoxesMachine* base, gboolean by_user);
static void boxes_remote_machine_real_restart (BoxesMachine* base);
static void boxes_remote_machine_real_clone_data_free (gpointer _data);
static void boxes_remote_machine_real_clone (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean boxes_remote_machine_real_clone_co (BoxesRemoteMachineCloneData* _data_);
GType boxes_app_get_type (void) G_GNUC_CONST;
void boxes_app_add_collection_source (BoxesApp* self, BoxesCollectionSource* source, GAsyncReadyCallback _callback_, gpointer _user_data_);
void boxes_app_add_collection_source_finish (BoxesApp* self, GAsyncResult* _res_, GError** error);
void boxes_machine_set_info (BoxesMachine* self, const gchar* value);
gboolean boxes_machine_get_can_restart (BoxesMachine* self);
gboolean boxes_machine_get_can_clone (BoxesMachine* self);
static void _vala_boxes_remote_machine_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


static void _boxes_remote_machine_on_name_or_uri_changed_g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 23 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_remote_machine_on_name_or_uri_changed ((BoxesRemoteMachine*) self);
#line 416 "remote-machine.c"
}


BoxesRemoteMachine* boxes_remote_machine_construct (GType object_type, BoxesCollectionSource* source, GError** error) {
	BoxesRemoteMachine * self = NULL;
	gboolean _tmp0_ = FALSE;
	BoxesCollectionSource* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gboolean _tmp5_;
	BoxesCollectionSource* _tmp16_;
	BoxesCollectionSource* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	BoxesCollectionSource* _tmp21_;
	BoxesCollectionSource* _tmp22_;
	GError * _inner_error_ = NULL;
#line 8 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_return_val_if_fail (source != NULL, NULL);
#line 9 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp1_ = source;
#line 9 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp2_ = boxes_collection_source_get_source_type (_tmp1_);
#line 9 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp3_ = _tmp2_;
#line 9 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp4_ = _tmp3_;
#line 9 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp5_ = g_strcmp0 (_tmp4_, "spice") != 0;
#line 9 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_free0 (_tmp4_);
#line 9 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_tmp5_) {
#line 452 "remote-machine.c"
		BoxesCollectionSource* _tmp6_;
		gchar* _tmp7_;
		gchar* _tmp8_;
		gchar* _tmp9_;
#line 10 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp6_ = source;
#line 10 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp7_ = boxes_collection_source_get_source_type (_tmp6_);
#line 10 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp8_ = _tmp7_;
#line 10 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp9_ = _tmp8_;
#line 10 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp0_ = g_strcmp0 (_tmp9_, "vnc") != 0;
#line 10 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_g_free0 (_tmp9_);
#line 469 "remote-machine.c"
	} else {
#line 9 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp0_ = FALSE;
#line 473 "remote-machine.c"
	}
#line 9 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_tmp0_) {
#line 477 "remote-machine.c"
		BoxesCollectionSource* _tmp10_;
		gchar* _tmp11_;
		gchar* _tmp12_;
		gchar* _tmp13_;
		GError* _tmp14_;
		GError* _tmp15_;
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp10_ = source;
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp11_ = boxes_collection_source_get_uri (_tmp10_);
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp12_ = _tmp11_;
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp13_ = _tmp12_;
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp14_ = g_error_new (BOXES_ERROR, BOXES_ERROR_INVALID, "source is not remote machine: %s", _tmp13_);
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp15_ = _tmp14_;
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_g_free0 (_tmp13_);
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_inner_error_ = _tmp15_;
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		if (_inner_error_->domain == BOXES_ERROR) {
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_propagate_error (error, _inner_error_);
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_g_object_unref0 (self);
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			return NULL;
#line 508 "remote-machine.c"
		} else {
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_clear_error (&_inner_error_);
#line 11 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			return NULL;
#line 516 "remote-machine.c"
		}
	}
#line 13 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp16_ = source;
#line 13 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp17_ = source;
#line 13 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp18_ = boxes_collection_source_get_name (_tmp17_);
#line 13 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp19_ = _tmp18_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp20_ = _tmp19_;
#line 13 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	self = (BoxesRemoteMachine*) boxes_machine_construct (object_type, _tmp16_, _tmp20_, NULL);
#line 13 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_free0 (_tmp20_);
#line 16 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_machine_set_state ((BoxesMachine*) self, BOXES_MACHINE_MACHINE_STATE_RUNNING);
#line 18 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp21_ = source;
#line 18 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_object_bind_property_with_closures ((GObject*) _tmp21_, "name", (GObject*) self, "name", G_BINDING_BIDIRECTIONAL, (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)), (GClosure*) ((NULL == NULL) ? NULL : g_cclosure_new ((GCallback) NULL, NULL, (GClosureNotify) NULL)));
#line 20 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_machine_load_screenshot ((BoxesMachine*) self);
#line 21 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_remote_machine_update_info (self);
#line 23 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_signal_connect_object ((GObject*) self, "notify::name", (GCallback) _boxes_remote_machine_on_name_or_uri_changed_g_object_notify, self, 0);
#line 24 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp22_ = source;
#line 24 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_signal_connect_object ((GObject*) _tmp22_, "notify::uri", (GCallback) _boxes_remote_machine_on_name_or_uri_changed_g_object_notify, self, 0);
#line 8 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	return self;
#line 551 "remote-machine.c"
}


BoxesRemoteMachine* boxes_remote_machine_new (BoxesCollectionSource* source, GError** error) {
#line 8 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	return boxes_remote_machine_construct (BOXES_TYPE_REMOTE_MACHINE, source, error);
#line 558 "remote-machine.c"
}


static BoxesDisplay* boxes_remote_machine_create_display (BoxesRemoteMachine* self, GError** error) {
	BoxesDisplay* result = NULL;
	gchar* type = NULL;
	BoxesCollectionSource* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	GQuark _tmp6_ = 0U;
#line 30 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	static GQuark _tmp5_label0 = 0;
#line 30 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	static GQuark _tmp5_label1 = 0;
#line 575 "remote-machine.c"
	GError * _inner_error_ = NULL;
#line 27 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 28 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp0_ = ((BoxesMachine*) self)->source;
#line 28 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp1_ = boxes_collection_source_get_source_type (_tmp0_);
#line 28 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp2_ = _tmp1_;
#line 28 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	type = _tmp2_;
#line 30 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp3_ = type;
#line 30 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp4_ = _tmp3_;
#line 30 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp6_ = (NULL == _tmp4_) ? 0 : g_quark_from_string (_tmp4_);
#line 30 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_tmp6_ == ((0 != _tmp5_label0) ? _tmp5_label0 : (_tmp5_label0 = g_quark_from_static_string ("spice")))) {
#line 30 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		switch (0) {
#line 597 "remote-machine.c"
			default:
			{
				BoxesBoxConfig* _tmp7_;
				BoxesCollectionSource* _tmp8_;
				gchar* _tmp9_;
				gchar* _tmp10_;
				gchar* _tmp11_;
				BoxesSpiceDisplay* _tmp12_;
				BoxesDisplay* _tmp13_;
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp7_ = ((BoxesMachine*) self)->config;
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp8_ = ((BoxesMachine*) self)->source;
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp9_ = boxes_collection_source_get_uri (_tmp8_);
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp10_ = _tmp9_;
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp11_ = _tmp10_;
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp12_ = boxes_spice_display_new_with_uri ((BoxesMachine*) self, _tmp7_, _tmp11_);
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp13_ = (BoxesDisplay*) _tmp12_;
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_free0 (_tmp11_);
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				result = _tmp13_;
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_free0 (type);
#line 32 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				return result;
#line 629 "remote-machine.c"
			}
		}
	} else if (_tmp6_ == ((0 != _tmp5_label1) ? _tmp5_label1 : (_tmp5_label1 = g_quark_from_static_string ("vnc")))) {
#line 30 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		switch (0) {
#line 635 "remote-machine.c"
			default:
			{
				BoxesVncDisplay* _tmp14_ = NULL;
				BoxesBoxConfig* _tmp15_;
				BoxesCollectionSource* _tmp16_;
				gchar* _tmp17_;
				gchar* _tmp18_;
				gchar* _tmp19_;
				BoxesVncDisplay* _tmp20_;
				BoxesVncDisplay* _tmp21_;
				BoxesVncDisplay* _tmp22_;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp15_ = ((BoxesMachine*) self)->config;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp16_ = ((BoxesMachine*) self)->source;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp17_ = boxes_collection_source_get_uri (_tmp16_);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp18_ = _tmp17_;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp19_ = _tmp18_;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp20_ = boxes_vnc_display_new_with_uri (_tmp15_, _tmp19_, &_inner_error_);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp21_ = _tmp20_;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_free0 (_tmp19_);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp14_ = _tmp21_;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
					if (_inner_error_->domain == BOXES_ERROR) {
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
						g_propagate_error (error, _inner_error_);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
						_g_free0 (type);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
						return NULL;
#line 675 "remote-machine.c"
					} else {
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
						_g_free0 (type);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
						g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
						g_clear_error (&_inner_error_);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
						return NULL;
#line 685 "remote-machine.c"
					}
				}
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp22_ = _tmp14_;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp14_ = NULL;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				result = (BoxesDisplay*) _tmp22_;
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_object_unref0 (_tmp14_);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_free0 (type);
#line 35 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				return result;
#line 700 "remote-machine.c"
			}
		}
	} else {
#line 30 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		switch (0) {
#line 706 "remote-machine.c"
			default:
			{
				const gchar* _tmp23_;
				gchar* _tmp24_;
				gchar* _tmp25_;
				GError* _tmp26_;
				GError* _tmp27_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp23_ = type;
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp24_ = g_strconcat ("unsupported display of type ", _tmp23_, NULL);
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp25_ = _tmp24_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp26_ = g_error_new_literal (BOXES_ERROR, BOXES_ERROR_INVALID, _tmp25_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp27_ = _tmp26_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_free0 (_tmp25_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_inner_error_ = _tmp27_;
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				if (_inner_error_->domain == BOXES_ERROR) {
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
					g_propagate_error (error, _inner_error_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
					_g_free0 (type);
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
					return NULL;
#line 736 "remote-machine.c"
				} else {
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
					_g_free0 (type);
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
					g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
					g_clear_error (&_inner_error_);
#line 38 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
					return NULL;
#line 746 "remote-machine.c"
				}
			}
		}
	}
#line 27 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_free0 (type);
#line 753 "remote-machine.c"
}


static void boxes_remote_machine_real_connect_display_data_free (gpointer _data) {
	BoxesRemoteMachineConnectDisplayData* _data_;
	_data_ = _data;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_slice_free (BoxesRemoteMachineConnectDisplayData, _data_);
#line 764 "remote-machine.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	return self ? g_object_ref (self) : NULL;
#line 771 "remote-machine.c"
}


static void boxes_remote_machine_real_connect_display (BoxesMachine* base, BoxesMachineConnectFlags flags, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesRemoteMachine * self;
	BoxesRemoteMachineConnectDisplayData* _data_;
	BoxesRemoteMachine* _tmp0_;
	BoxesMachineConnectFlags _tmp1_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	self = (BoxesRemoteMachine*) base;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_ = g_slice_new0 (BoxesRemoteMachineConnectDisplayData);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_callback_ == NULL) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_task_complete_ = TRUE;
#line 790 "remote-machine.c"
	}
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_remote_machine_real_connect_display_data_free);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->self = _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp1_ = flags;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->flags = _tmp1_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_remote_machine_real_connect_display_co (_data_);
#line 804 "remote-machine.c"
}


static void boxes_remote_machine_real_connect_display_finish (BoxesMachine* base, GAsyncResult* _res_, GError** error) {
	BoxesRemoteMachineConnectDisplayData* _data_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), error);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (NULL == _data_) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		return;
#line 816 "remote-machine.c"
	}
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_task_complete_ = TRUE;
#line 820 "remote-machine.c"
}


static gboolean boxes_remote_machine_real_connect_display_co (BoxesRemoteMachineConnectDisplayData* _data_) {
#line 42 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	switch (_data_->_state_) {
#line 42 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		case 0:
#line 829 "remote-machine.c"
		goto _state_0;
		default:
#line 42 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		g_assert_not_reached ();
#line 834 "remote-machine.c"
	}
	_state_0:
#line 43 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp0_ = ((BoxesMachine*) _data_->self)->config;
#line 43 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp1_ = g_get_real_time ();
#line 43 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_box_config_set_access_last_time (_data_->_tmp0_, _data_->_tmp1_);
#line 44 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp2_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 44 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 44 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_data_->_tmp3_ == NULL) {
#line 45 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_tmp5_ = boxes_remote_machine_create_display (_data_->self, &_data_->_inner_error_);
#line 45 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_tmp4_ = _data_->_tmp5_;
#line 45 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 45 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 45 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_object_unref (_data_->_async_result);
#line 45 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			return FALSE;
#line 861 "remote-machine.c"
		}
#line 45 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		boxes_machine_set_display ((BoxesMachine*) _data_->self, _data_->_tmp4_);
#line 46 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_tmp6_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 46 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_tmp7_ = _data_->_tmp6_;
#line 46 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		boxes_display_connect_it (_data_->_tmp7_, NULL, NULL, NULL, &_data_->_inner_error_);
#line 46 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 46 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 46 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_g_object_unref0 (_data_->_tmp4_);
#line 46 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_object_unref (_data_->_async_result);
#line 46 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			return FALSE;
#line 881 "remote-machine.c"
		}
#line 44 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_g_object_unref0 (_data_->_tmp4_);
#line 885 "remote-machine.c"
	} else {
#line 48 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_tmp8_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 48 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_tmp9_ = _data_->_tmp8_;
#line 48 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_tmp10_ = _data_->_tmp9_->connected;
#line 48 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		if (!_data_->_tmp10_) {
#line 49 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_data_->_tmp11_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 49 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_data_->_tmp12_ = _data_->_tmp11_;
#line 49 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			boxes_display_connect_it (_data_->_tmp12_, NULL, NULL, NULL, &_data_->_inner_error_);
#line 49 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 49 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				g_task_return_error (_data_->_async_result, _data_->_inner_error_);
#line 49 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				g_object_unref (_data_->_async_result);
#line 49 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				return FALSE;
#line 909 "remote-machine.c"
			}
		}
#line 51 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		boxes_machine_show_display ((BoxesMachine*) _data_->self);
#line 52 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_tmp13_ = boxes_machine_get_display ((BoxesMachine*) _data_->self);
#line 52 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_tmp14_ = _data_->_tmp13_;
#line 52 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		boxes_display_set_enable_audio (_data_->_tmp14_, TRUE);
#line 920 "remote-machine.c"
	}
#line 42 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 42 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_data_->_state_ != 0) {
#line 42 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 42 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 930 "remote-machine.c"
		}
	}
#line 42 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_object_unref (_data_->_async_result);
#line 42 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	return FALSE;
#line 937 "remote-machine.c"
}


static Block76Data* block76_data_ref (Block76Data* _data76_) {
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_atomic_int_inc (&_data76_->_ref_count_);
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	return _data76_;
#line 946 "remote-machine.c"
}


static void block76_data_unref (void * _userdata_) {
	Block76Data* _data76_;
	_data76_ = (Block76Data*) _userdata_;
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (g_atomic_int_dec_and_test (&_data76_->_ref_count_)) {
#line 955 "remote-machine.c"
		BoxesRemoteMachine* self;
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		self = _data76_->self;
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_g_object_unref0 (_data76_->name_property);
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_g_object_unref0 (self);
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		g_slice_free (Block76Data, _data76_);
#line 965 "remote-machine.c"
	}
}


static void ___lambda98_ (BoxesRemoteMachine* self, BoxesEditableStringProperty* property, const gchar* name) {
	const gchar* _tmp0_;
#line 62 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_return_if_fail (property != NULL);
#line 62 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_return_if_fail (name != NULL);
#line 63 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp0_ = name;
#line 63 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_collection_item_set_name ((BoxesCollectionItem*) self, _tmp0_);
#line 980 "remote-machine.c"
}


static void ____lambda98__boxes_editable_string_property_changed (BoxesEditableStringProperty* _sender, const gchar* value, gpointer self) {
#line 62 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	___lambda98_ ((BoxesRemoteMachine*) self, _sender, value);
#line 987 "remote-machine.c"
}


static void ___lambda99_ (Block76Data* _data76_) {
	BoxesRemoteMachine* self;
	BoxesEditableStringProperty* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
#line 67 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	self = _data76_->self;
#line 68 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp0_ = _data76_->name_property;
#line 68 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp1_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 68 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp2_ = _tmp1_;
#line 68 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_editable_string_property_set_text (_tmp0_, _tmp2_);
#line 1006 "remote-machine.c"
}


static void ____lambda99__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) {
#line 67 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	___lambda99_ (self);
#line 1013 "remote-machine.c"
}


static void ____lambda100_ (BoxesRemoteMachine* self, BoxesEditableStringProperty* property, const gchar* uri) {
	BoxesCollectionSource* _tmp0_;
	const gchar* _tmp1_;
#line 76 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_return_if_fail (property != NULL);
#line 76 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_return_if_fail (uri != NULL);
#line 77 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp0_ = ((BoxesMachine*) self)->source;
#line 77 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp1_ = uri;
#line 77 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_collection_source_set_uri (_tmp0_, _tmp1_);
#line 1030 "remote-machine.c"
}


static void _____lambda100__boxes_editable_string_property_changed (BoxesEditableStringProperty* _sender, const gchar* value, gpointer self) {
#line 76 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	____lambda100_ ((BoxesRemoteMachine*) self, _sender, value);
#line 1037 "remote-machine.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 1044 "remote-machine.c"
}


static inline void _g_list_free__g_object_unref0_ (GList* self) {
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_list_free_full (self, (GDestroyNotify) _g_object_unref0_);
#line 1051 "remote-machine.c"
}


static GList* boxes_remote_machine_real_get_properties (BoxesIPropertiesProvider* base, BoxesPropertiesPage page) {
	BoxesRemoteMachine * self;
	GList* result = NULL;
	GList* list = NULL;
	BoxesPropertiesPage _tmp0_;
	GError * _inner_error_ = NULL;
#line 56 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	self = (BoxesRemoteMachine*) base;
#line 57 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	list = NULL;
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp0_ = page;
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	switch (_tmp0_) {
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		case BOXES_PROPERTIES_PAGE_GENERAL:
#line 1071 "remote-machine.c"
		{
			Block76Data* _data76_;
			BoxesEditableStringProperty* property = NULL;
			BoxesCollectionSource* _tmp1_;
			gchar* _tmp2_;
			gchar* _tmp3_;
			gchar* _tmp4_;
			BoxesEditableStringProperty* _tmp5_;
			BoxesEditableStringProperty* _tmp6_;
			BoxesEditableStringProperty* _tmp7_;
			BoxesEditableStringProperty* _tmp8_;
			BoxesEditableStringProperty* _tmp9_;
			BoxesCollectionSource* _tmp10_;
			gchar* _tmp11_;
			gchar* _tmp12_;
			gchar* _tmp13_;
			gchar* _tmp14_;
			gchar* _tmp15_;
			BoxesStringProperty* _tmp16_;
			BoxesStringProperty* _tmp17_;
			gboolean _tmp18_;
			gboolean _tmp19_;
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_data76_ = g_slice_new0 (Block76Data);
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_data76_->_ref_count_ = 1;
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_data76_->self = g_object_ref (self);
#line 61 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp1_ = ((BoxesMachine*) self)->source;
#line 61 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp2_ = boxes_collection_source_get_name (_tmp1_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp3_ = _tmp2_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp4_ = _tmp3_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp5_ = boxes_iproperties_provider_add_editable_string_property ((BoxesIPropertiesProvider*) self, &list, _ ("_Name"), _tmp4_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp6_ = _tmp5_;
#line 61 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_g_free0 (_tmp4_);
#line 61 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			property = _tmp6_;
#line 62 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp7_ = property;
#line 62 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_signal_connect_object (_tmp7_, "changed", (GCallback) ____lambda98__boxes_editable_string_property_changed, self, 0);
#line 66 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp8_ = property;
#line 66 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp9_ = _g_object_ref0 (_tmp8_);
#line 66 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_data76_->name_property = _tmp9_;
#line 67 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_signal_connect_data ((GObject*) self, "notify::name", (GCallback) ____lambda99__g_object_notify, block76_data_ref (_data76_), (GClosureNotify) block76_data_unref, 0);
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp10_ = ((BoxesMachine*) self)->source;
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp11_ = boxes_collection_source_get_source_type (_tmp10_);
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp12_ = _tmp11_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp13_ = _tmp12_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp14_ = g_utf8_strup (_tmp13_, (gssize) -1);
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp15_ = _tmp14_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp16_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _ ("Protocol"), _tmp15_);
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp17_ = _tmp16_;
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_g_object_unref0 (_tmp17_);
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_g_free0 (_tmp15_);
#line 71 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_g_free0 (_tmp13_);
#line 72 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp18_ = boxes_machine_get_is_connected ((BoxesMachine*) self);
#line 72 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp19_ = _tmp18_;
#line 72 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			if (_tmp19_) {
#line 1156 "remote-machine.c"
				BoxesCollectionSource* _tmp20_;
				gchar* _tmp21_;
				gchar* _tmp22_;
				gchar* _tmp23_;
				BoxesStringProperty* _tmp24_;
				BoxesStringProperty* _tmp25_;
#line 73 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp20_ = ((BoxesMachine*) self)->source;
#line 73 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp21_ = boxes_collection_source_get_uri (_tmp20_);
#line 73 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp22_ = _tmp21_;
#line 73 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp23_ = _tmp22_;
#line 73 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp24_ = boxes_iproperties_provider_add_string_property ((BoxesIPropertiesProvider*) self, &list, _ ("URL"), _tmp23_);
#line 73 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp25_ = _tmp24_;
#line 73 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_object_unref0 (_tmp25_);
#line 73 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_free0 (_tmp23_);
#line 1179 "remote-machine.c"
			} else {
				BoxesCollectionSource* _tmp26_;
				gchar* _tmp27_;
				gchar* _tmp28_;
				gchar* _tmp29_;
				BoxesEditableStringProperty* _tmp30_;
				BoxesEditableStringProperty* _tmp31_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp26_ = ((BoxesMachine*) self)->source;
#line 75 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp27_ = boxes_collection_source_get_uri (_tmp26_);
#line 75 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp28_ = _tmp27_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp29_ = _tmp28_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp30_ = boxes_iproperties_provider_add_editable_string_property ((BoxesIPropertiesProvider*) self, &list, _ ("_URL"), _tmp29_);
#line 75 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_object_unref0 (property);
#line 75 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				property = _tmp30_;
#line 75 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_g_free0 (_tmp29_);
#line 76 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				_tmp31_ = property;
#line 76 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				g_signal_connect_object (_tmp31_, "changed", (GCallback) _____lambda100__boxes_editable_string_property_changed, self, 0);
#line 1207 "remote-machine.c"
			}
#line 81 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_g_object_unref0 (property);
#line 81 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			block76_data_unref (_data76_);
#line 81 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_data76_ = NULL;
#line 81 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			break;
#line 1217 "remote-machine.c"
		}
		default:
#line 59 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		break;
#line 1222 "remote-machine.c"
	}
	{
		BoxesDisplay* _tmp32_;
		BoxesDisplay* _tmp33_;
		BoxesDisplay* _tmp36_;
		BoxesDisplay* _tmp37_;
		BoxesPropertiesPage _tmp38_;
		GList* _tmp39_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp32_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 85 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp33_ = _tmp32_;
#line 85 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		if (_tmp33_ == NULL) {
#line 1237 "remote-machine.c"
			BoxesDisplay* _tmp34_ = NULL;
			BoxesDisplay* _tmp35_;
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp35_ = boxes_remote_machine_create_display (self, &_inner_error_);
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_tmp34_ = _tmp35_;
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				if (_inner_error_->domain == BOXES_ERROR) {
#line 1248 "remote-machine.c"
					goto __catch73_boxes_error;
				}
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				__g_list_free__g_object_unref0_0 (list);
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				g_clear_error (&_inner_error_);
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
				return NULL;
#line 1259 "remote-machine.c"
			}
#line 86 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			boxes_machine_set_display ((BoxesMachine*) self, _tmp34_);
#line 85 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			_g_object_unref0 (_tmp34_);
#line 1265 "remote-machine.c"
		}
#line 88 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp36_ = boxes_machine_get_display ((BoxesMachine*) self);
#line 88 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp37_ = _tmp36_;
#line 88 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp38_ = page;
#line 88 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp39_ = boxes_display_get_properties (_tmp37_, _tmp38_);
#line 88 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		list = g_list_concat (list, _tmp39_);
#line 1277 "remote-machine.c"
	}
	goto __finally73;
	__catch73_boxes_error:
	{
		GError* _error_ = NULL;
		GError* _tmp40_;
		const gchar* _tmp41_;
#line 84 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_error_ = _inner_error_;
#line 84 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_inner_error_ = NULL;
#line 90 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp40_ = _error_;
#line 90 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp41_ = _tmp40_->message;
#line 90 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		g_warning ("remote-machine.vala:90: %s", _tmp41_);
#line 84 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_g_error_free0 (_error_);
#line 1297 "remote-machine.c"
	}
	__finally73:
#line 84 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 84 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		__g_list_free__g_object_unref0_0 (list);
#line 84 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 84 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		g_clear_error (&_inner_error_);
#line 84 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		return NULL;
#line 1310 "remote-machine.c"
	}
#line 93 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	result = list;
#line 93 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	return result;
#line 1316 "remote-machine.c"
}


static void boxes_remote_machine_real_delete (BoxesMachine* base, gboolean by_user) {
	BoxesRemoteMachine * self;
	gboolean _tmp0_;
	BoxesCollectionSource* _tmp1_;
#line 96 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	self = (BoxesRemoteMachine*) base;
#line 97 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp0_ = by_user;
#line 97 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_return_if_fail (_tmp0_);
#line 99 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp1_ = ((BoxesMachine*) self)->source;
#line 99 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_collection_source_delete (_tmp1_);
#line 1334 "remote-machine.c"
}


static void boxes_remote_machine_real_restart (BoxesMachine* base) {
	BoxesRemoteMachine * self;
#line 104 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	self = (BoxesRemoteMachine*) base;
#line 1342 "remote-machine.c"
}


static void boxes_remote_machine_real_clone_data_free (gpointer _data) {
	BoxesRemoteMachineCloneData* _data_;
	_data_ = _data;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_object_unref0 (_data_->self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_slice_free (BoxesRemoteMachineCloneData, _data_);
#line 1353 "remote-machine.c"
}


static void boxes_remote_machine_real_clone (BoxesMachine* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	BoxesRemoteMachine * self;
	BoxesRemoteMachineCloneData* _data_;
	BoxesRemoteMachine* _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	self = (BoxesRemoteMachine*) base;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_ = g_slice_new0 (BoxesRemoteMachineCloneData);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_async_result = g_task_new (G_OBJECT (self), NULL, _callback_, _user_data_);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_callback_ == NULL) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_data_->_task_complete_ = TRUE;
#line 1371 "remote-machine.c"
	}
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_task_set_task_data (_data_->_async_result, _data_, boxes_remote_machine_real_clone_data_free);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->self = _tmp0_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_remote_machine_real_clone_co (_data_);
#line 1381 "remote-machine.c"
}


static void boxes_remote_machine_real_clone_finish (BoxesMachine* base, GAsyncResult* _res_) {
	BoxesRemoteMachineCloneData* _data_;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_ = g_task_propagate_pointer (G_TASK (_res_), NULL);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_task_complete_ = TRUE;
#line 1391 "remote-machine.c"
}


static gboolean boxes_remote_machine_real_clone_co (BoxesRemoteMachineCloneData* _data_) {
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	switch (_data_->_state_) {
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		case 0:
#line 1400 "remote-machine.c"
		goto _state_0;
		default:
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		g_assert_not_reached ();
#line 1405 "remote-machine.c"
	}
	_state_0:
#line 107 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp0_ = ((BoxesMachine*) _data_->self)->source;
#line 107 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp1_ = boxes_collection_source_get_name (_data_->_tmp0_);
#line 107 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp2_ = _data_->_tmp1_;
#line 107 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 107 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp4_ = g_strdup_printf ("Clone of %s", _data_->_tmp3_);
#line 107 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp5_ = _data_->_tmp4_;
#line 107 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_free0 (_data_->_tmp3_);
#line 107 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->name = _data_->_tmp5_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp6_ = ((BoxesMachine*) _data_->self)->source;
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp7_ = boxes_collection_source_get_source_type (_data_->_tmp6_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp8_ = _data_->_tmp7_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp9_ = _data_->_tmp8_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp10_ = ((BoxesMachine*) _data_->self)->source;
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp11_ = boxes_collection_source_get_uri (_data_->_tmp10_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp12_ = _data_->_tmp11_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp13_ = _data_->_tmp12_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp14_ = boxes_collection_source_new (_data_->name, _data_->_tmp9_, _data_->_tmp13_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp15_ = _data_->_tmp14_;
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_free0 (_data_->_tmp13_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_free0 (_data_->_tmp9_);
#line 108 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->source = _data_->_tmp15_;
#line 109 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_iconfig_save ((BoxesIConfig*) _data_->source);
#line 110 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_data_->_tmp16_ = boxes_app_app;
#line 110 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_app_add_collection_source (_data_->_tmp16_, _data_->source, NULL, NULL);
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_object_unref0 (_data_->source);
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_free0 (_data_->name);
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_task_return_pointer (_data_->_async_result, _data_, NULL);
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_data_->_state_ != 0) {
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		while (_data_->_task_complete_ != TRUE) {
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
			g_main_context_iteration (g_task_get_context (_data_->_async_result), TRUE);
#line 1468 "remote-machine.c"
		}
	}
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_object_unref (_data_->_async_result);
#line 106 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	return FALSE;
#line 1475 "remote-machine.c"
}


static void boxes_remote_machine_update_info (BoxesRemoteMachine* self) {
	xmlURI* uri = NULL;
	BoxesCollectionSource* _tmp0_;
	gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
	xmlURI* _tmp4_;
	xmlURI* _tmp5_;
	gboolean _tmp6_ = FALSE;
	xmlURI* _tmp7_;
	xmlURI* _tmp12_;
	const gchar* _tmp13_;
#line 113 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_return_if_fail (self != NULL);
#line 114 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp0_ = ((BoxesMachine*) self)->source;
#line 114 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp1_ = boxes_collection_source_get_uri (_tmp0_);
#line 114 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp2_ = _tmp1_;
#line 114 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp3_ = _tmp2_;
#line 114 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp4_ = xmlParseURI (_tmp3_);
#line 114 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp5_ = _tmp4_;
#line 114 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_g_free0 (_tmp3_);
#line 114 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	uri = _tmp5_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp7_ = uri;
#line 115 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_tmp7_ == NULL) {
#line 115 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp6_ = TRUE;
#line 1515 "remote-machine.c"
	} else {
		xmlURI* _tmp8_;
		const gchar* _tmp9_;
		const gchar* _tmp10_;
		const gchar* _tmp11_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp8_ = uri;
#line 115 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp9_ = _tmp8_->server;
#line 115 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp10_ = boxes_collection_item_get_name ((BoxesCollectionItem*) self);
#line 115 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp11_ = _tmp10_;
#line 115 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_tmp6_ = g_strcmp0 (_tmp9_, _tmp11_) == 0;
#line 1531 "remote-machine.c"
	}
#line 115 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	if (_tmp6_) {
#line 116 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		_xmlFreeURI0 (uri);
#line 116 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		return;
#line 1539 "remote-machine.c"
	}
#line 118 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp12_ = uri;
#line 118 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_tmp13_ = _tmp12_->server;
#line 118 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_machine_set_info ((BoxesMachine*) self, _tmp13_);
#line 113 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	_xmlFreeURI0 (uri);
#line 1549 "remote-machine.c"
}


static void boxes_remote_machine_on_name_or_uri_changed (BoxesRemoteMachine* self) {
#line 121 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_return_if_fail (self != NULL);
#line 122 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_remote_machine_update_info (self);
#line 1558 "remote-machine.c"
}


static gboolean boxes_remote_machine_real_get_can_restart (BoxesMachine* base) {
	gboolean result;
	BoxesRemoteMachine* self;
#line 5 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	self = (BoxesRemoteMachine*) base;
#line 5 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	result = FALSE;
#line 5 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	return result;
#line 1571 "remote-machine.c"
}


static gboolean boxes_remote_machine_real_get_can_clone (BoxesMachine* base) {
	gboolean result;
	BoxesRemoteMachine* self;
#line 6 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	self = (BoxesRemoteMachine*) base;
#line 6 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	result = TRUE;
#line 6 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	return result;
#line 1584 "remote-machine.c"
}


static void boxes_remote_machine_class_init (BoxesRemoteMachineClass * klass) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_remote_machine_parent_class = g_type_class_peek_parent (klass);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	((BoxesMachineClass *) klass)->connect_display = (void (*) (BoxesMachine *, BoxesMachineConnectFlags, GAsyncReadyCallback, gpointer)) boxes_remote_machine_real_connect_display;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	((BoxesMachineClass *) klass)->connect_display_finish = (void (*) (BoxesMachine *, GAsyncResult*, GError**)) boxes_remote_machine_real_connect_display_finish;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	((BoxesMachineClass *) klass)->get_properties = (GList* (*) (BoxesMachine *, BoxesPropertiesPage)) boxes_remote_machine_real_get_properties;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	((BoxesMachineClass *) klass)->delete = (void (*) (BoxesMachine *, gboolean)) boxes_remote_machine_real_delete;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	((BoxesMachineClass *) klass)->restart = (void (*) (BoxesMachine *)) boxes_remote_machine_real_restart;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	((BoxesMachineClass *) klass)->clone = (void (*) (BoxesMachine *, GAsyncReadyCallback, gpointer)) boxes_remote_machine_real_clone;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	((BoxesMachineClass *) klass)->clone_finish = (void (*) (BoxesMachine *, GAsyncResult*)) boxes_remote_machine_real_clone_finish;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_can_restart = boxes_remote_machine_real_get_can_restart;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	BOXES_MACHINE_CLASS (klass)->get_can_clone = boxes_remote_machine_real_get_can_clone;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_boxes_remote_machine_get_property;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_REMOTE_MACHINE_CAN_RESTART, boxes_remote_machine_properties[BOXES_REMOTE_MACHINE_CAN_RESTART] = g_param_spec_boolean ("can-restart", "can-restart", "can-restart", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), BOXES_REMOTE_MACHINE_CAN_CLONE, boxes_remote_machine_properties[BOXES_REMOTE_MACHINE_CAN_CLONE] = g_param_spec_boolean ("can-clone", "can-clone", "can-clone", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 1615 "remote-machine.c"
}


static void boxes_remote_machine_boxes_iproperties_provider_interface_init (BoxesIPropertiesProviderIface * iface) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	boxes_remote_machine_boxes_iproperties_provider_parent_iface = g_type_interface_peek_parent (iface);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	iface->get_properties = (GList* (*) (BoxesIPropertiesProvider *, BoxesPropertiesPage)) boxes_remote_machine_real_get_properties;
#line 1624 "remote-machine.c"
}


static void boxes_remote_machine_instance_init (BoxesRemoteMachine * self) {
}


GType boxes_remote_machine_get_type (void) {
	static volatile gsize boxes_remote_machine_type_id__volatile = 0;
	if (g_once_init_enter (&boxes_remote_machine_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (BoxesRemoteMachineClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) boxes_remote_machine_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BoxesRemoteMachine), 0, (GInstanceInitFunc) boxes_remote_machine_instance_init, NULL };
		static const GInterfaceInfo boxes_iproperties_provider_info = { (GInterfaceInitFunc) boxes_remote_machine_boxes_iproperties_provider_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType boxes_remote_machine_type_id;
		boxes_remote_machine_type_id = g_type_register_static (BOXES_TYPE_MACHINE, "BoxesRemoteMachine", &g_define_type_info, 0);
		g_type_add_interface_static (boxes_remote_machine_type_id, BOXES_TYPE_IPROPERTIES_PROVIDER, &boxes_iproperties_provider_info);
		g_once_init_leave (&boxes_remote_machine_type_id__volatile, boxes_remote_machine_type_id);
	}
	return boxes_remote_machine_type_id__volatile;
}


static void _vala_boxes_remote_machine_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	BoxesRemoteMachine * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, BOXES_TYPE_REMOTE_MACHINE, BoxesRemoteMachine);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
	switch (property_id) {
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		case BOXES_REMOTE_MACHINE_CAN_RESTART:
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		g_value_set_boolean (value, boxes_machine_get_can_restart ((BoxesMachine*) self));
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		break;
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		case BOXES_REMOTE_MACHINE_CAN_CLONE:
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		g_value_set_boolean (value, boxes_machine_get_can_clone ((BoxesMachine*) self));
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		break;
#line 1663 "remote-machine.c"
		default:
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 4 "/home/fborges/checkout/gnome-boxes/src/remote-machine.vala"
		break;
#line 1669 "remote-machine.c"
	}
}



