/* atvmmediators.c generated by valac 0.14.2, the Vala compiler
 * generated from atvmmediators.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>
#include <stdlib.h>
#include <string.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_VOICE_MAILBOX_GET_NUMBER (fso_gsm_voice_mailbox_get_number_get_type ())
#define FSO_GSM_VOICE_MAILBOX_GET_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_VOICE_MAILBOX_GET_NUMBER, FsoGsmVoiceMailboxGetNumber))
#define FSO_GSM_VOICE_MAILBOX_GET_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_VOICE_MAILBOX_GET_NUMBER, FsoGsmVoiceMailboxGetNumberClass))
#define FSO_GSM_IS_VOICE_MAILBOX_GET_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_VOICE_MAILBOX_GET_NUMBER))
#define FSO_GSM_IS_VOICE_MAILBOX_GET_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_VOICE_MAILBOX_GET_NUMBER))
#define FSO_GSM_VOICE_MAILBOX_GET_NUMBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_VOICE_MAILBOX_GET_NUMBER, FsoGsmVoiceMailboxGetNumberClass))

typedef struct _FsoGsmVoiceMailboxGetNumber FsoGsmVoiceMailboxGetNumber;
typedef struct _FsoGsmVoiceMailboxGetNumberClass FsoGsmVoiceMailboxGetNumberClass;
typedef struct _FsoGsmVoiceMailboxGetNumberPrivate FsoGsmVoiceMailboxGetNumberPrivate;

#define FSO_GSM_TYPE_AT_VOICE_MAILBOX_GET_NUMBER (fso_gsm_at_voice_mailbox_get_number_get_type ())
#define FSO_GSM_AT_VOICE_MAILBOX_GET_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_AT_VOICE_MAILBOX_GET_NUMBER, FsoGsmAtVoiceMailboxGetNumber))
#define FSO_GSM_AT_VOICE_MAILBOX_GET_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_AT_VOICE_MAILBOX_GET_NUMBER, FsoGsmAtVoiceMailboxGetNumberClass))
#define FSO_GSM_IS_AT_VOICE_MAILBOX_GET_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_AT_VOICE_MAILBOX_GET_NUMBER))
#define FSO_GSM_IS_AT_VOICE_MAILBOX_GET_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_AT_VOICE_MAILBOX_GET_NUMBER))
#define FSO_GSM_AT_VOICE_MAILBOX_GET_NUMBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_AT_VOICE_MAILBOX_GET_NUMBER, FsoGsmAtVoiceMailboxGetNumberClass))

typedef struct _FsoGsmAtVoiceMailboxGetNumber FsoGsmAtVoiceMailboxGetNumber;
typedef struct _FsoGsmAtVoiceMailboxGetNumberClass FsoGsmAtVoiceMailboxGetNumberClass;
typedef struct _FsoGsmAtVoiceMailboxGetNumberPrivate FsoGsmAtVoiceMailboxGetNumberPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _FsoGsmAtVoiceMailboxGetNumberRunData FsoGsmAtVoiceMailboxGetNumberRunData;

#define FSO_GSM_TYPE_VOICE_MAILBOX_SET_NUMBER (fso_gsm_voice_mailbox_set_number_get_type ())
#define FSO_GSM_VOICE_MAILBOX_SET_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_VOICE_MAILBOX_SET_NUMBER, FsoGsmVoiceMailboxSetNumber))
#define FSO_GSM_VOICE_MAILBOX_SET_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_VOICE_MAILBOX_SET_NUMBER, FsoGsmVoiceMailboxSetNumberClass))
#define FSO_GSM_IS_VOICE_MAILBOX_SET_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_VOICE_MAILBOX_SET_NUMBER))
#define FSO_GSM_IS_VOICE_MAILBOX_SET_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_VOICE_MAILBOX_SET_NUMBER))
#define FSO_GSM_VOICE_MAILBOX_SET_NUMBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_VOICE_MAILBOX_SET_NUMBER, FsoGsmVoiceMailboxSetNumberClass))

typedef struct _FsoGsmVoiceMailboxSetNumber FsoGsmVoiceMailboxSetNumber;
typedef struct _FsoGsmVoiceMailboxSetNumberClass FsoGsmVoiceMailboxSetNumberClass;
typedef struct _FsoGsmVoiceMailboxSetNumberPrivate FsoGsmVoiceMailboxSetNumberPrivate;

#define FSO_GSM_TYPE_AT_VOICE_MAILBOX_SET_NUMBER (fso_gsm_at_voice_mailbox_set_number_get_type ())
#define FSO_GSM_AT_VOICE_MAILBOX_SET_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_AT_VOICE_MAILBOX_SET_NUMBER, FsoGsmAtVoiceMailboxSetNumber))
#define FSO_GSM_AT_VOICE_MAILBOX_SET_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_AT_VOICE_MAILBOX_SET_NUMBER, FsoGsmAtVoiceMailboxSetNumberClass))
#define FSO_GSM_IS_AT_VOICE_MAILBOX_SET_NUMBER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_AT_VOICE_MAILBOX_SET_NUMBER))
#define FSO_GSM_IS_AT_VOICE_MAILBOX_SET_NUMBER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_AT_VOICE_MAILBOX_SET_NUMBER))
#define FSO_GSM_AT_VOICE_MAILBOX_SET_NUMBER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_AT_VOICE_MAILBOX_SET_NUMBER, FsoGsmAtVoiceMailboxSetNumberClass))

typedef struct _FsoGsmAtVoiceMailboxSetNumber FsoGsmAtVoiceMailboxSetNumber;
typedef struct _FsoGsmAtVoiceMailboxSetNumberClass FsoGsmAtVoiceMailboxSetNumberClass;
typedef struct _FsoGsmAtVoiceMailboxSetNumberPrivate FsoGsmAtVoiceMailboxSetNumberPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _FsoGsmAtVoiceMailboxSetNumberRunData FsoGsmAtVoiceMailboxSetNumberRunData;

struct _FsoGsmMediatorIface {
	GTypeInterface parent_iface;
};

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

struct _FsoGsmAbstractMediatorClass {
	GObjectClass parent_class;
};

struct _FsoGsmVoiceMailboxGetNumber {
	FsoGsmAbstractMediator parent_instance;
	FsoGsmVoiceMailboxGetNumberPrivate * priv;
	gchar* number;
};

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

struct _FsoGsmAtVoiceMailboxGetNumber {
	FsoGsmVoiceMailboxGetNumber parent_instance;
	FsoGsmAtVoiceMailboxGetNumberPrivate * priv;
};

struct _FsoGsmAtVoiceMailboxGetNumberClass {
	FsoGsmVoiceMailboxGetNumberClass parent_class;
};

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

struct _FsoGsmVoiceMailboxSetNumber {
	FsoGsmAbstractMediator parent_instance;
	FsoGsmVoiceMailboxSetNumberPrivate * priv;
};

struct _FsoGsmVoiceMailboxSetNumberClass {
	FsoGsmAbstractMediatorClass parent_class;
	void (*run) (FsoGsmVoiceMailboxSetNumber* self, const gchar* number, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*run_finish) (FsoGsmVoiceMailboxSetNumber* self, GAsyncResult* _res_, GError** error);
};

struct _FsoGsmAtVoiceMailboxSetNumber {
	FsoGsmVoiceMailboxSetNumber parent_instance;
	FsoGsmAtVoiceMailboxSetNumberPrivate * priv;
};

struct _FsoGsmAtVoiceMailboxSetNumberClass {
	FsoGsmVoiceMailboxSetNumberClass parent_class;
};

struct _FsoGsmAtVoiceMailboxSetNumberRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmAtVoiceMailboxSetNumber* self;
	gchar* number;
	GError* _tmp0_;
	GError * _inner_error_;
};


static gpointer fso_gsm_at_voice_mailbox_get_number_parent_class = NULL;
static gpointer fso_gsm_at_voice_mailbox_set_number_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_voice_mailbox_get_number_get_type (void) G_GNUC_CONST;
GType fso_gsm_at_voice_mailbox_get_number_get_type (void) G_GNUC_CONST;
enum  {
	FSO_GSM_AT_VOICE_MAILBOX_GET_NUMBER_DUMMY_PROPERTY
};
static void fso_gsm_at_voice_mailbox_get_number_real_run_data_free (gpointer _data);
static void fso_gsm_at_voice_mailbox_get_number_real_run (FsoGsmVoiceMailboxGetNumber* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_at_voice_mailbox_get_number_real_run_co (FsoGsmAtVoiceMailboxGetNumberRunData* _data_);
FsoGsmAtVoiceMailboxGetNumber* fso_gsm_at_voice_mailbox_get_number_new (void);
FsoGsmAtVoiceMailboxGetNumber* fso_gsm_at_voice_mailbox_get_number_construct (GType object_type);
FsoGsmVoiceMailboxGetNumber* fso_gsm_voice_mailbox_get_number_construct (GType object_type);
GType fso_gsm_voice_mailbox_set_number_get_type (void) G_GNUC_CONST;
GType fso_gsm_at_voice_mailbox_set_number_get_type (void) G_GNUC_CONST;
enum  {
	FSO_GSM_AT_VOICE_MAILBOX_SET_NUMBER_DUMMY_PROPERTY
};
static void fso_gsm_at_voice_mailbox_set_number_real_run_data_free (gpointer _data);
static void fso_gsm_at_voice_mailbox_set_number_real_run (FsoGsmVoiceMailboxSetNumber* base, const gchar* number, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_at_voice_mailbox_set_number_real_run_co (FsoGsmAtVoiceMailboxSetNumberRunData* _data_);
FsoGsmAtVoiceMailboxSetNumber* fso_gsm_at_voice_mailbox_set_number_new (void);
FsoGsmAtVoiceMailboxSetNumber* fso_gsm_at_voice_mailbox_set_number_construct (GType object_type);
FsoGsmVoiceMailboxSetNumber* fso_gsm_voice_mailbox_set_number_construct (GType object_type);


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


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


static void fso_gsm_at_voice_mailbox_get_number_real_run (FsoGsmVoiceMailboxGetNumber* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmAtVoiceMailboxGetNumber * self;
	FsoGsmAtVoiceMailboxGetNumberRunData* _data_;
	FsoGsmAtVoiceMailboxGetNumber* _tmp0_;
	self = (FsoGsmAtVoiceMailboxGetNumber*) base;
	_data_ = g_slice_new0 (FsoGsmAtVoiceMailboxGetNumberRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_at_voice_mailbox_get_number_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_at_voice_mailbox_get_number_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_at_voice_mailbox_get_number_real_run_co (_data_);
}


static void fso_gsm_at_voice_mailbox_get_number_real_run_finish (FsoGsmVoiceMailboxGetNumber* base, GAsyncResult* _res_, GError** error) {
	FsoGsmAtVoiceMailboxGetNumberRunData* _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_voice_mailbox_get_number_real_run_co (FsoGsmAtVoiceMailboxGetNumberRunData* _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;
}


FsoGsmAtVoiceMailboxGetNumber* fso_gsm_at_voice_mailbox_get_number_construct (GType object_type) {
	FsoGsmAtVoiceMailboxGetNumber * self = NULL;
	self = (FsoGsmAtVoiceMailboxGetNumber*) fso_gsm_voice_mailbox_get_number_construct (object_type);
	return self;
}


FsoGsmAtVoiceMailboxGetNumber* fso_gsm_at_voice_mailbox_get_number_new (void) {
	return fso_gsm_at_voice_mailbox_get_number_construct (FSO_GSM_TYPE_AT_VOICE_MAILBOX_GET_NUMBER);
}


static void fso_gsm_at_voice_mailbox_get_number_class_init (FsoGsmAtVoiceMailboxGetNumberClass * klass) {
	fso_gsm_at_voice_mailbox_get_number_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_VOICE_MAILBOX_GET_NUMBER_CLASS (klass)->run = fso_gsm_at_voice_mailbox_get_number_real_run;
	FSO_GSM_VOICE_MAILBOX_GET_NUMBER_CLASS (klass)->run_finish = fso_gsm_at_voice_mailbox_get_number_real_run_finish;
}


static void fso_gsm_at_voice_mailbox_get_number_instance_init (FsoGsmAtVoiceMailboxGetNumber * self) {
}


/**
 * Voice Mailbox Mediators
 **/
