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

/*
 * Copyright (C) 2009-2011 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
 *
 * 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 2
 * 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, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <freesmartphone.h>


#define FSO_GSM_TYPE_MEDIATOR (fso_gsm_mediator_get_type ())
#define FSO_GSM_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_MEDIATOR, FsoGsmMediator))
#define FSO_GSM_IS_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_MEDIATOR))
#define FSO_GSM_MEDIATOR_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_MEDIATOR, FsoGsmMediatorIface))

typedef struct _FsoGsmMediator FsoGsmMediator;
typedef struct _FsoGsmMediatorIface FsoGsmMediatorIface;

#define FSO_GSM_TYPE_ABSTRACT_MEDIATOR (fso_gsm_abstract_mediator_get_type ())
#define FSO_GSM_ABSTRACT_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_ABSTRACT_MEDIATOR, FsoGsmAbstractMediator))
#define FSO_GSM_ABSTRACT_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_ABSTRACT_MEDIATOR, FsoGsmAbstractMediatorClass))
#define FSO_GSM_IS_ABSTRACT_MEDIATOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_ABSTRACT_MEDIATOR))
#define FSO_GSM_IS_ABSTRACT_MEDIATOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_ABSTRACT_MEDIATOR))
#define FSO_GSM_ABSTRACT_MEDIATOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_ABSTRACT_MEDIATOR, FsoGsmAbstractMediatorClass))

typedef struct _FsoGsmAbstractMediator FsoGsmAbstractMediator;
typedef struct _FsoGsmAbstractMediatorClass FsoGsmAbstractMediatorClass;
typedef struct _FsoGsmAbstractMediatorPrivate FsoGsmAbstractMediatorPrivate;

#define FSO_GSM_TYPE_MONITOR_GET_SERVING_CELL_INFORMATION (fso_gsm_monitor_get_serving_cell_information_get_type ())
#define FSO_GSM_MONITOR_GET_SERVING_CELL_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_MONITOR_GET_SERVING_CELL_INFORMATION, FsoGsmMonitorGetServingCellInformation))
#define FSO_GSM_MONITOR_GET_SERVING_CELL_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_MONITOR_GET_SERVING_CELL_INFORMATION, FsoGsmMonitorGetServingCellInformationClass))
#define FSO_GSM_IS_MONITOR_GET_SERVING_CELL_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_MONITOR_GET_SERVING_CELL_INFORMATION))
#define FSO_GSM_IS_MONITOR_GET_SERVING_CELL_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_MONITOR_GET_SERVING_CELL_INFORMATION))
#define FSO_GSM_MONITOR_GET_SERVING_CELL_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_MONITOR_GET_SERVING_CELL_INFORMATION, FsoGsmMonitorGetServingCellInformationClass))

typedef struct _FsoGsmMonitorGetServingCellInformation FsoGsmMonitorGetServingCellInformation;
typedef struct _FsoGsmMonitorGetServingCellInformationClass FsoGsmMonitorGetServingCellInformationClass;
typedef struct _FsoGsmMonitorGetServingCellInformationPrivate FsoGsmMonitorGetServingCellInformationPrivate;

#define FSO_GSM_TYPE_AT_MONITOR_GET_SERVING_CELL_INFORMATION (fso_gsm_at_monitor_get_serving_cell_information_get_type ())
#define FSO_GSM_AT_MONITOR_GET_SERVING_CELL_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_AT_MONITOR_GET_SERVING_CELL_INFORMATION, FsoGsmAtMonitorGetServingCellInformation))
#define FSO_GSM_AT_MONITOR_GET_SERVING_CELL_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_AT_MONITOR_GET_SERVING_CELL_INFORMATION, FsoGsmAtMonitorGetServingCellInformationClass))
#define FSO_GSM_IS_AT_MONITOR_GET_SERVING_CELL_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_AT_MONITOR_GET_SERVING_CELL_INFORMATION))
#define FSO_GSM_IS_AT_MONITOR_GET_SERVING_CELL_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_AT_MONITOR_GET_SERVING_CELL_INFORMATION))
#define FSO_GSM_AT_MONITOR_GET_SERVING_CELL_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_AT_MONITOR_GET_SERVING_CELL_INFORMATION, FsoGsmAtMonitorGetServingCellInformationClass))

typedef struct _FsoGsmAtMonitorGetServingCellInformation FsoGsmAtMonitorGetServingCellInformation;
typedef struct _FsoGsmAtMonitorGetServingCellInformationClass FsoGsmAtMonitorGetServingCellInformationClass;
typedef struct _FsoGsmAtMonitorGetServingCellInformationPrivate FsoGsmAtMonitorGetServingCellInformationPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _FsoGsmAtMonitorGetServingCellInformationRunData FsoGsmAtMonitorGetServingCellInformationRunData;

#define FSO_GSM_TYPE_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION (fso_gsm_monitor_get_neighbour_cell_information_get_type ())
#define FSO_GSM_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION, FsoGsmMonitorGetNeighbourCellInformation))
#define FSO_GSM_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION, FsoGsmMonitorGetNeighbourCellInformationClass))
#define FSO_GSM_IS_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION))
#define FSO_GSM_IS_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION))
#define FSO_GSM_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION, FsoGsmMonitorGetNeighbourCellInformationClass))

typedef struct _FsoGsmMonitorGetNeighbourCellInformation FsoGsmMonitorGetNeighbourCellInformation;
typedef struct _FsoGsmMonitorGetNeighbourCellInformationClass FsoGsmMonitorGetNeighbourCellInformationClass;
typedef struct _FsoGsmMonitorGetNeighbourCellInformationPrivate FsoGsmMonitorGetNeighbourCellInformationPrivate;

#define FSO_GSM_TYPE_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION (fso_gsm_at_monitor_get_neighbour_cell_information_get_type ())
#define FSO_GSM_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION, FsoGsmAtMonitorGetNeighbourCellInformation))
#define FSO_GSM_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION, FsoGsmAtMonitorGetNeighbourCellInformationClass))
#define FSO_GSM_IS_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION))
#define FSO_GSM_IS_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION))
#define FSO_GSM_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION, FsoGsmAtMonitorGetNeighbourCellInformationClass))

typedef struct _FsoGsmAtMonitorGetNeighbourCellInformation FsoGsmAtMonitorGetNeighbourCellInformation;
typedef struct _FsoGsmAtMonitorGetNeighbourCellInformationClass FsoGsmAtMonitorGetNeighbourCellInformationClass;
typedef struct _FsoGsmAtMonitorGetNeighbourCellInformationPrivate FsoGsmAtMonitorGetNeighbourCellInformationPrivate;
typedef struct _FsoGsmAtMonitorGetNeighbourCellInformationRunData FsoGsmAtMonitorGetNeighbourCellInformationRunData;

struct _FsoGsmMediatorIface {
	GTypeInterface parent_iface;
};

struct _FsoGsmAbstractMediator {
	GObject parent_instance;
	FsoGsmAbstractMediatorPrivate * priv;
};

struct _FsoGsmAbstractMediatorClass {
	GObjectClass parent_class;
};

struct _FsoGsmMonitorGetServingCellInformation {
	FsoGsmAbstractMediator parent_instance;
	FsoGsmMonitorGetServingCellInformationPrivate * priv;
};

struct _FsoGsmMonitorGetServingCellInformationClass {
	FsoGsmAbstractMediatorClass parent_class;
	void (*run) (FsoGsmMonitorGetServingCellInformation* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*run_finish) (FsoGsmMonitorGetServingCellInformation* self, GAsyncResult* _res_, GError** error);
};

struct _FsoGsmAtMonitorGetServingCellInformation {
	FsoGsmMonitorGetServingCellInformation parent_instance;
	FsoGsmAtMonitorGetServingCellInformationPrivate * priv;
};

struct _FsoGsmAtMonitorGetServingCellInformationClass {
	FsoGsmMonitorGetServingCellInformationClass parent_class;
};

struct _FsoGsmAtMonitorGetServingCellInformationRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmAtMonitorGetServingCellInformation* self;
	GError* _tmp0_;
	GError * _inner_error_;
};

struct _FsoGsmMonitorGetNeighbourCellInformation {
	FsoGsmAbstractMediator parent_instance;
	FsoGsmMonitorGetNeighbourCellInformationPrivate * priv;
};

struct _FsoGsmMonitorGetNeighbourCellInformationClass {
	FsoGsmAbstractMediatorClass parent_class;
	void (*run) (FsoGsmMonitorGetNeighbourCellInformation* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*run_finish) (FsoGsmMonitorGetNeighbourCellInformation* self, GAsyncResult* _res_, GError** error);
};

struct _FsoGsmAtMonitorGetNeighbourCellInformation {
	FsoGsmMonitorGetNeighbourCellInformation parent_instance;
	FsoGsmAtMonitorGetNeighbourCellInformationPrivate * priv;
};

struct _FsoGsmAtMonitorGetNeighbourCellInformationClass {
	FsoGsmMonitorGetNeighbourCellInformationClass parent_class;
};

struct _FsoGsmAtMonitorGetNeighbourCellInformationRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmAtMonitorGetNeighbourCellInformation* self;
	GError* _tmp0_;
	GError * _inner_error_;
};


static gpointer fso_gsm_at_monitor_get_serving_cell_information_parent_class = NULL;
static gpointer fso_gsm_at_monitor_get_neighbour_cell_information_parent_class = NULL;

GType fso_gsm_mediator_get_type (void) G_GNUC_CONST;
GType fso_gsm_abstract_mediator_get_type (void) G_GNUC_CONST;
GType fso_gsm_monitor_get_serving_cell_information_get_type (void) G_GNUC_CONST;
GType fso_gsm_at_monitor_get_serving_cell_information_get_type (void) G_GNUC_CONST;
enum  {
	FSO_GSM_AT_MONITOR_GET_SERVING_CELL_INFORMATION_DUMMY_PROPERTY
};
static void fso_gsm_at_monitor_get_serving_cell_information_real_run_data_free (gpointer _data);
static void fso_gsm_at_monitor_get_serving_cell_information_real_run (FsoGsmMonitorGetServingCellInformation* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_at_monitor_get_serving_cell_information_real_run_co (FsoGsmAtMonitorGetServingCellInformationRunData* _data_);
FsoGsmAtMonitorGetServingCellInformation* fso_gsm_at_monitor_get_serving_cell_information_new (void);
FsoGsmAtMonitorGetServingCellInformation* fso_gsm_at_monitor_get_serving_cell_information_construct (GType object_type);
FsoGsmMonitorGetServingCellInformation* fso_gsm_monitor_get_serving_cell_information_construct (GType object_type);
GType fso_gsm_monitor_get_neighbour_cell_information_get_type (void) G_GNUC_CONST;
GType fso_gsm_at_monitor_get_neighbour_cell_information_get_type (void) G_GNUC_CONST;
enum  {
	FSO_GSM_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION_DUMMY_PROPERTY
};
static void fso_gsm_at_monitor_get_neighbour_cell_information_real_run_data_free (gpointer _data);
static void fso_gsm_at_monitor_get_neighbour_cell_information_real_run (FsoGsmMonitorGetNeighbourCellInformation* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_at_monitor_get_neighbour_cell_information_real_run_co (FsoGsmAtMonitorGetNeighbourCellInformationRunData* _data_);
FsoGsmAtMonitorGetNeighbourCellInformation* fso_gsm_at_monitor_get_neighbour_cell_information_new (void);
FsoGsmAtMonitorGetNeighbourCellInformation* fso_gsm_at_monitor_get_neighbour_cell_information_construct (GType object_type);
FsoGsmMonitorGetNeighbourCellInformation* fso_gsm_monitor_get_neighbour_cell_information_construct (GType object_type);


static void fso_gsm_at_monitor_get_serving_cell_information_real_run_data_free (gpointer _data) {
	FsoGsmAtMonitorGetServingCellInformationRunData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (FsoGsmAtMonitorGetServingCellInformationRunData, _data_);
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static void fso_gsm_at_monitor_get_serving_cell_information_real_run (FsoGsmMonitorGetServingCellInformation* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmAtMonitorGetServingCellInformation * self;
	FsoGsmAtMonitorGetServingCellInformationRunData* _data_;
	FsoGsmAtMonitorGetServingCellInformation* _tmp0_;
	self = (FsoGsmAtMonitorGetServingCellInformation*) base;
	_data_ = g_slice_new0 (FsoGsmAtMonitorGetServingCellInformationRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_at_monitor_get_serving_cell_information_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_at_monitor_get_serving_cell_information_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_at_monitor_get_serving_cell_information_real_run_co (_data_);
}


static void fso_gsm_at_monitor_get_serving_cell_information_real_run_finish (FsoGsmMonitorGetServingCellInformation* base, GAsyncResult* _res_, GError** error) {
	FsoGsmAtMonitorGetServingCellInformationRunData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_at_monitor_get_serving_cell_information_real_run_co (FsoGsmAtMonitorGetServingCellInformationRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_UNSUPPORTED, "Not implemented");
	_data_->_inner_error_ = _data_->_tmp0_;
	if ((_data_->_inner_error_->domain == FREE_SMARTPHONE_GSM_ERROR) || (_data_->_inner_error_->domain == FREE_SMARTPHONE_ERROR)) {
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
		g_error_free (_data_->_inner_error_);
		if (_data_->_state_ == 0) {
			g_simple_async_result_complete_in_idle (_data_->_async_result);
		} else {
			g_simple_async_result_complete (_data_->_async_result);
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	} else {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
		g_clear_error (&_data_->_inner_error_);
		return FALSE;
	}
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


FsoGsmAtMonitorGetServingCellInformation* fso_gsm_at_monitor_get_serving_cell_information_construct (GType object_type) {
	FsoGsmAtMonitorGetServingCellInformation * self = NULL;
	self = (FsoGsmAtMonitorGetServingCellInformation*) fso_gsm_monitor_get_serving_cell_information_construct (object_type);
	return self;
}


FsoGsmAtMonitorGetServingCellInformation* fso_gsm_at_monitor_get_serving_cell_information_new (void) {
	return fso_gsm_at_monitor_get_serving_cell_information_construct (FSO_GSM_TYPE_AT_MONITOR_GET_SERVING_CELL_INFORMATION);
}


static void fso_gsm_at_monitor_get_serving_cell_information_class_init (FsoGsmAtMonitorGetServingCellInformationClass * klass) {
	fso_gsm_at_monitor_get_serving_cell_information_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_MONITOR_GET_SERVING_CELL_INFORMATION_CLASS (klass)->run = fso_gsm_at_monitor_get_serving_cell_information_real_run;
	FSO_GSM_MONITOR_GET_SERVING_CELL_INFORMATION_CLASS (klass)->run_finish = fso_gsm_at_monitor_get_serving_cell_information_real_run_finish;
}


static void fso_gsm_at_monitor_get_serving_cell_information_instance_init (FsoGsmAtMonitorGetServingCellInformation * self) {
}


/**
 * Monitor Mediators
 **/
