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

/*
    IDownloadFile.vala
    Copyright (C) 2010 Maia Kozheva <sikon@ubuntu.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#include <glib-object.h>
#include <glib.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>

#if !defined(VALA_STRICT_C)
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ >= 14)
#pragma GCC diagnostic warning "-Wincompatible-pointer-types"
#elif defined(__clang__) && (__clang_major__ >= 16)
#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
#endif
#endif
#if !defined(VALA_EXTERN)
#if defined(_MSC_VER)
#define VALA_EXTERN __declspec(dllexport) extern
#elif __GNUC__ >= 4
#define VALA_EXTERN __attribute__((visibility("default"))) extern
#else
#define VALA_EXTERN extern
#endif
#endif

#define STEADYFLOW_CORE_TYPE_IDOWNLOAD_FILE (steadyflow_core_idownload_file_get_type ())
#define STEADYFLOW_CORE_IDOWNLOAD_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STEADYFLOW_CORE_TYPE_IDOWNLOAD_FILE, SteadyflowCoreIDownloadFile))
#define STEADYFLOW_CORE_IS_IDOWNLOAD_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STEADYFLOW_CORE_TYPE_IDOWNLOAD_FILE))
#define STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), STEADYFLOW_CORE_TYPE_IDOWNLOAD_FILE, SteadyflowCoreIDownloadFileIface))

typedef struct _SteadyflowCoreIDownloadFile SteadyflowCoreIDownloadFile;
typedef struct _SteadyflowCoreIDownloadFileIface SteadyflowCoreIDownloadFileIface;
typedef enum  {
	STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_CONNECTING = 0,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_DOWNLOADING,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_PAUSED,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_FINISHED,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_NETWORK_ERROR
} SteadyflowCoreIDownloadFileStatus;

#define STEADYFLOW_CORE_IDOWNLOAD_FILE_TYPE_STATUS (steadyflow_core_idownload_file_status_get_type ())
typedef enum  {
	STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_DO_NOTHING = 0,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_OPEN_FILE,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_OPEN_FOLDER,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_RUN_COMMAND
} SteadyflowCoreIDownloadFileFinishAction;

#define STEADYFLOW_CORE_IDOWNLOAD_FILE_TYPE_FINISH_ACTION (steadyflow_core_idownload_file_finish_action_get_type ())
enum  {
	STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_CHANGED_SIGNAL,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_DOWNLOAD_PROGRESSED_SIGNAL,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_MOUNT_OPERATION_SIGNAL,
	STEADYFLOW_CORE_IDOWNLOAD_FILE_NUM_SIGNALS
};
static guint steadyflow_core_idownload_file_signals[STEADYFLOW_CORE_IDOWNLOAD_FILE_NUM_SIGNALS] = {0};

struct _SteadyflowCoreIDownloadFileIface {
	GTypeInterface parent_iface;
	void (*start) (SteadyflowCoreIDownloadFile* self, gboolean resume);
	void (*pause) (SteadyflowCoreIDownloadFile* self);
	void (*serialize) (SteadyflowCoreIDownloadFile* self, GKeyFile* file);
	SteadyflowCoreIDownloadFileStatus (*get_status) (SteadyflowCoreIDownloadFile* self);
	gint (*get_uid) (SteadyflowCoreIDownloadFile* self);
	const gchar* (*get_url) (SteadyflowCoreIDownloadFile* self);
	const gchar* (*get_local_name) (SteadyflowCoreIDownloadFile* self);
	const gchar* (*get_local_basename) (SteadyflowCoreIDownloadFile* self);
	gint64 (*get_size) (SteadyflowCoreIDownloadFile* self);
	gint64 (*get_downloaded_size) (SteadyflowCoreIDownloadFile* self);
	gint (*get_speed) (SteadyflowCoreIDownloadFile* self);
	const gchar* (*get_icon_name) (SteadyflowCoreIDownloadFile* self);
	SteadyflowCoreIDownloadFileFinishAction (*get_finish_action) (SteadyflowCoreIDownloadFile* self);
	const gchar* (*get_finish_command) (SteadyflowCoreIDownloadFile* self);
	GError* (*get_error) (SteadyflowCoreIDownloadFile* self);
};

VALA_EXTERN GType steadyflow_core_idownload_file_status_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType steadyflow_core_idownload_file_finish_action_get_type (void) G_GNUC_CONST ;
VALA_EXTERN GType steadyflow_core_idownload_file_get_type (void) G_GNUC_CONST ;
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SteadyflowCoreIDownloadFile, g_object_unref)
VALA_EXTERN void steadyflow_core_idownload_file_start (SteadyflowCoreIDownloadFile* self,
                                           gboolean resume);
VALA_EXTERN void steadyflow_core_idownload_file_pause (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN void steadyflow_core_idownload_file_serialize (SteadyflowCoreIDownloadFile* self,
                                               GKeyFile* file);
VALA_EXTERN gboolean steadyflow_core_idownload_file_can_start (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN SteadyflowCoreIDownloadFileStatus steadyflow_core_idownload_file_get_status (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN gboolean steadyflow_core_idownload_file_can_pause (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN gint steadyflow_core_idownload_file_get_uid (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN const gchar* steadyflow_core_idownload_file_get_url (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN const gchar* steadyflow_core_idownload_file_get_local_name (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN const gchar* steadyflow_core_idownload_file_get_local_basename (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN gint64 steadyflow_core_idownload_file_get_size (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN gint64 steadyflow_core_idownload_file_get_downloaded_size (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN gint steadyflow_core_idownload_file_get_speed (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN const gchar* steadyflow_core_idownload_file_get_icon_name (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN SteadyflowCoreIDownloadFileFinishAction steadyflow_core_idownload_file_get_finish_action (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN const gchar* steadyflow_core_idownload_file_get_finish_command (SteadyflowCoreIDownloadFile* self);
VALA_EXTERN GError* steadyflow_core_idownload_file_get_error (SteadyflowCoreIDownloadFile* self);
static void g_cclosure_user_marshal_VOID__INT64 (GClosure * closure,
                                          GValue * return_value,
                                          guint n_param_values,
                                          const GValue * param_values,
                                          gpointer invocation_hint,
                                          gpointer marshal_data);
static GType steadyflow_core_idownload_file_get_type_once (void);

static GType
steadyflow_core_idownload_file_status_get_type_once (void)
{
	static const GEnumValue values[] = {{STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_CONNECTING, "STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_CONNECTING", "connecting"}, {STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_DOWNLOADING, "STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_DOWNLOADING", "downloading"}, {STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_PAUSED, "STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_PAUSED", "paused"}, {STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_FINISHED, "STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_FINISHED", "finished"}, {STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_NETWORK_ERROR, "STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_NETWORK_ERROR", "network-error"}, {0, NULL, NULL}};
	GType steadyflow_core_idownload_file_status_type_id;
	steadyflow_core_idownload_file_status_type_id = g_enum_register_static ("SteadyflowCoreIDownloadFileStatus", values);
	return steadyflow_core_idownload_file_status_type_id;
}

GType
steadyflow_core_idownload_file_status_get_type (void)
{
	static volatile gsize steadyflow_core_idownload_file_status_type_id__once = 0;
	if (g_once_init_enter (&steadyflow_core_idownload_file_status_type_id__once)) {
		GType steadyflow_core_idownload_file_status_type_id;
		steadyflow_core_idownload_file_status_type_id = steadyflow_core_idownload_file_status_get_type_once ();
		g_once_init_leave (&steadyflow_core_idownload_file_status_type_id__once, steadyflow_core_idownload_file_status_type_id);
	}
	return steadyflow_core_idownload_file_status_type_id__once;
}

static GType
steadyflow_core_idownload_file_finish_action_get_type_once (void)
{
	static const GEnumValue values[] = {{STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_DO_NOTHING, "STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_DO_NOTHING", "do-nothing"}, {STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_OPEN_FILE, "STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_OPEN_FILE", "open-file"}, {STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_OPEN_FOLDER, "STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_OPEN_FOLDER", "open-folder"}, {STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_RUN_COMMAND, "STEADYFLOW_CORE_IDOWNLOAD_FILE_FINISH_ACTION_RUN_COMMAND", "run-command"}, {0, NULL, NULL}};
	GType steadyflow_core_idownload_file_finish_action_type_id;
	steadyflow_core_idownload_file_finish_action_type_id = g_enum_register_static ("SteadyflowCoreIDownloadFileFinishAction", values);
	return steadyflow_core_idownload_file_finish_action_type_id;
}

GType
steadyflow_core_idownload_file_finish_action_get_type (void)
{
	static volatile gsize steadyflow_core_idownload_file_finish_action_type_id__once = 0;
	if (g_once_init_enter (&steadyflow_core_idownload_file_finish_action_type_id__once)) {
		GType steadyflow_core_idownload_file_finish_action_type_id;
		steadyflow_core_idownload_file_finish_action_type_id = steadyflow_core_idownload_file_finish_action_get_type_once ();
		g_once_init_leave (&steadyflow_core_idownload_file_finish_action_type_id__once, steadyflow_core_idownload_file_finish_action_type_id);
	}
	return steadyflow_core_idownload_file_finish_action_type_id__once;
}

void
steadyflow_core_idownload_file_start (SteadyflowCoreIDownloadFile* self,
                                      gboolean resume)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->start) {
		_iface_->start (self, resume);
	}
}

void
steadyflow_core_idownload_file_pause (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->pause) {
		_iface_->pause (self);
	}
}

void
steadyflow_core_idownload_file_serialize (SteadyflowCoreIDownloadFile* self,
                                          GKeyFile* file)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_if_fail (self != NULL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->serialize) {
		_iface_->serialize (self, file);
	}
}

gboolean
steadyflow_core_idownload_file_can_start (SteadyflowCoreIDownloadFile* self)
{
	gboolean _tmp0_ = FALSE;
	SteadyflowCoreIDownloadFileStatus _tmp1_;
	SteadyflowCoreIDownloadFileStatus _tmp2_;
	gboolean result;
	_tmp1_ = steadyflow_core_idownload_file_get_status (self);
	_tmp2_ = _tmp1_;
	if (_tmp2_ == STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_PAUSED) {
		_tmp0_ = TRUE;
	} else {
		SteadyflowCoreIDownloadFileStatus _tmp3_;
		SteadyflowCoreIDownloadFileStatus _tmp4_;
		_tmp3_ = steadyflow_core_idownload_file_get_status (self);
		_tmp4_ = _tmp3_;
		_tmp0_ = _tmp4_ == STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_NETWORK_ERROR;
	}
	result = _tmp0_;
	return result;
}

gboolean
steadyflow_core_idownload_file_can_pause (SteadyflowCoreIDownloadFile* self)
{
	gboolean _tmp0_ = FALSE;
	SteadyflowCoreIDownloadFileStatus _tmp1_;
	SteadyflowCoreIDownloadFileStatus _tmp2_;
	gboolean result;
	_tmp1_ = steadyflow_core_idownload_file_get_status (self);
	_tmp2_ = _tmp1_;
	if (_tmp2_ == STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_CONNECTING) {
		_tmp0_ = TRUE;
	} else {
		SteadyflowCoreIDownloadFileStatus _tmp3_;
		SteadyflowCoreIDownloadFileStatus _tmp4_;
		_tmp3_ = steadyflow_core_idownload_file_get_status (self);
		_tmp4_ = _tmp3_;
		_tmp0_ = _tmp4_ == STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_DOWNLOADING;
	}
	result = _tmp0_;
	return result;
}

SteadyflowCoreIDownloadFileStatus
steadyflow_core_idownload_file_get_status (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_status) {
		return _iface_->get_status (self);
	}
	return 0;
}

gint
steadyflow_core_idownload_file_get_uid (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_uid) {
		return _iface_->get_uid (self);
	}
	return -1;
}

const gchar*
steadyflow_core_idownload_file_get_url (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_url) {
		return _iface_->get_url (self);
	}
	return NULL;
}

const gchar*
steadyflow_core_idownload_file_get_local_name (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_local_name) {
		return _iface_->get_local_name (self);
	}
	return NULL;
}

const gchar*
steadyflow_core_idownload_file_get_local_basename (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_local_basename) {
		return _iface_->get_local_basename (self);
	}
	return NULL;
}

gint64
steadyflow_core_idownload_file_get_size (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, 0LL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_size) {
		return _iface_->get_size (self);
	}
	return -1LL;
}

gint64
steadyflow_core_idownload_file_get_downloaded_size (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, 0LL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_downloaded_size) {
		return _iface_->get_downloaded_size (self);
	}
	return -1LL;
}

gint
steadyflow_core_idownload_file_get_speed (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_speed) {
		return _iface_->get_speed (self);
	}
	return -1;
}

const gchar*
steadyflow_core_idownload_file_get_icon_name (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_icon_name) {
		return _iface_->get_icon_name (self);
	}
	return NULL;
}

SteadyflowCoreIDownloadFileFinishAction
steadyflow_core_idownload_file_get_finish_action (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, 0);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_finish_action) {
		return _iface_->get_finish_action (self);
	}
	return 0;
}

const gchar*
steadyflow_core_idownload_file_get_finish_command (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_finish_command) {
		return _iface_->get_finish_command (self);
	}
	return NULL;
}

GError*
steadyflow_core_idownload_file_get_error (SteadyflowCoreIDownloadFile* self)
{
	SteadyflowCoreIDownloadFileIface* _iface_;
	g_return_val_if_fail (self != NULL, NULL);
	_iface_ = STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_INTERFACE (self);
	if (_iface_->get_error) {
		return _iface_->get_error (self);
	}
	return NULL;
}

static void
g_cclosure_user_marshal_VOID__INT64 (GClosure * closure,
                                     GValue * return_value,
                                     guint n_param_values,
                                     const GValue * param_values,
                                     gpointer invocation_hint,
                                     gpointer marshal_data)
{
	typedef void (*GMarshalFunc_VOID__INT64) (gpointer data1, gint64 arg_1, gpointer data2);
	register GMarshalFunc_VOID__INT64 callback;
	register GCClosure * cc;
	register gpointer data1;
	register gpointer data2;
	cc = (GCClosure *) closure;
	g_return_if_fail (n_param_values == 2);
	if (G_CCLOSURE_SWAP_DATA (closure)) {
		data1 = closure->data;
		data2 = param_values->data[0].v_pointer;
	} else {
		data1 = param_values->data[0].v_pointer;
		data2 = closure->data;
	}
	callback = (GMarshalFunc_VOID__INT64) (marshal_data ? marshal_data : cc->callback);
	callback (data1, g_value_get_int64 (param_values + 1), data2);
}

static void
steadyflow_core_idownload_file_default_init (SteadyflowCoreIDownloadFileIface * iface,
                                             gpointer iface_data)
{
	g_object_interface_install_property (iface, g_param_spec_enum ("status", "status", "status", STEADYFLOW_CORE_IDOWNLOAD_FILE_TYPE_STATUS, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_int ("uid", "uid", "uid", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("url", "url", "url", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("local-name", "local-name", "local-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("local-basename", "local-basename", "local-basename", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_int64 ("size", "size", "size", G_MININT64, G_MAXINT64, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_int64 ("downloaded-size", "downloaded-size", "downloaded-size", G_MININT64, G_MAXINT64, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_int ("speed", "speed", "speed", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_enum ("finish-action", "finish-action", "finish-action", STEADYFLOW_CORE_IDOWNLOAD_FILE_TYPE_FINISH_ACTION, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_string ("finish-command", "finish-command", "finish-command", NULL, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	g_object_interface_install_property (iface, g_param_spec_boxed ("error", "error", "error", G_TYPE_ERROR, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
	steadyflow_core_idownload_file_signals[STEADYFLOW_CORE_IDOWNLOAD_FILE_STATUS_CHANGED_SIGNAL] = g_signal_new ("status-changed", STEADYFLOW_CORE_TYPE_IDOWNLOAD_FILE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__ENUM, G_TYPE_NONE, 1, STEADYFLOW_CORE_IDOWNLOAD_FILE_TYPE_STATUS);
	steadyflow_core_idownload_file_signals[STEADYFLOW_CORE_IDOWNLOAD_FILE_DOWNLOAD_PROGRESSED_SIGNAL] = g_signal_new ("download-progressed", STEADYFLOW_CORE_TYPE_IDOWNLOAD_FILE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__INT64, G_TYPE_NONE, 1, G_TYPE_INT64);
	steadyflow_core_idownload_file_signals[STEADYFLOW_CORE_IDOWNLOAD_FILE_GET_MOUNT_OPERATION_SIGNAL] = g_signal_new ("get-mount-operation", STEADYFLOW_CORE_TYPE_IDOWNLOAD_FILE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1, G_TYPE_POINTER);
}

static GType
steadyflow_core_idownload_file_get_type_once (void)
{
	static const GTypeInfo g_define_type_info = { sizeof (SteadyflowCoreIDownloadFileIface), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) steadyflow_core_idownload_file_default_init, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
	GType steadyflow_core_idownload_file_type_id;
	steadyflow_core_idownload_file_type_id = g_type_register_static (G_TYPE_INTERFACE, "SteadyflowCoreIDownloadFile", &g_define_type_info, 0);
	g_type_interface_add_prerequisite (steadyflow_core_idownload_file_type_id, G_TYPE_OBJECT);
	return steadyflow_core_idownload_file_type_id;
}

GType
steadyflow_core_idownload_file_get_type (void)
{
	static volatile gsize steadyflow_core_idownload_file_type_id__once = 0;
	if (g_once_init_enter (&steadyflow_core_idownload_file_type_id__once)) {
		GType steadyflow_core_idownload_file_type_id;
		steadyflow_core_idownload_file_type_id = steadyflow_core_idownload_file_get_type_once ();
		g_once_init_leave (&steadyflow_core_idownload_file_type_id__once, steadyflow_core_idownload_file_type_id);
	}
	return steadyflow_core_idownload_file_type_id__once;
}