GType fso_gsm_at_voice_mailbox_get_number_get_type (void) {
	static volatile gsize fso_gsm_at_voice_mailbox_get_number_type_id__volatile = 0;
	if (g_once_init_enter (&fso_gsm_at_voice_mailbox_get_number_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FsoGsmAtVoiceMailboxGetNumberClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fso_gsm_at_voice_mailbox_get_number_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FsoGsmAtVoiceMailboxGetNumber), 0, (GInstanceInitFunc) fso_gsm_at_voice_mailbox_get_number_instance_init, NULL };
		GType fso_gsm_at_voice_mailbox_get_number_type_id;
		fso_gsm_at_voice_mailbox_get_number_type_id = g_type_register_static (FSO_GSM_TYPE_VOICE_MAILBOX_GET_NUMBER, "FsoGsmAtVoiceMailboxGetNumber", &g_define_type_info, 0);
		g_once_init_leave (&fso_gsm_at_voice_mailbox_get_number_type_id__volatile, fso_gsm_at_voice_mailbox_get_number_type_id);
	}
	return fso_gsm_at_voice_mailbox_get_number_type_id__volatile;
}


static void fso_gsm_at_voice_mailbox_set_number_real_run_data_free (gpointer _data) {
	FsoGsmAtVoiceMailboxSetNumberRunData* _data_;
	_data_ = _data;
	_g_free0 (_data_->number);
	_g_object_unref0 (_data_->self);
	g_slice_free (FsoGsmAtVoiceMailboxSetNumberRunData, _data_);
}