GType fso_gsm_at_monitor_get_serving_cell_information_get_type (void) {
	static volatile gsize fso_gsm_at_monitor_get_serving_cell_information_type_id__volatile = 0;
	if (g_once_init_enter (&fso_gsm_at_monitor_get_serving_cell_information_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FsoGsmAtMonitorGetServingCellInformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fso_gsm_at_monitor_get_serving_cell_information_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FsoGsmAtMonitorGetServingCellInformation), 0, (GInstanceInitFunc) fso_gsm_at_monitor_get_serving_cell_information_instance_init, NULL };
		GType fso_gsm_at_monitor_get_serving_cell_information_type_id;
		fso_gsm_at_monitor_get_serving_cell_information_type_id = g_type_register_static (FSO_GSM_TYPE_MONITOR_GET_SERVING_CELL_INFORMATION, "FsoGsmAtMonitorGetServingCellInformation", &g_define_type_info, 0);
		g_once_init_leave (&fso_gsm_at_monitor_get_serving_cell_information_type_id__volatile, fso_gsm_at_monitor_get_serving_cell_information_type_id);
	}
	return fso_gsm_at_monitor_get_serving_cell_information_type_id__volatile;
}


static void fso_gsm_at_monitor_get_neighbour_cell_information_real_run_data_free (gpointer _data) {
	FsoGsmAtMonitorGetNeighbourCellInformationRunData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (FsoGsmAtMonitorGetNeighbourCellInformationRunData, _data_);
}


static void fso_gsm_at_monitor_get_neighbour_cell_information_real_run (FsoGsmMonitorGetNeighbourCellInformation* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmAtMonitorGetNeighbourCellInformation * self;
	FsoGsmAtMonitorGetNeighbourCellInformationRunData* _data_;
	FsoGsmAtMonitorGetNeighbourCellInformation* _tmp0_;
	self = (FsoGsmAtMonitorGetNeighbourCellInformation*) base;
	_data_ = g_slice_new0 (FsoGsmAtMonitorGetNeighbourCellInformationRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_at_monitor_get_neighbour_cell_information_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_at_monitor_get_neighbour_cell_information_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_at_monitor_get_neighbour_cell_information_real_run_co (_data_);
}


static void fso_gsm_at_monitor_get_neighbour_cell_information_real_run_finish (FsoGsmMonitorGetNeighbourCellInformation* base, GAsyncResult* _res_, GError** error) {
	FsoGsmAtMonitorGetNeighbourCellInformationRunData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_at_monitor_get_neighbour_cell_information_real_run_co (FsoGsmAtMonitorGetNeighbourCellInformationRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_UNSUPPORTED, "Not implemented");
	_data_->_inner_error_ = _data_->_tmp0_;
	if ((_data_->_inner_error_->domain == FREE_SMARTPHONE_GSM_ERROR) || (_data_->_inner_error_->domain == FREE_SMARTPHONE_ERROR)) {
		g_simple_async_result_set_from_error (_data_->_async_result, _data_->_inner_error_);
		g_error_free (_data_->_inner_error_);
		if (_data_->_state_ == 0) {
			g_simple_async_result_complete_in_idle (_data_->_async_result);
		} else {
			g_simple_async_result_complete (_data_->_async_result);
		}
		g_object_unref (_data_->_async_result);
		return FALSE;
	} else {
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
		g_clear_error (&_data_->_inner_error_);
		return FALSE;
	}
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


FsoGsmAtMonitorGetNeighbourCellInformation* fso_gsm_at_monitor_get_neighbour_cell_information_construct (GType object_type) {
	FsoGsmAtMonitorGetNeighbourCellInformation * self = NULL;
	self = (FsoGsmAtMonitorGetNeighbourCellInformation*) fso_gsm_monitor_get_neighbour_cell_information_construct (object_type);
	return self;
}


FsoGsmAtMonitorGetNeighbourCellInformation* fso_gsm_at_monitor_get_neighbour_cell_information_new (void) {
	return fso_gsm_at_monitor_get_neighbour_cell_information_construct (FSO_GSM_TYPE_AT_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION);
}


static void fso_gsm_at_monitor_get_neighbour_cell_information_class_init (FsoGsmAtMonitorGetNeighbourCellInformationClass * klass) {
	fso_gsm_at_monitor_get_neighbour_cell_information_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION_CLASS (klass)->run = fso_gsm_at_monitor_get_neighbour_cell_information_real_run;
	FSO_GSM_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION_CLASS (klass)->run_finish = fso_gsm_at_monitor_get_neighbour_cell_information_real_run_finish;
}


static void fso_gsm_at_monitor_get_neighbour_cell_information_instance_init (FsoGsmAtMonitorGetNeighbourCellInformation * self) {
}


GType fso_gsm_at_monitor_get_neighbour_cell_information_get_type (void) {
	static volatile gsize fso_gsm_at_monitor_get_neighbour_cell_information_type_id__volatile = 0;
	if (g_once_init_enter (&fso_gsm_at_monitor_get_neighbour_cell_information_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FsoGsmAtMonitorGetNeighbourCellInformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fso_gsm_at_monitor_get_neighbour_cell_information_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FsoGsmAtMonitorGetNeighbourCellInformation), 0, (GInstanceInitFunc) fso_gsm_at_monitor_get_neighbour_cell_information_instance_init, NULL };
		GType fso_gsm_at_monitor_get_neighbour_cell_information_type_id;
		fso_gsm_at_monitor_get_neighbour_cell_information_type_id = g_type_register_static (FSO_GSM_TYPE_MONITOR_GET_NEIGHBOUR_CELL_INFORMATION, "FsoGsmAtMonitorGetNeighbourCellInformation", &g_define_type_info, 0);
		g_once_init_leave (&fso_gsm_at_monitor_get_neighbour_cell_information_type_id__volatile, fso_gsm_at_monitor_get_neighbour_cell_information_type_id);
	}
	return fso_gsm_at_monitor_get_neighbour_cell_information_type_id__volatile;
}