static void fso_gsm_at_voice_mailbox_set_number_real_run (FsoGsmVoiceMailboxSetNumber* base, const gchar* number, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmAtVoiceMailboxSetNumber * self;
	FsoGsmAtVoiceMailboxSetNumberRunData* _data_;
	FsoGsmAtVoiceMailboxSetNumber* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	self = (FsoGsmAtVoiceMailboxSetNumber*) base;
	_data_ = g_slice_new0 (FsoGsmAtVoiceMailboxSetNumberRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_at_voice_mailbox_set_number_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_at_voice_mailbox_set_number_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = number;
	_tmp2_ = g_strdup (_tmp1_);
	_data_->number = _tmp2_;
	fso_gsm_at_voice_mailbox_set_number_real_run_co (_data_);
}


static void fso_gsm_at_voice_mailbox_set_number_real_run_finish (FsoGsmVoiceMailboxSetNumber* base, GAsyncResult* _res_, GError** error) {
	FsoGsmAtVoiceMailboxSetNumberRunData* _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_voice_mailbox_set_number_real_run_co (FsoGsmAtVoiceMailboxSetNumberRunData* _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;
}


FsoGsmAtVoiceMailboxSetNumber* fso_gsm_at_voice_mailbox_set_number_construct (GType object_type) {
	FsoGsmAtVoiceMailboxSetNumber * self = NULL;
	self = (FsoGsmAtVoiceMailboxSetNumber*) fso_gsm_voice_mailbox_set_number_construct (object_type);
	return self;
}


FsoGsmAtVoiceMailboxSetNumber* fso_gsm_at_voice_mailbox_set_number_new (void) {
	return fso_gsm_at_voice_mailbox_set_number_construct (FSO_GSM_TYPE_AT_VOICE_MAILBOX_SET_NUMBER);
}


static void fso_gsm_at_voice_mailbox_set_number_class_init (FsoGsmAtVoiceMailboxSetNumberClass * klass) {
	fso_gsm_at_voice_mailbox_set_number_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_VOICE_MAILBOX_SET_NUMBER_CLASS (klass)->run = fso_gsm_at_voice_mailbox_set_number_real_run;
	FSO_GSM_VOICE_MAILBOX_SET_NUMBER_CLASS (klass)->run_finish = fso_gsm_at_voice_mailbox_set_number_real_run_finish;
}


static void fso_gsm_at_voice_mailbox_set_number_instance_init (FsoGsmAtVoiceMailboxSetNumber * self) {
}


GType fso_gsm_at_voice_mailbox_set_number_get_type (void) {
	static volatile gsize fso_gsm_at_voice_mailbox_set_number_type_id__volatile = 0;
	if (g_once_init_enter (&fso_gsm_at_voice_mailbox_set_number_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FsoGsmAtVoiceMailboxSetNumberClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fso_gsm_at_voice_mailbox_set_number_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FsoGsmAtVoiceMailboxSetNumber), 0, (GInstanceInitFunc) fso_gsm_at_voice_mailbox_set_number_instance_init, NULL };
		GType fso_gsm_at_voice_mailbox_set_number_type_id;
		fso_gsm_at_voice_mailbox_set_number_type_id = g_type_register_static (FSO_GSM_TYPE_VOICE_MAILBOX_SET_NUMBER, "FsoGsmAtVoiceMailboxSetNumber", &g_define_type_info, 0);
		g_once_init_leave (&fso_gsm_at_voice_mailbox_set_number_type_id__volatile, fso_gsm_at_voice_mailbox_set_number_type_id);
	}
	return fso_gsm_at_voice_mailbox_set_number_type_id__volatile;
}



