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

/*
 * Copyright (C) 2010-2011 Simon Busch <morphis@gravedo.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 <fsogsm.h>
#include <gio/gio.h>
#include <freesmartphone.h>
#include <stdlib.h>
#include <string.h>
#include <fsobasics.h>
#include <msmcomm-specs.h>
#include <fsotransport.h>
#include <time.h>


#define TYPE_MSM_DEVICE_GET_FUNCTIONALITY (msm_device_get_functionality_get_type ())
#define MSM_DEVICE_GET_FUNCTIONALITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_GET_FUNCTIONALITY, MsmDeviceGetFunctionality))
#define MSM_DEVICE_GET_FUNCTIONALITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_GET_FUNCTIONALITY, MsmDeviceGetFunctionalityClass))
#define IS_MSM_DEVICE_GET_FUNCTIONALITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_GET_FUNCTIONALITY))
#define IS_MSM_DEVICE_GET_FUNCTIONALITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_GET_FUNCTIONALITY))
#define MSM_DEVICE_GET_FUNCTIONALITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_GET_FUNCTIONALITY, MsmDeviceGetFunctionalityClass))

typedef struct _MsmDeviceGetFunctionality MsmDeviceGetFunctionality;
typedef struct _MsmDeviceGetFunctionalityClass MsmDeviceGetFunctionalityClass;
typedef struct _MsmDeviceGetFunctionalityPrivate MsmDeviceGetFunctionalityPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _MsmDeviceGetFunctionalityRunData MsmDeviceGetFunctionalityRunData;

#define TYPE_MSM_DEVICE_GET_FEATURES (msm_device_get_features_get_type ())
#define MSM_DEVICE_GET_FEATURES(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_GET_FEATURES, MsmDeviceGetFeatures))
#define MSM_DEVICE_GET_FEATURES_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_GET_FEATURES, MsmDeviceGetFeaturesClass))
#define IS_MSM_DEVICE_GET_FEATURES(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_GET_FEATURES))
#define IS_MSM_DEVICE_GET_FEATURES_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_GET_FEATURES))
#define MSM_DEVICE_GET_FEATURES_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_GET_FEATURES, MsmDeviceGetFeaturesClass))

typedef struct _MsmDeviceGetFeatures MsmDeviceGetFeatures;
typedef struct _MsmDeviceGetFeaturesClass MsmDeviceGetFeaturesClass;
typedef struct _MsmDeviceGetFeaturesPrivate MsmDeviceGetFeaturesPrivate;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
typedef struct _MsmDeviceGetFeaturesRunData MsmDeviceGetFeaturesRunData;

#define TYPE_MSM_DEVICE_GET_INFORMATION (msm_device_get_information_get_type ())
#define MSM_DEVICE_GET_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_GET_INFORMATION, MsmDeviceGetInformation))
#define MSM_DEVICE_GET_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_GET_INFORMATION, MsmDeviceGetInformationClass))
#define IS_MSM_DEVICE_GET_INFORMATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_GET_INFORMATION))
#define IS_MSM_DEVICE_GET_INFORMATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_GET_INFORMATION))
#define MSM_DEVICE_GET_INFORMATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_GET_INFORMATION, MsmDeviceGetInformationClass))

typedef struct _MsmDeviceGetInformation MsmDeviceGetInformation;
typedef struct _MsmDeviceGetInformationClass MsmDeviceGetInformationClass;
typedef struct _MsmDeviceGetInformationPrivate MsmDeviceGetInformationPrivate;

#define TYPE_MSM_CHANNEL (msm_channel_get_type ())
#define MSM_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_CHANNEL, MsmChannel))
#define MSM_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_CHANNEL, MsmChannelClass))
#define IS_MSM_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_CHANNEL))
#define IS_MSM_CHANNEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_CHANNEL))
#define MSM_CHANNEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_CHANNEL, MsmChannelClass))

typedef struct _MsmChannel MsmChannel;
typedef struct _MsmChannelClass MsmChannelClass;
typedef struct _MsmChannelPrivate MsmChannelPrivate;

#define TYPE_MSM_UNSOLICITED_RESPONSE_HANDLER (msm_unsolicited_response_handler_get_type ())
#define MSM_UNSOLICITED_RESPONSE_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_UNSOLICITED_RESPONSE_HANDLER, MsmUnsolicitedResponseHandler))
#define MSM_UNSOLICITED_RESPONSE_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_UNSOLICITED_RESPONSE_HANDLER, MsmUnsolicitedResponseHandlerClass))
#define IS_MSM_UNSOLICITED_RESPONSE_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_UNSOLICITED_RESPONSE_HANDLER))
#define IS_MSM_UNSOLICITED_RESPONSE_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_UNSOLICITED_RESPONSE_HANDLER))
#define MSM_UNSOLICITED_RESPONSE_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_UNSOLICITED_RESPONSE_HANDLER, MsmUnsolicitedResponseHandlerClass))

typedef struct _MsmUnsolicitedResponseHandler MsmUnsolicitedResponseHandler;
typedef struct _MsmUnsolicitedResponseHandlerClass MsmUnsolicitedResponseHandlerClass;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _MsmDeviceGetInformationRunData MsmDeviceGetInformationRunData;

#define TYPE_MSM_DEVICE_GET_POWER_STATUS (msm_device_get_power_status_get_type ())
#define MSM_DEVICE_GET_POWER_STATUS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_GET_POWER_STATUS, MsmDeviceGetPowerStatus))
#define MSM_DEVICE_GET_POWER_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_GET_POWER_STATUS, MsmDeviceGetPowerStatusClass))
#define IS_MSM_DEVICE_GET_POWER_STATUS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_GET_POWER_STATUS))
#define IS_MSM_DEVICE_GET_POWER_STATUS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_GET_POWER_STATUS))
#define MSM_DEVICE_GET_POWER_STATUS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_GET_POWER_STATUS, MsmDeviceGetPowerStatusClass))

typedef struct _MsmDeviceGetPowerStatus MsmDeviceGetPowerStatus;
typedef struct _MsmDeviceGetPowerStatusClass MsmDeviceGetPowerStatusClass;
typedef struct _MsmDeviceGetPowerStatusPrivate MsmDeviceGetPowerStatusPrivate;
typedef struct _MsmDeviceGetPowerStatusRunData MsmDeviceGetPowerStatusRunData;

#define TYPE_MSM_DEVICE_SET_FUNCTIONALITY (msm_device_set_functionality_get_type ())
#define MSM_DEVICE_SET_FUNCTIONALITY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_SET_FUNCTIONALITY, MsmDeviceSetFunctionality))
#define MSM_DEVICE_SET_FUNCTIONALITY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_SET_FUNCTIONALITY, MsmDeviceSetFunctionalityClass))
#define IS_MSM_DEVICE_SET_FUNCTIONALITY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_SET_FUNCTIONALITY))
#define IS_MSM_DEVICE_SET_FUNCTIONALITY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_SET_FUNCTIONALITY))
#define MSM_DEVICE_SET_FUNCTIONALITY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_SET_FUNCTIONALITY, MsmDeviceSetFunctionalityClass))

typedef struct _MsmDeviceSetFunctionality MsmDeviceSetFunctionality;
typedef struct _MsmDeviceSetFunctionalityClass MsmDeviceSetFunctionalityClass;
typedef struct _MsmDeviceSetFunctionalityPrivate MsmDeviceSetFunctionalityPrivate;
typedef struct _MsmDeviceSetFunctionalityRunData MsmDeviceSetFunctionalityRunData;

#define TYPE_MSM_DEVICE_GET_CURRENT_TIME (msm_device_get_current_time_get_type ())
#define MSM_DEVICE_GET_CURRENT_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_GET_CURRENT_TIME, MsmDeviceGetCurrentTime))
#define MSM_DEVICE_GET_CURRENT_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_GET_CURRENT_TIME, MsmDeviceGetCurrentTimeClass))
#define IS_MSM_DEVICE_GET_CURRENT_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_GET_CURRENT_TIME))
#define IS_MSM_DEVICE_GET_CURRENT_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_GET_CURRENT_TIME))
#define MSM_DEVICE_GET_CURRENT_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_GET_CURRENT_TIME, MsmDeviceGetCurrentTimeClass))

typedef struct _MsmDeviceGetCurrentTime MsmDeviceGetCurrentTime;
typedef struct _MsmDeviceGetCurrentTimeClass MsmDeviceGetCurrentTimeClass;
typedef struct _MsmDeviceGetCurrentTimePrivate MsmDeviceGetCurrentTimePrivate;
typedef struct _MsmDeviceGetCurrentTimeRunData MsmDeviceGetCurrentTimeRunData;

#define TYPE_MSM_DEVICE_SET_CURRENT_TIME (msm_device_set_current_time_get_type ())
#define MSM_DEVICE_SET_CURRENT_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_SET_CURRENT_TIME, MsmDeviceSetCurrentTime))
#define MSM_DEVICE_SET_CURRENT_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_SET_CURRENT_TIME, MsmDeviceSetCurrentTimeClass))
#define IS_MSM_DEVICE_SET_CURRENT_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_SET_CURRENT_TIME))
#define IS_MSM_DEVICE_SET_CURRENT_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_SET_CURRENT_TIME))
#define MSM_DEVICE_SET_CURRENT_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_SET_CURRENT_TIME, MsmDeviceSetCurrentTimeClass))

typedef struct _MsmDeviceSetCurrentTime MsmDeviceSetCurrentTime;
typedef struct _MsmDeviceSetCurrentTimeClass MsmDeviceSetCurrentTimeClass;
typedef struct _MsmDeviceSetCurrentTimePrivate MsmDeviceSetCurrentTimePrivate;
typedef struct _MsmDeviceSetCurrentTimeRunData MsmDeviceSetCurrentTimeRunData;

#define TYPE_MSM_DEVICE_GET_ALARM_TIME (msm_device_get_alarm_time_get_type ())
#define MSM_DEVICE_GET_ALARM_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_GET_ALARM_TIME, MsmDeviceGetAlarmTime))
#define MSM_DEVICE_GET_ALARM_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_GET_ALARM_TIME, MsmDeviceGetAlarmTimeClass))
#define IS_MSM_DEVICE_GET_ALARM_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_GET_ALARM_TIME))
#define IS_MSM_DEVICE_GET_ALARM_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_GET_ALARM_TIME))
#define MSM_DEVICE_GET_ALARM_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_GET_ALARM_TIME, MsmDeviceGetAlarmTimeClass))

typedef struct _MsmDeviceGetAlarmTime MsmDeviceGetAlarmTime;
typedef struct _MsmDeviceGetAlarmTimeClass MsmDeviceGetAlarmTimeClass;
typedef struct _MsmDeviceGetAlarmTimePrivate MsmDeviceGetAlarmTimePrivate;
typedef struct _MsmDeviceGetAlarmTimeRunData MsmDeviceGetAlarmTimeRunData;

#define TYPE_MSM_DEVICE_GET_MICROPHONE_MUTED (msm_device_get_microphone_muted_get_type ())
#define MSM_DEVICE_GET_MICROPHONE_MUTED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_GET_MICROPHONE_MUTED, MsmDeviceGetMicrophoneMuted))
#define MSM_DEVICE_GET_MICROPHONE_MUTED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_GET_MICROPHONE_MUTED, MsmDeviceGetMicrophoneMutedClass))
#define IS_MSM_DEVICE_GET_MICROPHONE_MUTED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_GET_MICROPHONE_MUTED))
#define IS_MSM_DEVICE_GET_MICROPHONE_MUTED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_GET_MICROPHONE_MUTED))
#define MSM_DEVICE_GET_MICROPHONE_MUTED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_GET_MICROPHONE_MUTED, MsmDeviceGetMicrophoneMutedClass))

typedef struct _MsmDeviceGetMicrophoneMuted MsmDeviceGetMicrophoneMuted;
typedef struct _MsmDeviceGetMicrophoneMutedClass MsmDeviceGetMicrophoneMutedClass;
typedef struct _MsmDeviceGetMicrophoneMutedPrivate MsmDeviceGetMicrophoneMutedPrivate;
typedef struct _MsmDeviceGetMicrophoneMutedRunData MsmDeviceGetMicrophoneMutedRunData;

#define TYPE_MSM_DEVICE_GET_SIM_BUFFERS_SMS (msm_device_get_sim_buffers_sms_get_type ())
#define MSM_DEVICE_GET_SIM_BUFFERS_SMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_GET_SIM_BUFFERS_SMS, MsmDeviceGetSimBuffersSms))
#define MSM_DEVICE_GET_SIM_BUFFERS_SMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_GET_SIM_BUFFERS_SMS, MsmDeviceGetSimBuffersSmsClass))
#define IS_MSM_DEVICE_GET_SIM_BUFFERS_SMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_GET_SIM_BUFFERS_SMS))
#define IS_MSM_DEVICE_GET_SIM_BUFFERS_SMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_GET_SIM_BUFFERS_SMS))
#define MSM_DEVICE_GET_SIM_BUFFERS_SMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_GET_SIM_BUFFERS_SMS, MsmDeviceGetSimBuffersSmsClass))

typedef struct _MsmDeviceGetSimBuffersSms MsmDeviceGetSimBuffersSms;
typedef struct _MsmDeviceGetSimBuffersSmsClass MsmDeviceGetSimBuffersSmsClass;
typedef struct _MsmDeviceGetSimBuffersSmsPrivate MsmDeviceGetSimBuffersSmsPrivate;
typedef struct _MsmDeviceGetSimBuffersSmsRunData MsmDeviceGetSimBuffersSmsRunData;

#define TYPE_MSM_DEVICE_GET_SPEAKER_VOLUME (msm_device_get_speaker_volume_get_type ())
#define MSM_DEVICE_GET_SPEAKER_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_GET_SPEAKER_VOLUME, MsmDeviceGetSpeakerVolume))
#define MSM_DEVICE_GET_SPEAKER_VOLUME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_GET_SPEAKER_VOLUME, MsmDeviceGetSpeakerVolumeClass))
#define IS_MSM_DEVICE_GET_SPEAKER_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_GET_SPEAKER_VOLUME))
#define IS_MSM_DEVICE_GET_SPEAKER_VOLUME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_GET_SPEAKER_VOLUME))
#define MSM_DEVICE_GET_SPEAKER_VOLUME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_GET_SPEAKER_VOLUME, MsmDeviceGetSpeakerVolumeClass))

typedef struct _MsmDeviceGetSpeakerVolume MsmDeviceGetSpeakerVolume;
typedef struct _MsmDeviceGetSpeakerVolumeClass MsmDeviceGetSpeakerVolumeClass;
typedef struct _MsmDeviceGetSpeakerVolumePrivate MsmDeviceGetSpeakerVolumePrivate;
typedef struct _MsmDeviceGetSpeakerVolumeRunData MsmDeviceGetSpeakerVolumeRunData;

#define TYPE_MSM_DEVICE_SET_ALARM_TIME (msm_device_set_alarm_time_get_type ())
#define MSM_DEVICE_SET_ALARM_TIME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_SET_ALARM_TIME, MsmDeviceSetAlarmTime))
#define MSM_DEVICE_SET_ALARM_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_SET_ALARM_TIME, MsmDeviceSetAlarmTimeClass))
#define IS_MSM_DEVICE_SET_ALARM_TIME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_SET_ALARM_TIME))
#define IS_MSM_DEVICE_SET_ALARM_TIME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_SET_ALARM_TIME))
#define MSM_DEVICE_SET_ALARM_TIME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_SET_ALARM_TIME, MsmDeviceSetAlarmTimeClass))

typedef struct _MsmDeviceSetAlarmTime MsmDeviceSetAlarmTime;
typedef struct _MsmDeviceSetAlarmTimeClass MsmDeviceSetAlarmTimeClass;
typedef struct _MsmDeviceSetAlarmTimePrivate MsmDeviceSetAlarmTimePrivate;
typedef struct _MsmDeviceSetAlarmTimeRunData MsmDeviceSetAlarmTimeRunData;

#define TYPE_MSM_DEVICE_SET_MICROPHONE_MUTED (msm_device_set_microphone_muted_get_type ())
#define MSM_DEVICE_SET_MICROPHONE_MUTED(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_SET_MICROPHONE_MUTED, MsmDeviceSetMicrophoneMuted))
#define MSM_DEVICE_SET_MICROPHONE_MUTED_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_SET_MICROPHONE_MUTED, MsmDeviceSetMicrophoneMutedClass))
#define IS_MSM_DEVICE_SET_MICROPHONE_MUTED(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_SET_MICROPHONE_MUTED))
#define IS_MSM_DEVICE_SET_MICROPHONE_MUTED_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_SET_MICROPHONE_MUTED))
#define MSM_DEVICE_SET_MICROPHONE_MUTED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_SET_MICROPHONE_MUTED, MsmDeviceSetMicrophoneMutedClass))

typedef struct _MsmDeviceSetMicrophoneMuted MsmDeviceSetMicrophoneMuted;
typedef struct _MsmDeviceSetMicrophoneMutedClass MsmDeviceSetMicrophoneMutedClass;
typedef struct _MsmDeviceSetMicrophoneMutedPrivate MsmDeviceSetMicrophoneMutedPrivate;
typedef struct _MsmDeviceSetMicrophoneMutedRunData MsmDeviceSetMicrophoneMutedRunData;

#define TYPE_MSM_DEVICE_SET_SPEAKER_VOLUME (msm_device_set_speaker_volume_get_type ())
#define MSM_DEVICE_SET_SPEAKER_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MSM_DEVICE_SET_SPEAKER_VOLUME, MsmDeviceSetSpeakerVolume))
#define MSM_DEVICE_SET_SPEAKER_VOLUME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MSM_DEVICE_SET_SPEAKER_VOLUME, MsmDeviceSetSpeakerVolumeClass))
#define IS_MSM_DEVICE_SET_SPEAKER_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MSM_DEVICE_SET_SPEAKER_VOLUME))
#define IS_MSM_DEVICE_SET_SPEAKER_VOLUME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MSM_DEVICE_SET_SPEAKER_VOLUME))
#define MSM_DEVICE_SET_SPEAKER_VOLUME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MSM_DEVICE_SET_SPEAKER_VOLUME, MsmDeviceSetSpeakerVolumeClass))

typedef struct _MsmDeviceSetSpeakerVolume MsmDeviceSetSpeakerVolume;
typedef struct _MsmDeviceSetSpeakerVolumeClass MsmDeviceSetSpeakerVolumeClass;
typedef struct _MsmDeviceSetSpeakerVolumePrivate MsmDeviceSetSpeakerVolumePrivate;
typedef struct _MsmDeviceSetSpeakerVolumeRunData MsmDeviceSetSpeakerVolumeRunData;

struct _MsmDeviceGetFunctionality {
	FsoGsmDeviceGetFunctionality parent_instance;
	MsmDeviceGetFunctionalityPrivate * priv;
};

struct _MsmDeviceGetFunctionalityClass {
	FsoGsmDeviceGetFunctionalityClass parent_class;
};

struct _MsmDeviceGetFunctionalityRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MsmDeviceGetFunctionality* self;
	gchar* _tmp0_;
	gchar* _tmp1_;
	FsoGsmModem* _tmp2_;
	FsoGsmModemData* _tmp3_;
	FsoGsmModemData* _tmp4_;
	gboolean _tmp5_;
	FsoGsmModem* _tmp6_;
	FsoGsmModemData* _tmp7_;
	FsoGsmModemData* _tmp8_;
	const gchar* _tmp9_;
};

struct _MsmDeviceGetFeatures {
	FsoGsmDeviceGetFeatures parent_instance;
	MsmDeviceGetFeaturesPrivate * priv;
};

struct _MsmDeviceGetFeaturesClass {
	FsoGsmDeviceGetFeaturesClass parent_class;
};

struct _MsmDeviceGetFeaturesRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MsmDeviceGetFeatures* self;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* _tmp3_;
	FsoGsmModem* _tmp4_;
	FsoGsmModemData* _tmp5_;
	FsoGsmModemData* data;
	GHashTable* _tmp6_;
	GHashTable* _tmp7_;
	gchar* _tmp8_;
	gboolean _tmp9_;
	GVariant* _tmp10_;
	GHashTable* _tmp11_;
	GHashTable* _tmp12_;
	gchar* _tmp13_;
	gboolean _tmp14_;
	GVariant* _tmp15_;
	GHashTable* _tmp16_;
	GHashTable* _tmp17_;
	gchar* _tmp18_;
	gboolean _tmp19_;
	GVariant* _tmp20_;
	GHashTable* _tmp21_;
	GHashTable* _tmp22_;
	gchar* _tmp23_;
	gboolean _tmp24_;
	GVariant* _tmp25_;
	GHashTable* _tmp26_;
	GHashTable* _tmp27_;
	gchar* _tmp28_;
	const gchar* _tmp29_;
	GVariant* _tmp30_;
	GHashTable* _tmp31_;
	GHashTable* _tmp32_;
	gchar* _tmp33_;
	const gchar* _tmp34_;
	GVariant* _tmp35_;
};

struct _MsmDeviceGetInformation {
	FsoGsmDeviceGetInformation parent_instance;
	MsmDeviceGetInformationPrivate * priv;
};

struct _MsmDeviceGetInformationClass {
	FsoGsmDeviceGetInformationClass parent_class;
};

struct _MsmChannel {
	FsoFrameworkAbstractObject parent_instance;
	MsmChannelPrivate * priv;
	gchar* name;
	MsmUnsolicitedResponseHandler* urc_handler;
	MsmcommManagement* management_service;
	MsmcommState* state_service;
	MsmcommMisc* misc_service;
	MsmcommCall* call_service;
	MsmcommSim* sim_service;
	MsmcommPhonebook* phonebook_service;
	MsmcommNetwork* network_service;
	MsmcommSound* sound_service;
	MsmcommSms* sms_service;
};

struct _MsmChannelClass {
	FsoFrameworkAbstractObjectClass parent_class;
};

struct _MsmDeviceGetInformationRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MsmDeviceGetInformation* self;
	FsoGsmModem* _tmp0_;
	FsoGsmChannel* _tmp1_;
	MsmChannel* channel;
	GHashFunc _tmp2_;
	GEqualFunc _tmp3_;
	GHashTable* _tmp4_;
	GHashTable* _tmp5_;
	GHashTable* _tmp6_;
	GHashTable* _tmp7_;
	gchar* _tmp8_;
	GVariant* _tmp9_;
	GHashTable* _tmp10_;
	GHashTable* _tmp11_;
	gchar* _tmp12_;
	GVariant* _tmp13_;
	MsmcommRadioFirmwareVersionInfo firmware_info;
	MsmChannel* _tmp14_;
	MsmcommMisc* _tmp15_;
	MsmcommRadioFirmwareVersionInfo _tmp16_;
	MsmcommRadioFirmwareVersionInfo _tmp17_;
	GHashTable* _tmp18_;
	GHashTable* _tmp19_;
	gchar* _tmp20_;
	MsmcommRadioFirmwareVersionInfo _tmp21_;
	const gchar* _tmp22_;
	GVariant* _tmp23_;
	GHashTable* _tmp24_;
	GHashTable* _tmp25_;
	gchar* _tmp26_;
	MsmcommRadioFirmwareVersionInfo _tmp27_;
	guint _tmp28_;
	GVariant* _tmp29_;
	MsmChannel* _tmp30_;
	MsmcommMisc* _tmp31_;
	gchar* _tmp32_;
	gchar* imei;
	GHashTable* _tmp33_;
	GHashTable* _tmp34_;
	gchar* _tmp35_;
	const gchar* _tmp36_;
	GVariant* _tmp37_;
	GError* err0;
	GError* _tmp38_;
	const gchar* _tmp39_;
	const gchar* _tmp40_;
	gchar* _tmp41_;
	gchar* msg;
	const gchar* _tmp42_;
	GError* _tmp43_;
	GError* err1;
	GError * _inner_error_;
};

struct _MsmDeviceGetPowerStatus {
	FsoGsmDeviceGetPowerStatus parent_instance;
	MsmDeviceGetPowerStatusPrivate * priv;
};

struct _MsmDeviceGetPowerStatusClass {
	FsoGsmDeviceGetPowerStatusClass parent_class;
};

struct _MsmDeviceGetPowerStatusRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MsmDeviceGetPowerStatus* self;
	FsoGsmModem* _tmp0_;
	FsoGsmChannel* _tmp1_;
	MsmChannel* channel;
	MsmChannel* _tmp2_;
	MsmcommMisc* _tmp3_;
	MsmcommChargerStatusInfo _tmp4_;
	MsmcommChargerStatusInfo charger_info;
	MsmcommChargerStatusInfo _tmp5_;
	MsmcommChargerMode _tmp6_;
	GError* err0;
	GError* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* msg;
	const gchar* _tmp11_;
	GError* _tmp12_;
	GError* err1;
	GError * _inner_error_;
};

struct _MsmDeviceSetFunctionality {
	FsoGsmDeviceSetFunctionality parent_instance;
	MsmDeviceSetFunctionalityPrivate * priv;
};

struct _MsmDeviceSetFunctionalityClass {
	FsoGsmDeviceSetFunctionalityClass parent_class;
};

struct _MsmDeviceSetFunctionalityRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MsmDeviceSetFunctionality* self;
	gchar* level;
	gboolean autoregister;
	gchar* pin;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	GQuark _tmp3_;
	FsoGsmModem* _tmp4_;
	gpointer _tmp5_;
	FsoGsmNetworkRegister* mreg;
	FsoGsmNetworkRegister* _tmp6_;
	FsoGsmModem* _tmp7_;
	gpointer _tmp8_;
	FsoGsmNetworkUnregister* munreg;
	FsoGsmNetworkUnregister* _tmp9_;
	GError* _tmp10_;
	GError * _inner_error_;
};

struct _MsmDeviceGetCurrentTime {
	FsoGsmDeviceGetCurrentTime parent_instance;
	MsmDeviceGetCurrentTimePrivate * priv;
};

struct _MsmDeviceGetCurrentTimeClass {
	FsoGsmDeviceGetCurrentTimeClass parent_class;
};

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

struct _MsmDeviceSetCurrentTime {
	FsoGsmDeviceSetCurrentTime parent_instance;
	MsmDeviceSetCurrentTimePrivate * priv;
};

struct _MsmDeviceSetCurrentTimeClass {
	FsoGsmDeviceSetCurrentTimeClass parent_class;
};

struct _MsmDeviceSetCurrentTimeRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MsmDeviceSetCurrentTime* self;
	gint since_epoch;
	FsoGsmModem* _tmp0_;
	FsoGsmChannel* _tmp1_;
	MsmChannel* channel;
	gint _tmp2_;
	struct tm _tmp3_;
	struct tm t;
	MsmcommDateInfo info;
	struct tm _tmp4_;
	gint _tmp5_;
	struct tm _tmp6_;
	gint _tmp7_;
	struct tm _tmp8_;
	gint _tmp9_;
	struct tm _tmp10_;
	gint _tmp11_;
	struct tm _tmp12_;
	gint _tmp13_;
	struct tm _tmp14_;
	gint _tmp15_;
	MsmChannel* _tmp16_;
	MsmcommMisc* _tmp17_;
	MsmcommDateInfo _tmp18_;
	GError* _error_;
	GError* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	gchar* _tmp22_;
	gchar* msg;
	const gchar* _tmp23_;
	GError* _tmp24_;
	GError * _inner_error_;
};

struct _MsmDeviceGetAlarmTime {
	FsoGsmDeviceGetAlarmTime parent_instance;
	MsmDeviceGetAlarmTimePrivate * priv;
};

struct _MsmDeviceGetAlarmTimeClass {
	FsoGsmDeviceGetAlarmTimeClass parent_class;
};

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

struct _MsmDeviceGetMicrophoneMuted {
	FsoGsmDeviceGetMicrophoneMuted parent_instance;
	MsmDeviceGetMicrophoneMutedPrivate * priv;
};

struct _MsmDeviceGetMicrophoneMutedClass {
	FsoGsmDeviceGetMicrophoneMutedClass parent_class;
};

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

struct _MsmDeviceGetSimBuffersSms {
	FsoGsmDeviceGetSimBuffersSms parent_instance;
	MsmDeviceGetSimBuffersSmsPrivate * priv;
};

struct _MsmDeviceGetSimBuffersSmsClass {
	FsoGsmDeviceGetSimBuffersSmsClass parent_class;
};

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

struct _MsmDeviceGetSpeakerVolume {
	FsoGsmDeviceGetSpeakerVolume parent_instance;
	MsmDeviceGetSpeakerVolumePrivate * priv;
};

struct _MsmDeviceGetSpeakerVolumeClass {
	FsoGsmDeviceGetSpeakerVolumeClass parent_class;
};

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

struct _MsmDeviceSetAlarmTime {
	FsoGsmDeviceSetAlarmTime parent_instance;
	MsmDeviceSetAlarmTimePrivate * priv;
};

struct _MsmDeviceSetAlarmTimeClass {
	FsoGsmDeviceSetAlarmTimeClass parent_class;
};

struct _MsmDeviceSetAlarmTimeRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MsmDeviceSetAlarmTime* self;
	gint since_epoch;
	GError* _tmp0_;
	GError * _inner_error_;
};

struct _MsmDeviceSetMicrophoneMuted {
	FsoGsmDeviceSetMicrophoneMuted parent_instance;
	MsmDeviceSetMicrophoneMutedPrivate * priv;
};

struct _MsmDeviceSetMicrophoneMutedClass {
	FsoGsmDeviceSetMicrophoneMutedClass parent_class;
};

struct _MsmDeviceSetMicrophoneMutedRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MsmDeviceSetMicrophoneMuted* self;
	gboolean muted;
	GError* _tmp0_;
	GError * _inner_error_;
};

struct _MsmDeviceSetSpeakerVolume {
	FsoGsmDeviceSetSpeakerVolume parent_instance;
	MsmDeviceSetSpeakerVolumePrivate * priv;
};

struct _MsmDeviceSetSpeakerVolumeClass {
	FsoGsmDeviceSetSpeakerVolumeClass parent_class;
};

struct _MsmDeviceSetSpeakerVolumeRunData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	MsmDeviceSetSpeakerVolume* self;
	gint volume;
	GError* _tmp0_;
	GError * _inner_error_;
};


static gpointer msm_device_get_functionality_parent_class = NULL;
static GType msm_device_get_functionality_type_id = 0;
static gpointer msm_device_get_features_parent_class = NULL;
static GType msm_device_get_features_type_id = 0;
static gpointer msm_device_get_information_parent_class = NULL;
static GType msm_device_get_information_type_id = 0;
static gpointer msm_device_get_power_status_parent_class = NULL;
static GType msm_device_get_power_status_type_id = 0;
static gpointer msm_device_set_functionality_parent_class = NULL;
static GType msm_device_set_functionality_type_id = 0;
static gpointer msm_device_get_current_time_parent_class = NULL;
static GType msm_device_get_current_time_type_id = 0;
static gpointer msm_device_set_current_time_parent_class = NULL;
static GType msm_device_set_current_time_type_id = 0;
static gpointer msm_device_get_alarm_time_parent_class = NULL;
static GType msm_device_get_alarm_time_type_id = 0;
static gpointer msm_device_get_microphone_muted_parent_class = NULL;
static GType msm_device_get_microphone_muted_type_id = 0;
static gpointer msm_device_get_sim_buffers_sms_parent_class = NULL;
static GType msm_device_get_sim_buffers_sms_type_id = 0;
static gpointer msm_device_get_speaker_volume_parent_class = NULL;
static GType msm_device_get_speaker_volume_type_id = 0;
static gpointer msm_device_set_alarm_time_parent_class = NULL;
static GType msm_device_set_alarm_time_type_id = 0;
static gpointer msm_device_set_microphone_muted_parent_class = NULL;
static GType msm_device_set_microphone_muted_type_id = 0;
static gpointer msm_device_set_speaker_volume_parent_class = NULL;
static GType msm_device_set_speaker_volume_type_id = 0;

GType msm_device_get_functionality_get_type (void) G_GNUC_CONST;
GType msm_device_get_functionality_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_GET_FUNCTIONALITY_DUMMY_PROPERTY
};
static void msm_device_get_functionality_real_run_data_free (gpointer _data);
static void msm_device_get_functionality_real_run (FsoGsmDeviceGetFunctionality* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_get_functionality_real_run_co (MsmDeviceGetFunctionalityRunData* _data_);
gchar* gatherFunctionalityLevel (void);
MsmDeviceGetFunctionality* msm_device_get_functionality_new (void);
MsmDeviceGetFunctionality* msm_device_get_functionality_construct (GType object_type);
GType msm_device_get_features_get_type (void) G_GNUC_CONST;
GType msm_device_get_features_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_GET_FEATURES_DUMMY_PROPERTY
};
static void msm_device_get_features_real_run_data_free (gpointer _data);
static void msm_device_get_features_real_run (FsoGsmDeviceGetFeatures* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_get_features_real_run_co (MsmDeviceGetFeaturesRunData* _data_);
static void _g_free0_ (gpointer var);
static void _g_variant_unref0_ (gpointer var);
static GVariant* _variant_new15 (gboolean value);
static GVariant* _variant_new16 (gboolean value);
static GVariant* _variant_new17 (gboolean value);
static GVariant* _variant_new18 (gboolean value);
static GVariant* _variant_new19 (const gchar* value);
static GVariant* _variant_new20 (const gchar* value);
MsmDeviceGetFeatures* msm_device_get_features_new (void);
MsmDeviceGetFeatures* msm_device_get_features_construct (GType object_type);
GType msm_device_get_information_get_type (void) G_GNUC_CONST;
GType msm_device_get_information_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_GET_INFORMATION_DUMMY_PROPERTY
};
static void msm_device_get_information_real_run_data_free (gpointer _data);
static void msm_device_get_information_real_run (FsoGsmDeviceGetInformation* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_get_information_real_run_co (MsmDeviceGetInformationRunData* _data_);
GType msm_channel_get_type (void) G_GNUC_CONST;
GType msm_channel_register_type (GTypeModule * module);
static GVariant* _variant_new21 (const gchar* value);
static GVariant* _variant_new22 (const gchar* value);
GType msm_unsolicited_response_handler_get_type (void) G_GNUC_CONST;
GType msm_unsolicited_response_handler_register_type (GTypeModule * module);
static void msm_device_get_information_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static GVariant* _variant_new23 (const gchar* value);
static GVariant* _variant_new24 (guint value);
static GVariant* _variant_new25 (const gchar* value);
MsmDeviceGetInformation* msm_device_get_information_new (void);
MsmDeviceGetInformation* msm_device_get_information_construct (GType object_type);
GType msm_device_get_power_status_get_type (void) G_GNUC_CONST;
GType msm_device_get_power_status_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_GET_POWER_STATUS_DUMMY_PROPERTY
};
static void msm_device_get_power_status_real_run_data_free (gpointer _data);
static void msm_device_get_power_status_real_run (FsoGsmDeviceGetPowerStatus* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_get_power_status_real_run_co (MsmDeviceGetPowerStatusRunData* _data_);
static void msm_device_get_power_status_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
MsmDeviceGetPowerStatus* msm_device_get_power_status_new (void);
MsmDeviceGetPowerStatus* msm_device_get_power_status_construct (GType object_type);
GType msm_device_set_functionality_get_type (void) G_GNUC_CONST;
GType msm_device_set_functionality_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_SET_FUNCTIONALITY_DUMMY_PROPERTY
};
static void msm_device_set_functionality_real_run_data_free (gpointer _data);
static void msm_device_set_functionality_real_run (FsoGsmDeviceSetFunctionality* base, const gchar* level, gboolean autoregister, const gchar* pin, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_set_functionality_real_run_co (MsmDeviceSetFunctionalityRunData* _data_);
static void msm_device_set_functionality_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
MsmDeviceSetFunctionality* msm_device_set_functionality_new (void);
MsmDeviceSetFunctionality* msm_device_set_functionality_construct (GType object_type);
GType msm_device_get_current_time_get_type (void) G_GNUC_CONST;
GType msm_device_get_current_time_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_GET_CURRENT_TIME_DUMMY_PROPERTY
};
static void msm_device_get_current_time_real_run_data_free (gpointer _data);
static void msm_device_get_current_time_real_run (FsoGsmDeviceGetCurrentTime* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_get_current_time_real_run_co (MsmDeviceGetCurrentTimeRunData* _data_);
MsmDeviceGetCurrentTime* msm_device_get_current_time_new (void);
MsmDeviceGetCurrentTime* msm_device_get_current_time_construct (GType object_type);
GType msm_device_set_current_time_get_type (void) G_GNUC_CONST;
GType msm_device_set_current_time_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_SET_CURRENT_TIME_DUMMY_PROPERTY
};
static void msm_device_set_current_time_real_run_data_free (gpointer _data);
static void msm_device_set_current_time_real_run (FsoGsmDeviceSetCurrentTime* base, gint since_epoch, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_set_current_time_real_run_co (MsmDeviceSetCurrentTimeRunData* _data_);
static void msm_device_set_current_time_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
MsmDeviceSetCurrentTime* msm_device_set_current_time_new (void);
MsmDeviceSetCurrentTime* msm_device_set_current_time_construct (GType object_type);
GType msm_device_get_alarm_time_get_type (void) G_GNUC_CONST;
GType msm_device_get_alarm_time_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_GET_ALARM_TIME_DUMMY_PROPERTY
};
static void msm_device_get_alarm_time_real_run_data_free (gpointer _data);
static void msm_device_get_alarm_time_real_run (FsoGsmDeviceGetAlarmTime* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_get_alarm_time_real_run_co (MsmDeviceGetAlarmTimeRunData* _data_);
MsmDeviceGetAlarmTime* msm_device_get_alarm_time_new (void);
MsmDeviceGetAlarmTime* msm_device_get_alarm_time_construct (GType object_type);
GType msm_device_get_microphone_muted_get_type (void) G_GNUC_CONST;
GType msm_device_get_microphone_muted_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_GET_MICROPHONE_MUTED_DUMMY_PROPERTY
};
static void msm_device_get_microphone_muted_real_run_data_free (gpointer _data);
static void msm_device_get_microphone_muted_real_run (FsoGsmDeviceGetMicrophoneMuted* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_get_microphone_muted_real_run_co (MsmDeviceGetMicrophoneMutedRunData* _data_);
MsmDeviceGetMicrophoneMuted* msm_device_get_microphone_muted_new (void);
MsmDeviceGetMicrophoneMuted* msm_device_get_microphone_muted_construct (GType object_type);
GType msm_device_get_sim_buffers_sms_get_type (void) G_GNUC_CONST;
GType msm_device_get_sim_buffers_sms_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_GET_SIM_BUFFERS_SMS_DUMMY_PROPERTY
};
static void msm_device_get_sim_buffers_sms_real_run_data_free (gpointer _data);
static void msm_device_get_sim_buffers_sms_real_run (FsoGsmDeviceGetSimBuffersSms* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_get_sim_buffers_sms_real_run_co (MsmDeviceGetSimBuffersSmsRunData* _data_);
MsmDeviceGetSimBuffersSms* msm_device_get_sim_buffers_sms_new (void);
MsmDeviceGetSimBuffersSms* msm_device_get_sim_buffers_sms_construct (GType object_type);
GType msm_device_get_speaker_volume_get_type (void) G_GNUC_CONST;
GType msm_device_get_speaker_volume_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_GET_SPEAKER_VOLUME_DUMMY_PROPERTY
};
static void msm_device_get_speaker_volume_real_run_data_free (gpointer _data);
static void msm_device_get_speaker_volume_real_run (FsoGsmDeviceGetSpeakerVolume* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_get_speaker_volume_real_run_co (MsmDeviceGetSpeakerVolumeRunData* _data_);
MsmDeviceGetSpeakerVolume* msm_device_get_speaker_volume_new (void);
MsmDeviceGetSpeakerVolume* msm_device_get_speaker_volume_construct (GType object_type);
GType msm_device_set_alarm_time_get_type (void) G_GNUC_CONST;
GType msm_device_set_alarm_time_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_SET_ALARM_TIME_DUMMY_PROPERTY
};
static void msm_device_set_alarm_time_real_run_data_free (gpointer _data);
static void msm_device_set_alarm_time_real_run (FsoGsmDeviceSetAlarmTime* base, gint since_epoch, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_set_alarm_time_real_run_co (MsmDeviceSetAlarmTimeRunData* _data_);
MsmDeviceSetAlarmTime* msm_device_set_alarm_time_new (void);
MsmDeviceSetAlarmTime* msm_device_set_alarm_time_construct (GType object_type);
GType msm_device_set_microphone_muted_get_type (void) G_GNUC_CONST;
GType msm_device_set_microphone_muted_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_SET_MICROPHONE_MUTED_DUMMY_PROPERTY
};
static void msm_device_set_microphone_muted_real_run_data_free (gpointer _data);
static void msm_device_set_microphone_muted_real_run (FsoGsmDeviceSetMicrophoneMuted* base, gboolean muted, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_set_microphone_muted_real_run_co (MsmDeviceSetMicrophoneMutedRunData* _data_);
MsmDeviceSetMicrophoneMuted* msm_device_set_microphone_muted_new (void);
MsmDeviceSetMicrophoneMuted* msm_device_set_microphone_muted_construct (GType object_type);
GType msm_device_set_speaker_volume_get_type (void) G_GNUC_CONST;
GType msm_device_set_speaker_volume_register_type (GTypeModule * module);
enum  {
	MSM_DEVICE_SET_SPEAKER_VOLUME_DUMMY_PROPERTY
};
static void msm_device_set_speaker_volume_real_run_data_free (gpointer _data);
static void msm_device_set_speaker_volume_real_run (FsoGsmDeviceSetSpeakerVolume* base, gint volume, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean msm_device_set_speaker_volume_real_run_co (MsmDeviceSetSpeakerVolumeRunData* _data_);
MsmDeviceSetSpeakerVolume* msm_device_set_speaker_volume_new (void);
MsmDeviceSetSpeakerVolume* msm_device_set_speaker_volume_construct (GType object_type);


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


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


static void msm_device_get_functionality_real_run (FsoGsmDeviceGetFunctionality* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceGetFunctionality * self;
	MsmDeviceGetFunctionalityRunData* _data_;
	MsmDeviceGetFunctionality* _tmp0_;
	self = (MsmDeviceGetFunctionality*) base;
	_data_ = g_slice_new0 (MsmDeviceGetFunctionalityRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_get_functionality_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_get_functionality_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	msm_device_get_functionality_real_run_co (_data_);
}


static void msm_device_get_functionality_real_run_finish (FsoGsmDeviceGetFunctionality* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceGetFunctionalityRunData* _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 msm_device_get_functionality_real_run_co (MsmDeviceGetFunctionalityRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = NULL;
	_data_->_tmp0_ = gatherFunctionalityLevel ();
	_data_->_tmp1_ = _data_->_tmp0_;
	fso_gsm_device_get_functionality_set_level ((FsoGsmDeviceGetFunctionality*) _data_->self, _data_->_tmp1_);
	_g_free0 (_data_->_tmp1_);
	_data_->_tmp2_ = fso_gsm_theModem;
	_data_->_tmp3_ = NULL;
	_data_->_tmp3_ = fso_gsm_modem_data (_data_->_tmp2_);
	_data_->_tmp4_ = _data_->_tmp3_;
	_data_->_tmp5_ = _data_->_tmp4_->keepRegistration;
	fso_gsm_device_get_functionality_set_autoregister ((FsoGsmDeviceGetFunctionality*) _data_->self, _data_->_tmp5_);
	_g_object_unref0 (_data_->_tmp4_);
	_data_->_tmp6_ = fso_gsm_theModem;
	_data_->_tmp7_ = NULL;
	_data_->_tmp7_ = fso_gsm_modem_data (_data_->_tmp6_);
	_data_->_tmp8_ = _data_->_tmp7_;
	_data_->_tmp9_ = _data_->_tmp8_->simPin;
	fso_gsm_device_get_functionality_set_pin ((FsoGsmDeviceGetFunctionality*) _data_->self, _data_->_tmp9_);
	_g_object_unref0 (_data_->_tmp8_);
	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;
}


MsmDeviceGetFunctionality* msm_device_get_functionality_construct (GType object_type) {
	MsmDeviceGetFunctionality * self = NULL;
	self = (MsmDeviceGetFunctionality*) fso_gsm_device_get_functionality_construct (object_type);
	return self;
}


MsmDeviceGetFunctionality* msm_device_get_functionality_new (void) {
	return msm_device_get_functionality_construct (TYPE_MSM_DEVICE_GET_FUNCTIONALITY);
}


static void msm_device_get_functionality_class_init (MsmDeviceGetFunctionalityClass * klass) {
	msm_device_get_functionality_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_GET_FUNCTIONALITY_CLASS (klass)->run = msm_device_get_functionality_real_run;
	FSO_GSM_DEVICE_GET_FUNCTIONALITY_CLASS (klass)->run_finish = msm_device_get_functionality_real_run_finish;
}


static void msm_device_get_functionality_instance_init (MsmDeviceGetFunctionality * self) {
}


GType msm_device_get_functionality_get_type (void) {
	return msm_device_get_functionality_type_id;
}


GType msm_device_get_functionality_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceGetFunctionalityClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_get_functionality_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceGetFunctionality), 0, (GInstanceInitFunc) msm_device_get_functionality_instance_init, NULL };
	msm_device_get_functionality_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_GET_FUNCTIONALITY, "MsmDeviceGetFunctionality", &g_define_type_info, 0);
	return msm_device_get_functionality_type_id;
}


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


static void msm_device_get_features_real_run (FsoGsmDeviceGetFeatures* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceGetFeatures * self;
	MsmDeviceGetFeaturesRunData* _data_;
	MsmDeviceGetFeatures* _tmp0_;
	self = (MsmDeviceGetFeatures*) base;
	_data_ = g_slice_new0 (MsmDeviceGetFeaturesRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_get_features_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_get_features_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	msm_device_get_features_real_run_co (_data_);
}


static void msm_device_get_features_real_run_finish (FsoGsmDeviceGetFeatures* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceGetFeaturesRunData* _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 void _g_free0_ (gpointer var) {
	var = (g_free (var), NULL);
}


static void _g_variant_unref0_ (gpointer var) {
	(var == NULL) ? NULL : (var = (g_variant_unref (var), NULL));
}


static GVariant* _variant_new15 (gboolean value) {
	return g_variant_ref_sink (g_variant_new_boolean (value));
}


static GVariant* _variant_new16 (gboolean value) {
	return g_variant_ref_sink (g_variant_new_boolean (value));
}


static GVariant* _variant_new17 (gboolean value) {
	return g_variant_ref_sink (g_variant_new_boolean (value));
}


static GVariant* _variant_new18 (gboolean value) {
	return g_variant_ref_sink (g_variant_new_boolean (value));
}


static GVariant* _variant_new19 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new20 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static gboolean msm_device_get_features_real_run_co (MsmDeviceGetFeaturesRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = g_str_hash;
	_data_->_tmp1_ = g_str_equal;
	_data_->_tmp2_ = g_hash_table_new_full (_data_->_tmp0_, _data_->_tmp1_, _g_free0_, _g_variant_unref0_);
	_data_->_tmp3_ = _data_->_tmp2_;
	fso_gsm_device_get_features_set_features ((FsoGsmDeviceGetFeatures*) _data_->self, _data_->_tmp3_);
	_g_hash_table_unref0 (_data_->_tmp3_);
	_data_->_tmp4_ = fso_gsm_theModem;
	_data_->_tmp5_ = NULL;
	_data_->_tmp5_ = fso_gsm_modem_data (_data_->_tmp4_);
	_data_->data = _data_->_tmp5_;
	_data_->_tmp6_ = fso_gsm_device_get_features_get_features ((FsoGsmDeviceGetFeatures*) _data_->self);
	_data_->_tmp7_ = _data_->_tmp6_;
	_data_->_tmp8_ = g_strdup ("gsm");
	_data_->_tmp9_ = _data_->data->supportsGSM;
	_data_->_tmp10_ = _variant_new15 (_data_->_tmp9_);
	g_hash_table_insert (_data_->_tmp7_, _data_->_tmp8_, _data_->_tmp10_);
	_data_->_tmp11_ = fso_gsm_device_get_features_get_features ((FsoGsmDeviceGetFeatures*) _data_->self);
	_data_->_tmp12_ = _data_->_tmp11_;
	_data_->_tmp13_ = g_strdup ("voice");
	_data_->_tmp14_ = _data_->data->supportsVoice;
	_data_->_tmp15_ = _variant_new16 (_data_->_tmp14_);
	g_hash_table_insert (_data_->_tmp12_, _data_->_tmp13_, _data_->_tmp15_);
	_data_->_tmp16_ = fso_gsm_device_get_features_get_features ((FsoGsmDeviceGetFeatures*) _data_->self);
	_data_->_tmp17_ = _data_->_tmp16_;
	_data_->_tmp18_ = g_strdup ("cdma");
	_data_->_tmp19_ = _data_->data->supportsCDMA;
	_data_->_tmp20_ = _variant_new17 (_data_->_tmp19_);
	g_hash_table_insert (_data_->_tmp17_, _data_->_tmp18_, _data_->_tmp20_);
	_data_->_tmp21_ = fso_gsm_device_get_features_get_features ((FsoGsmDeviceGetFeatures*) _data_->self);
	_data_->_tmp22_ = _data_->_tmp21_;
	_data_->_tmp23_ = g_strdup ("csd");
	_data_->_tmp24_ = _data_->data->supportsCSD;
	_data_->_tmp25_ = _variant_new18 (_data_->_tmp24_);
	g_hash_table_insert (_data_->_tmp22_, _data_->_tmp23_, _data_->_tmp25_);
	_data_->_tmp26_ = fso_gsm_device_get_features_get_features ((FsoGsmDeviceGetFeatures*) _data_->self);
	_data_->_tmp27_ = _data_->_tmp26_;
	_data_->_tmp28_ = g_strdup ("fax");
	_data_->_tmp29_ = _data_->data->supportsFAX;
	_data_->_tmp30_ = _variant_new19 (_data_->_tmp29_);
	g_hash_table_insert (_data_->_tmp27_, _data_->_tmp28_, _data_->_tmp30_);
	_data_->_tmp31_ = fso_gsm_device_get_features_get_features ((FsoGsmDeviceGetFeatures*) _data_->self);
	_data_->_tmp32_ = _data_->_tmp31_;
	_data_->_tmp33_ = g_strdup ("pdp");
	_data_->_tmp34_ = _data_->data->supportsPDP;
	_data_->_tmp35_ = _variant_new20 (_data_->_tmp34_);
	g_hash_table_insert (_data_->_tmp32_, _data_->_tmp33_, _data_->_tmp35_);
	_g_object_unref0 (_data_->data);
	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;
}


MsmDeviceGetFeatures* msm_device_get_features_construct (GType object_type) {
	MsmDeviceGetFeatures * self = NULL;
	self = (MsmDeviceGetFeatures*) fso_gsm_device_get_features_construct (object_type);
	return self;
}


MsmDeviceGetFeatures* msm_device_get_features_new (void) {
	return msm_device_get_features_construct (TYPE_MSM_DEVICE_GET_FEATURES);
}


static void msm_device_get_features_class_init (MsmDeviceGetFeaturesClass * klass) {
	msm_device_get_features_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_GET_FEATURES_CLASS (klass)->run = msm_device_get_features_real_run;
	FSO_GSM_DEVICE_GET_FEATURES_CLASS (klass)->run_finish = msm_device_get_features_real_run_finish;
}


static void msm_device_get_features_instance_init (MsmDeviceGetFeatures * self) {
}


GType msm_device_get_features_get_type (void) {
	return msm_device_get_features_type_id;
}


GType msm_device_get_features_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceGetFeaturesClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_get_features_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceGetFeatures), 0, (GInstanceInitFunc) msm_device_get_features_instance_init, NULL };
	msm_device_get_features_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_GET_FEATURES, "MsmDeviceGetFeatures", &g_define_type_info, 0);
	return msm_device_get_features_type_id;
}


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


static void msm_device_get_information_real_run (FsoGsmDeviceGetInformation* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceGetInformation * self;
	MsmDeviceGetInformationRunData* _data_;
	MsmDeviceGetInformation* _tmp0_;
	self = (MsmDeviceGetInformation*) base;
	_data_ = g_slice_new0 (MsmDeviceGetInformationRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_get_information_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_get_information_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	msm_device_get_information_real_run_co (_data_);
}


static void msm_device_get_information_real_run_finish (FsoGsmDeviceGetInformation* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceGetInformationRunData* _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 GVariant* _variant_new21 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new22 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static void msm_device_get_information_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MsmDeviceGetInformationRunData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	msm_device_get_information_real_run_co (_data_);
}


static GVariant* _variant_new23 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static GVariant* _variant_new24 (guint value) {
	return g_variant_ref_sink (g_variant_new_uint32 (value));
}


static GVariant* _variant_new25 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
	g_return_val_if_fail (self != NULL, NULL);
	result = self;
	return result;
}


static gboolean msm_device_get_information_real_run_co (MsmDeviceGetInformationRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = fso_gsm_theModem;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = fso_gsm_modem_channel (_data_->_tmp0_, "main");
	_data_->channel = IS_MSM_CHANNEL (_data_->_tmp1_) ? ((MsmChannel*) _data_->_tmp1_) : NULL;
	{
		_data_->_tmp2_ = g_str_hash;
		_data_->_tmp3_ = g_str_equal;
		_data_->_tmp4_ = g_hash_table_new_full (_data_->_tmp2_, _data_->_tmp3_, _g_free0_, _g_variant_unref0_);
		_data_->_tmp5_ = _data_->_tmp4_;
		fso_gsm_device_get_information_set_info ((FsoGsmDeviceGetInformation*) _data_->self, _data_->_tmp5_);
		_g_hash_table_unref0 (_data_->_tmp5_);
		_data_->_tmp6_ = fso_gsm_device_get_information_get_info ((FsoGsmDeviceGetInformation*) _data_->self);
		_data_->_tmp7_ = _data_->_tmp6_;
		_data_->_tmp8_ = g_strdup ("model");
		_data_->_tmp9_ = _variant_new21 ("Palm Pre/Pre Plus/Pre 2");
		g_hash_table_insert (_data_->_tmp7_, _data_->_tmp8_, _data_->_tmp9_);
		_data_->_tmp10_ = fso_gsm_device_get_information_get_info ((FsoGsmDeviceGetInformation*) _data_->self);
		_data_->_tmp11_ = _data_->_tmp10_;
		_data_->_tmp12_ = g_strdup ("manufacturer");
		_data_->_tmp13_ = _variant_new22 ("Palm, Inc.");
		g_hash_table_insert (_data_->_tmp11_, _data_->_tmp12_, _data_->_tmp13_);
		_data_->_tmp14_ = _data_->channel;
		_data_->_tmp15_ = _data_->_tmp14_->misc_service;
		memset (&_data_->_tmp16_, 0, sizeof (MsmcommRadioFirmwareVersionInfo));
		_data_->_state_ = 1;
		msmcomm_misc_get_radio_firmware_version (_data_->_tmp15_, msm_device_get_information_run_ready, _data_);
		return FALSE;
		_state_1:
		msmcomm_misc_get_radio_firmware_version_finish (_data_->_tmp15_, _data_->_res_, &_data_->_tmp16_, &_data_->_inner_error_);
		_data_->_tmp17_ = _data_->_tmp16_;
		if (_data_->_inner_error_ != NULL) {
			msmcomm_radio_firmware_version_info_destroy (&_data_->firmware_info);
			if (_data_->_inner_error_->domain == MSMCOMM_ERROR) {
				goto __catch21_msmcomm_error;
			}
			goto __catch21_g_error;
		}
		msmcomm_radio_firmware_version_info_destroy (&_data_->firmware_info);
		_data_->firmware_info = _data_->_tmp17_;
		_data_->_tmp18_ = fso_gsm_device_get_information_get_info ((FsoGsmDeviceGetInformation*) _data_->self);
		_data_->_tmp19_ = _data_->_tmp18_;
		_data_->_tmp20_ = g_strdup ("revision");
		_data_->_tmp21_ = _data_->firmware_info;
		_data_->_tmp22_ = _data_->_tmp21_.firmware_version;
		_data_->_tmp23_ = _variant_new23 (_data_->_tmp22_);
		g_hash_table_insert (_data_->_tmp19_, _data_->_tmp20_, _data_->_tmp23_);
		_data_->_tmp24_ = fso_gsm_device_get_information_get_info ((FsoGsmDeviceGetInformation*) _data_->self);
		_data_->_tmp25_ = _data_->_tmp24_;
		_data_->_tmp26_ = g_strdup ("carrier-id");
		_data_->_tmp27_ = _data_->firmware_info;
		_data_->_tmp28_ = _data_->_tmp27_.carrier_id;
		_data_->_tmp29_ = _variant_new24 (_data_->_tmp28_);
		g_hash_table_insert (_data_->_tmp25_, _data_->_tmp26_, _data_->_tmp29_);
		_data_->_tmp30_ = _data_->channel;
		_data_->_tmp31_ = _data_->_tmp30_->misc_service;
		_data_->_state_ = 2;
		msmcomm_misc_get_imei (_data_->_tmp31_, msm_device_get_information_run_ready, _data_);
		return FALSE;
		_state_2:
		_data_->_tmp32_ = NULL;
		_data_->_tmp32_ = msmcomm_misc_get_imei_finish (_data_->_tmp31_, _data_->_res_, &_data_->_inner_error_);
		_data_->imei = _data_->_tmp32_;
		if (_data_->_inner_error_ != NULL) {
			msmcomm_radio_firmware_version_info_destroy (&_data_->firmware_info);
			if (_data_->_inner_error_->domain == MSMCOMM_ERROR) {
				goto __catch21_msmcomm_error;
			}
			goto __catch21_g_error;
		}
		_data_->_tmp33_ = fso_gsm_device_get_information_get_info ((FsoGsmDeviceGetInformation*) _data_->self);
		_data_->_tmp34_ = _data_->_tmp33_;
		_data_->_tmp35_ = g_strdup ("imei");
		_data_->_tmp36_ = _data_->imei;
		_data_->_tmp37_ = _variant_new25 (_data_->_tmp36_);
		g_hash_table_insert (_data_->_tmp34_, _data_->_tmp35_, _data_->_tmp37_);
		_g_free0 (_data_->imei);
		msmcomm_radio_firmware_version_info_destroy (&_data_->firmware_info);
	}
	goto __finally21;
	__catch21_msmcomm_error:
	{
		_data_->err0 = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_data_->_tmp38_ = _data_->err0;
		_data_->_tmp39_ = _data_->_tmp38_->message;
		_data_->_tmp40_ = NULL;
		_data_->_tmp40_ = string_to_string (_data_->_tmp39_);
		_data_->_tmp41_ = NULL;
		_data_->_tmp41_ = g_strconcat ("Could not process get_radio_firmware_version or get_imei command, got:" \
" ", _data_->_tmp40_, NULL);
		_data_->msg = _data_->_tmp41_;
		_data_->_tmp42_ = _data_->msg;
		_data_->_tmp43_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INTERNAL_ERROR, _data_->_tmp42_);
		_data_->_inner_error_ = _data_->_tmp43_;
		_g_free0 (_data_->msg);
		_g_error_free0 (_data_->err0);
		goto __finally21;
	}
	goto __finally21;
	__catch21_g_error:
	{
		_data_->err1 = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_g_error_free0 (_data_->err1);
	}
	__finally21:
	if (_data_->_inner_error_ != NULL) {
		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_);
			_g_object_unref0 (_data_->channel);
			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_object_unref0 (_data_->channel);
			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;
		}
	}
	_g_object_unref0 (_data_->channel);
	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;
}


MsmDeviceGetInformation* msm_device_get_information_construct (GType object_type) {
	MsmDeviceGetInformation * self = NULL;
	self = (MsmDeviceGetInformation*) fso_gsm_device_get_information_construct (object_type);
	return self;
}


MsmDeviceGetInformation* msm_device_get_information_new (void) {
	return msm_device_get_information_construct (TYPE_MSM_DEVICE_GET_INFORMATION);
}


static void msm_device_get_information_class_init (MsmDeviceGetInformationClass * klass) {
	msm_device_get_information_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_GET_INFORMATION_CLASS (klass)->run = msm_device_get_information_real_run;
	FSO_GSM_DEVICE_GET_INFORMATION_CLASS (klass)->run_finish = msm_device_get_information_real_run_finish;
}


static void msm_device_get_information_instance_init (MsmDeviceGetInformation * self) {
}


GType msm_device_get_information_get_type (void) {
	return msm_device_get_information_type_id;
}


GType msm_device_get_information_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceGetInformationClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_get_information_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceGetInformation), 0, (GInstanceInitFunc) msm_device_get_information_instance_init, NULL };
	msm_device_get_information_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_GET_INFORMATION, "MsmDeviceGetInformation", &g_define_type_info, 0);
	return msm_device_get_information_type_id;
}


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


static void msm_device_get_power_status_real_run (FsoGsmDeviceGetPowerStatus* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceGetPowerStatus * self;
	MsmDeviceGetPowerStatusRunData* _data_;
	MsmDeviceGetPowerStatus* _tmp0_;
	self = (MsmDeviceGetPowerStatus*) base;
	_data_ = g_slice_new0 (MsmDeviceGetPowerStatusRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_get_power_status_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_get_power_status_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	msm_device_get_power_status_real_run_co (_data_);
}


static void msm_device_get_power_status_real_run_finish (FsoGsmDeviceGetPowerStatus* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceGetPowerStatusRunData* _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 void msm_device_get_power_status_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MsmDeviceGetPowerStatusRunData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	msm_device_get_power_status_real_run_co (_data_);
}


static gboolean msm_device_get_power_status_real_run_co (MsmDeviceGetPowerStatusRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = fso_gsm_theModem;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = fso_gsm_modem_channel (_data_->_tmp0_, "main");
	_data_->channel = IS_MSM_CHANNEL (_data_->_tmp1_) ? ((MsmChannel*) _data_->_tmp1_) : NULL;
	{
		_data_->_tmp2_ = _data_->channel;
		_data_->_tmp3_ = _data_->_tmp2_->misc_service;
		memset (&_data_->_tmp4_, 0, sizeof (MsmcommChargerStatusInfo));
		_data_->_state_ = 1;
		msmcomm_misc_get_charger_status (_data_->_tmp3_, msm_device_get_power_status_run_ready, _data_);
		return FALSE;
		_state_1:
		msmcomm_misc_get_charger_status_finish (_data_->_tmp3_, _data_->_res_, &_data_->_tmp4_, &_data_->_inner_error_);
		_data_->charger_info = _data_->_tmp4_;
		if (_data_->_inner_error_ != NULL) {
			if (_data_->_inner_error_->domain == MSMCOMM_ERROR) {
				goto __catch22_msmcomm_error;
			}
			goto __catch22_g_error;
		}
		_data_->_tmp5_ = _data_->charger_info;
		_data_->_tmp6_ = _data_->_tmp5_.mode;
		switch (_data_->_tmp6_) {
			case MSMCOMM_CHARGER_MODE_USB:
			{
				fso_gsm_device_get_power_status_set_status ((FsoGsmDeviceGetPowerStatus*) _data_->self, FREE_SMARTPHONE_DEVICE_POWER_STATUS_AC);
				break;
			}
			case MSMCOMM_CHARGER_MODE_INDUCTIVE:
			{
				fso_gsm_device_get_power_status_set_status ((FsoGsmDeviceGetPowerStatus*) _data_->self, FREE_SMARTPHONE_DEVICE_POWER_STATUS_CHARGING);
				break;
			}
			default:
			{
				fso_gsm_device_get_power_status_set_status ((FsoGsmDeviceGetPowerStatus*) _data_->self, FREE_SMARTPHONE_DEVICE_POWER_STATUS_UNKNOWN);
				break;
			}
		}
		fso_gsm_device_get_power_status_set_level ((FsoGsmDeviceGetPowerStatus*) _data_->self, 10);
	}
	goto __finally22;
	__catch22_msmcomm_error:
	{
		_data_->err0 = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_data_->_tmp7_ = _data_->err0;
		_data_->_tmp8_ = _data_->_tmp7_->message;
		_data_->_tmp9_ = NULL;
		_data_->_tmp9_ = string_to_string (_data_->_tmp8_);
		_data_->_tmp10_ = NULL;
		_data_->_tmp10_ = g_strconcat ("Could not process get_charger_status command, got: ", _data_->_tmp9_, NULL);
		_data_->msg = _data_->_tmp10_;
		_data_->_tmp11_ = _data_->msg;
		_data_->_tmp12_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INTERNAL_ERROR, _data_->_tmp11_);
		_data_->_inner_error_ = _data_->_tmp12_;
		_g_free0 (_data_->msg);
		_g_error_free0 (_data_->err0);
		goto __finally22;
	}
	goto __finally22;
	__catch22_g_error:
	{
		_data_->err1 = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_g_error_free0 (_data_->err1);
	}
	__finally22:
	if (_data_->_inner_error_ != NULL) {
		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_);
			_g_object_unref0 (_data_->channel);
			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_object_unref0 (_data_->channel);
			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;
		}
	}
	_g_object_unref0 (_data_->channel);
	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;
}


MsmDeviceGetPowerStatus* msm_device_get_power_status_construct (GType object_type) {
	MsmDeviceGetPowerStatus * self = NULL;
	self = (MsmDeviceGetPowerStatus*) fso_gsm_device_get_power_status_construct (object_type);
	return self;
}


MsmDeviceGetPowerStatus* msm_device_get_power_status_new (void) {
	return msm_device_get_power_status_construct (TYPE_MSM_DEVICE_GET_POWER_STATUS);
}


static void msm_device_get_power_status_class_init (MsmDeviceGetPowerStatusClass * klass) {
	msm_device_get_power_status_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_GET_POWER_STATUS_CLASS (klass)->run = msm_device_get_power_status_real_run;
	FSO_GSM_DEVICE_GET_POWER_STATUS_CLASS (klass)->run_finish = msm_device_get_power_status_real_run_finish;
}


static void msm_device_get_power_status_instance_init (MsmDeviceGetPowerStatus * self) {
}


GType msm_device_get_power_status_get_type (void) {
	return msm_device_get_power_status_type_id;
}


GType msm_device_get_power_status_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceGetPowerStatusClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_get_power_status_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceGetPowerStatus), 0, (GInstanceInitFunc) msm_device_get_power_status_instance_init, NULL };
	msm_device_get_power_status_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_GET_POWER_STATUS, "MsmDeviceGetPowerStatus", &g_define_type_info, 0);
	return msm_device_get_power_status_type_id;
}


static void msm_device_set_functionality_real_run_data_free (gpointer _data) {
	MsmDeviceSetFunctionalityRunData* _data_;
	_data_ = _data;
	_g_free0 (_data_->level);
	_g_free0 (_data_->pin);
	_g_object_unref0 (_data_->self);
	g_slice_free (MsmDeviceSetFunctionalityRunData, _data_);
}


static void msm_device_set_functionality_real_run (FsoGsmDeviceSetFunctionality* base, const gchar* level, gboolean autoregister, const gchar* pin, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceSetFunctionality * self;
	MsmDeviceSetFunctionalityRunData* _data_;
	MsmDeviceSetFunctionality* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gboolean _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	self = (MsmDeviceSetFunctionality*) base;
	_data_ = g_slice_new0 (MsmDeviceSetFunctionalityRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_set_functionality_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_set_functionality_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = level;
	_tmp2_ = g_strdup (_tmp1_);
	_data_->level = _tmp2_;
	_tmp3_ = autoregister;
	_data_->autoregister = _tmp3_;
	_tmp4_ = pin;
	_tmp5_ = g_strdup (_tmp4_);
	_data_->pin = _tmp5_;
	msm_device_set_functionality_real_run_co (_data_);
}


static void msm_device_set_functionality_real_run_finish (FsoGsmDeviceSetFunctionality* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceSetFunctionalityRunData* _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 void msm_device_set_functionality_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MsmDeviceSetFunctionalityRunData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	msm_device_set_functionality_real_run_co (_data_);
}


static gboolean msm_device_set_functionality_real_run_co (MsmDeviceSetFunctionalityRunData* _data_) {
	static GQuark _tmp2_label0 = 0;
	static GQuark _tmp2_label1 = 0;
	static GQuark _tmp2_label2 = 0;
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = _data_->level;
	_data_->_tmp3_ = 0U;
	_data_->_tmp1_ = _data_->_tmp0_;
	_data_->_tmp3_ = (NULL == _data_->_tmp1_) ? 0 : g_quark_from_string (_data_->_tmp1_);
	if ((_data_->_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("minimal")))) || (_data_->_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("full"))))) {
		switch (0) {
			default:
			{
				_data_->_tmp4_ = fso_gsm_theModem;
				_data_->_tmp5_ = NULL;
				_data_->_tmp5_ = fso_gsm_modem_createMediator (_data_->_tmp4_, FSO_GSM_TYPE_NETWORK_REGISTER, (GBoxedCopyFunc) g_object_ref, g_object_unref, &_data_->_inner_error_);
				_data_->mreg = (FsoGsmNetworkRegister*) _data_->_tmp5_;
				if (_data_->_inner_error_ != NULL) {
					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;
					}
				}
				_data_->_tmp6_ = _data_->mreg;
				_data_->_state_ = 1;
				fso_gsm_network_register_run (_data_->_tmp6_, msm_device_set_functionality_run_ready, _data_);
				return FALSE;
				_state_1:
				fso_gsm_network_register_run_finish (_data_->_tmp6_, _data_->_res_, &_data_->_inner_error_);
				if (_data_->_inner_error_ != NULL) {
					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_);
						_g_object_unref0 (_data_->mreg);
						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_object_unref0 (_data_->mreg);
						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;
					}
				}
				_g_object_unref0 (_data_->mreg);
				break;
			}
		}
	} else if (_data_->_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("airplane")))) {
		switch (0) {
			default:
			{
				_data_->_tmp7_ = fso_gsm_theModem;
				_data_->_tmp8_ = NULL;
				_data_->_tmp8_ = fso_gsm_modem_createMediator (_data_->_tmp7_, FSO_GSM_TYPE_NETWORK_UNREGISTER, (GBoxedCopyFunc) g_object_ref, g_object_unref, &_data_->_inner_error_);
				_data_->munreg = (FsoGsmNetworkUnregister*) _data_->_tmp8_;
				if (_data_->_inner_error_ != NULL) {
					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;
					}
				}
				_data_->_tmp9_ = _data_->munreg;
				_data_->_state_ = 2;
				fso_gsm_network_unregister_run (_data_->_tmp9_, msm_device_set_functionality_run_ready, _data_);
				return FALSE;
				_state_2:
				fso_gsm_network_unregister_run_finish (_data_->_tmp9_, _data_->_res_, &_data_->_inner_error_);
				if (_data_->_inner_error_ != NULL) {
					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_);
						_g_object_unref0 (_data_->munreg);
						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_object_unref0 (_data_->munreg);
						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;
					}
				}
				_g_object_unref0 (_data_->munreg);
				break;
			}
		}
	} else {
		switch (0) {
			default:
			{
				_data_->_tmp10_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INVALID_PARAMETER, "Functionality needs to be one of \"minimal\", \"airplane\", or \"full\"" \
".");
				_data_->_inner_error_ = _data_->_tmp10_;
				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;
}


MsmDeviceSetFunctionality* msm_device_set_functionality_construct (GType object_type) {
	MsmDeviceSetFunctionality * self = NULL;
	self = (MsmDeviceSetFunctionality*) fso_gsm_device_set_functionality_construct (object_type);
	return self;
}


MsmDeviceSetFunctionality* msm_device_set_functionality_new (void) {
	return msm_device_set_functionality_construct (TYPE_MSM_DEVICE_SET_FUNCTIONALITY);
}


static void msm_device_set_functionality_class_init (MsmDeviceSetFunctionalityClass * klass) {
	msm_device_set_functionality_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_SET_FUNCTIONALITY_CLASS (klass)->run = msm_device_set_functionality_real_run;
	FSO_GSM_DEVICE_SET_FUNCTIONALITY_CLASS (klass)->run_finish = msm_device_set_functionality_real_run_finish;
}


static void msm_device_set_functionality_instance_init (MsmDeviceSetFunctionality * self) {
}


GType msm_device_set_functionality_get_type (void) {
	return msm_device_set_functionality_type_id;
}


GType msm_device_set_functionality_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceSetFunctionalityClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_set_functionality_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceSetFunctionality), 0, (GInstanceInitFunc) msm_device_set_functionality_instance_init, NULL };
	msm_device_set_functionality_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_SET_FUNCTIONALITY, "MsmDeviceSetFunctionality", &g_define_type_info, 0);
	return msm_device_set_functionality_type_id;
}


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


static void msm_device_get_current_time_real_run (FsoGsmDeviceGetCurrentTime* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceGetCurrentTime * self;
	MsmDeviceGetCurrentTimeRunData* _data_;
	MsmDeviceGetCurrentTime* _tmp0_;
	self = (MsmDeviceGetCurrentTime*) base;
	_data_ = g_slice_new0 (MsmDeviceGetCurrentTimeRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_get_current_time_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_get_current_time_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	msm_device_get_current_time_real_run_co (_data_);
}


static void msm_device_get_current_time_real_run_finish (FsoGsmDeviceGetCurrentTime* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceGetCurrentTimeRunData* _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 msm_device_get_current_time_real_run_co (MsmDeviceGetCurrentTimeRunData* _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 yet 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;
}


MsmDeviceGetCurrentTime* msm_device_get_current_time_construct (GType object_type) {
	MsmDeviceGetCurrentTime * self = NULL;
	self = (MsmDeviceGetCurrentTime*) fso_gsm_device_get_current_time_construct (object_type);
	return self;
}


MsmDeviceGetCurrentTime* msm_device_get_current_time_new (void) {
	return msm_device_get_current_time_construct (TYPE_MSM_DEVICE_GET_CURRENT_TIME);
}


static void msm_device_get_current_time_class_init (MsmDeviceGetCurrentTimeClass * klass) {
	msm_device_get_current_time_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_GET_CURRENT_TIME_CLASS (klass)->run = msm_device_get_current_time_real_run;
	FSO_GSM_DEVICE_GET_CURRENT_TIME_CLASS (klass)->run_finish = msm_device_get_current_time_real_run_finish;
}


static void msm_device_get_current_time_instance_init (MsmDeviceGetCurrentTime * self) {
}


GType msm_device_get_current_time_get_type (void) {
	return msm_device_get_current_time_type_id;
}


GType msm_device_get_current_time_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceGetCurrentTimeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_get_current_time_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceGetCurrentTime), 0, (GInstanceInitFunc) msm_device_get_current_time_instance_init, NULL };
	msm_device_get_current_time_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_GET_CURRENT_TIME, "MsmDeviceGetCurrentTime", &g_define_type_info, 0);
	return msm_device_get_current_time_type_id;
}


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


static void msm_device_set_current_time_real_run (FsoGsmDeviceSetCurrentTime* base, gint since_epoch, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceSetCurrentTime * self;
	MsmDeviceSetCurrentTimeRunData* _data_;
	MsmDeviceSetCurrentTime* _tmp0_;
	gint _tmp1_;
	self = (MsmDeviceSetCurrentTime*) base;
	_data_ = g_slice_new0 (MsmDeviceSetCurrentTimeRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_set_current_time_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_set_current_time_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = since_epoch;
	_data_->since_epoch = _tmp1_;
	msm_device_set_current_time_real_run_co (_data_);
}


static void msm_device_set_current_time_real_run_finish (FsoGsmDeviceSetCurrentTime* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceSetCurrentTimeRunData* _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 void g_time_gm (time_t time, struct tm* result) {
	struct tm _result_ = {0};
	struct tm _tmp0_ = {0};
	gmtime_r (&time, &_tmp0_);
	_result_ = _tmp0_;
	*result = _result_;
	return;
}


static void msm_device_set_current_time_run_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	MsmDeviceSetCurrentTimeRunData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	msm_device_set_current_time_real_run_co (_data_);
}


static gboolean msm_device_set_current_time_real_run_co (MsmDeviceSetCurrentTimeRunData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = fso_gsm_theModem;
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = fso_gsm_modem_channel (_data_->_tmp0_, "main");
	_data_->channel = IS_MSM_CHANNEL (_data_->_tmp1_) ? ((MsmChannel*) _data_->_tmp1_) : NULL;
	_data_->_tmp2_ = _data_->since_epoch;
	memset (&_data_->_tmp3_, 0, sizeof (struct tm));
	g_time_gm ((time_t) _data_->_tmp2_, &_data_->_tmp3_);
	_data_->t = _data_->_tmp3_;
	{
		memset (&_data_->info, 0, sizeof (MsmcommDateInfo));
		_data_->_tmp4_ = _data_->t;
		_data_->_tmp5_ = _data_->_tmp4_.tm_year;
		_data_->info.year = (guint) ((_data_->_tmp5_ + 1900) - 2000);
		_data_->_tmp6_ = _data_->t;
		_data_->_tmp7_ = _data_->_tmp6_.tm_mon;
		_data_->info.month = (guint) (_data_->_tmp7_ + 1);
		_data_->_tmp8_ = _data_->t;
		_data_->_tmp9_ = _data_->_tmp8_.tm_mday;
		_data_->info.day = (guint) _data_->_tmp9_;
		_data_->_tmp10_ = _data_->t;
		_data_->_tmp11_ = _data_->_tmp10_.tm_hour;
		_data_->info.hours = (guint) _data_->_tmp11_;
		_data_->_tmp12_ = _data_->t;
		_data_->_tmp13_ = _data_->_tmp12_.tm_min;
		_data_->info.minutes = (guint) _data_->_tmp13_;
		_data_->_tmp14_ = _data_->t;
		_data_->_tmp15_ = _data_->_tmp14_.tm_sec;
		_data_->info.seconds = (guint) _data_->_tmp15_;
		_data_->info.timezone_offset = 0;
		_data_->info.time_source = MSMCOMM_TIME_SOURCE_MANUAL;
		_data_->_tmp16_ = _data_->channel;
		_data_->_tmp17_ = _data_->_tmp16_->misc_service;
		_data_->_tmp18_ = _data_->info;
		_data_->_state_ = 1;
		msmcomm_misc_set_date (_data_->_tmp17_, &_data_->_tmp18_, msm_device_set_current_time_run_ready, _data_);
		return FALSE;
		_state_1:
		msmcomm_misc_set_date_finish (_data_->_tmp17_, _data_->_res_, &_data_->_inner_error_);
		if (_data_->_inner_error_ != NULL) {
			goto __catch23_g_error;
		}
	}
	goto __finally23;
	__catch23_g_error:
	{
		_data_->_error_ = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_data_->_tmp19_ = _data_->_error_;
		_data_->_tmp20_ = _data_->_tmp19_->message;
		_data_->_tmp21_ = NULL;
		_data_->_tmp21_ = string_to_string (_data_->_tmp20_);
		_data_->_tmp22_ = NULL;
		_data_->_tmp22_ = g_strconcat ("Could not process set_date command, got: ", _data_->_tmp21_, NULL);
		_data_->msg = _data_->_tmp22_;
		_data_->_tmp23_ = _data_->msg;
		_data_->_tmp24_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_INTERNAL_ERROR, _data_->_tmp23_);
		_data_->_inner_error_ = _data_->_tmp24_;
		_g_free0 (_data_->msg);
		_g_error_free0 (_data_->_error_);
		goto __finally23;
	}
	__finally23:
	if (_data_->_inner_error_ != NULL) {
		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_);
			_g_object_unref0 (_data_->channel);
			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_object_unref0 (_data_->channel);
			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;
		}
	}
	_g_object_unref0 (_data_->channel);
	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;
}


MsmDeviceSetCurrentTime* msm_device_set_current_time_construct (GType object_type) {
	MsmDeviceSetCurrentTime * self = NULL;
	self = (MsmDeviceSetCurrentTime*) fso_gsm_device_set_current_time_construct (object_type);
	return self;
}


MsmDeviceSetCurrentTime* msm_device_set_current_time_new (void) {
	return msm_device_set_current_time_construct (TYPE_MSM_DEVICE_SET_CURRENT_TIME);
}


static void msm_device_set_current_time_class_init (MsmDeviceSetCurrentTimeClass * klass) {
	msm_device_set_current_time_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_SET_CURRENT_TIME_CLASS (klass)->run = msm_device_set_current_time_real_run;
	FSO_GSM_DEVICE_SET_CURRENT_TIME_CLASS (klass)->run_finish = msm_device_set_current_time_real_run_finish;
}


static void msm_device_set_current_time_instance_init (MsmDeviceSetCurrentTime * self) {
}


GType msm_device_set_current_time_get_type (void) {
	return msm_device_set_current_time_type_id;
}


GType msm_device_set_current_time_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceSetCurrentTimeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_set_current_time_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceSetCurrentTime), 0, (GInstanceInitFunc) msm_device_set_current_time_instance_init, NULL };
	msm_device_set_current_time_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_SET_CURRENT_TIME, "MsmDeviceSetCurrentTime", &g_define_type_info, 0);
	return msm_device_set_current_time_type_id;
}


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


static void msm_device_get_alarm_time_real_run (FsoGsmDeviceGetAlarmTime* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceGetAlarmTime * self;
	MsmDeviceGetAlarmTimeRunData* _data_;
	MsmDeviceGetAlarmTime* _tmp0_;
	self = (MsmDeviceGetAlarmTime*) base;
	_data_ = g_slice_new0 (MsmDeviceGetAlarmTimeRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_get_alarm_time_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_get_alarm_time_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	msm_device_get_alarm_time_real_run_co (_data_);
}


static void msm_device_get_alarm_time_real_run_finish (FsoGsmDeviceGetAlarmTime* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceGetAlarmTimeRunData* _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 msm_device_get_alarm_time_real_run_co (MsmDeviceGetAlarmTimeRunData* _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 yet 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;
}


MsmDeviceGetAlarmTime* msm_device_get_alarm_time_construct (GType object_type) {
	MsmDeviceGetAlarmTime * self = NULL;
	self = (MsmDeviceGetAlarmTime*) fso_gsm_device_get_alarm_time_construct (object_type);
	return self;
}


MsmDeviceGetAlarmTime* msm_device_get_alarm_time_new (void) {
	return msm_device_get_alarm_time_construct (TYPE_MSM_DEVICE_GET_ALARM_TIME);
}


static void msm_device_get_alarm_time_class_init (MsmDeviceGetAlarmTimeClass * klass) {
	msm_device_get_alarm_time_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_GET_ALARM_TIME_CLASS (klass)->run = msm_device_get_alarm_time_real_run;
	FSO_GSM_DEVICE_GET_ALARM_TIME_CLASS (klass)->run_finish = msm_device_get_alarm_time_real_run_finish;
}


static void msm_device_get_alarm_time_instance_init (MsmDeviceGetAlarmTime * self) {
}


GType msm_device_get_alarm_time_get_type (void) {
	return msm_device_get_alarm_time_type_id;
}


GType msm_device_get_alarm_time_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceGetAlarmTimeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_get_alarm_time_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceGetAlarmTime), 0, (GInstanceInitFunc) msm_device_get_alarm_time_instance_init, NULL };
	msm_device_get_alarm_time_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_GET_ALARM_TIME, "MsmDeviceGetAlarmTime", &g_define_type_info, 0);
	return msm_device_get_alarm_time_type_id;
}


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


static void msm_device_get_microphone_muted_real_run (FsoGsmDeviceGetMicrophoneMuted* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceGetMicrophoneMuted * self;
	MsmDeviceGetMicrophoneMutedRunData* _data_;
	MsmDeviceGetMicrophoneMuted* _tmp0_;
	self = (MsmDeviceGetMicrophoneMuted*) base;
	_data_ = g_slice_new0 (MsmDeviceGetMicrophoneMutedRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_get_microphone_muted_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_get_microphone_muted_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	msm_device_get_microphone_muted_real_run_co (_data_);
}


static void msm_device_get_microphone_muted_real_run_finish (FsoGsmDeviceGetMicrophoneMuted* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceGetMicrophoneMutedRunData* _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 msm_device_get_microphone_muted_real_run_co (MsmDeviceGetMicrophoneMutedRunData* _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 yet 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;
}


MsmDeviceGetMicrophoneMuted* msm_device_get_microphone_muted_construct (GType object_type) {
	MsmDeviceGetMicrophoneMuted * self = NULL;
	self = (MsmDeviceGetMicrophoneMuted*) fso_gsm_device_get_microphone_muted_construct (object_type);
	return self;
}


MsmDeviceGetMicrophoneMuted* msm_device_get_microphone_muted_new (void) {
	return msm_device_get_microphone_muted_construct (TYPE_MSM_DEVICE_GET_MICROPHONE_MUTED);
}


static void msm_device_get_microphone_muted_class_init (MsmDeviceGetMicrophoneMutedClass * klass) {
	msm_device_get_microphone_muted_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_GET_MICROPHONE_MUTED_CLASS (klass)->run = msm_device_get_microphone_muted_real_run;
	FSO_GSM_DEVICE_GET_MICROPHONE_MUTED_CLASS (klass)->run_finish = msm_device_get_microphone_muted_real_run_finish;
}


static void msm_device_get_microphone_muted_instance_init (MsmDeviceGetMicrophoneMuted * self) {
}


GType msm_device_get_microphone_muted_get_type (void) {
	return msm_device_get_microphone_muted_type_id;
}


GType msm_device_get_microphone_muted_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceGetMicrophoneMutedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_get_microphone_muted_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceGetMicrophoneMuted), 0, (GInstanceInitFunc) msm_device_get_microphone_muted_instance_init, NULL };
	msm_device_get_microphone_muted_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_GET_MICROPHONE_MUTED, "MsmDeviceGetMicrophoneMuted", &g_define_type_info, 0);
	return msm_device_get_microphone_muted_type_id;
}


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


static void msm_device_get_sim_buffers_sms_real_run (FsoGsmDeviceGetSimBuffersSms* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceGetSimBuffersSms * self;
	MsmDeviceGetSimBuffersSmsRunData* _data_;
	MsmDeviceGetSimBuffersSms* _tmp0_;
	self = (MsmDeviceGetSimBuffersSms*) base;
	_data_ = g_slice_new0 (MsmDeviceGetSimBuffersSmsRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_get_sim_buffers_sms_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_get_sim_buffers_sms_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	msm_device_get_sim_buffers_sms_real_run_co (_data_);
}


static void msm_device_get_sim_buffers_sms_real_run_finish (FsoGsmDeviceGetSimBuffersSms* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceGetSimBuffersSmsRunData* _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 msm_device_get_sim_buffers_sms_real_run_co (MsmDeviceGetSimBuffersSmsRunData* _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 yet 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;
}


MsmDeviceGetSimBuffersSms* msm_device_get_sim_buffers_sms_construct (GType object_type) {
	MsmDeviceGetSimBuffersSms * self = NULL;
	self = (MsmDeviceGetSimBuffersSms*) fso_gsm_device_get_sim_buffers_sms_construct (object_type);
	return self;
}


MsmDeviceGetSimBuffersSms* msm_device_get_sim_buffers_sms_new (void) {
	return msm_device_get_sim_buffers_sms_construct (TYPE_MSM_DEVICE_GET_SIM_BUFFERS_SMS);
}


static void msm_device_get_sim_buffers_sms_class_init (MsmDeviceGetSimBuffersSmsClass * klass) {
	msm_device_get_sim_buffers_sms_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_GET_SIM_BUFFERS_SMS_CLASS (klass)->run = msm_device_get_sim_buffers_sms_real_run;
	FSO_GSM_DEVICE_GET_SIM_BUFFERS_SMS_CLASS (klass)->run_finish = msm_device_get_sim_buffers_sms_real_run_finish;
}


static void msm_device_get_sim_buffers_sms_instance_init (MsmDeviceGetSimBuffersSms * self) {
}


GType msm_device_get_sim_buffers_sms_get_type (void) {
	return msm_device_get_sim_buffers_sms_type_id;
}


GType msm_device_get_sim_buffers_sms_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceGetSimBuffersSmsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_get_sim_buffers_sms_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceGetSimBuffersSms), 0, (GInstanceInitFunc) msm_device_get_sim_buffers_sms_instance_init, NULL };
	msm_device_get_sim_buffers_sms_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_GET_SIM_BUFFERS_SMS, "MsmDeviceGetSimBuffersSms", &g_define_type_info, 0);
	return msm_device_get_sim_buffers_sms_type_id;
}


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


static void msm_device_get_speaker_volume_real_run (FsoGsmDeviceGetSpeakerVolume* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceGetSpeakerVolume * self;
	MsmDeviceGetSpeakerVolumeRunData* _data_;
	MsmDeviceGetSpeakerVolume* _tmp0_;
	self = (MsmDeviceGetSpeakerVolume*) base;
	_data_ = g_slice_new0 (MsmDeviceGetSpeakerVolumeRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_get_speaker_volume_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_get_speaker_volume_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	msm_device_get_speaker_volume_real_run_co (_data_);
}


static void msm_device_get_speaker_volume_real_run_finish (FsoGsmDeviceGetSpeakerVolume* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceGetSpeakerVolumeRunData* _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 msm_device_get_speaker_volume_real_run_co (MsmDeviceGetSpeakerVolumeRunData* _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 yet 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;
}


MsmDeviceGetSpeakerVolume* msm_device_get_speaker_volume_construct (GType object_type) {
	MsmDeviceGetSpeakerVolume * self = NULL;
	self = (MsmDeviceGetSpeakerVolume*) fso_gsm_device_get_speaker_volume_construct (object_type);
	return self;
}


MsmDeviceGetSpeakerVolume* msm_device_get_speaker_volume_new (void) {
	return msm_device_get_speaker_volume_construct (TYPE_MSM_DEVICE_GET_SPEAKER_VOLUME);
}


static void msm_device_get_speaker_volume_class_init (MsmDeviceGetSpeakerVolumeClass * klass) {
	msm_device_get_speaker_volume_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_GET_SPEAKER_VOLUME_CLASS (klass)->run = msm_device_get_speaker_volume_real_run;
	FSO_GSM_DEVICE_GET_SPEAKER_VOLUME_CLASS (klass)->run_finish = msm_device_get_speaker_volume_real_run_finish;
}


static void msm_device_get_speaker_volume_instance_init (MsmDeviceGetSpeakerVolume * self) {
}


GType msm_device_get_speaker_volume_get_type (void) {
	return msm_device_get_speaker_volume_type_id;
}


GType msm_device_get_speaker_volume_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceGetSpeakerVolumeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_get_speaker_volume_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceGetSpeakerVolume), 0, (GInstanceInitFunc) msm_device_get_speaker_volume_instance_init, NULL };
	msm_device_get_speaker_volume_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_GET_SPEAKER_VOLUME, "MsmDeviceGetSpeakerVolume", &g_define_type_info, 0);
	return msm_device_get_speaker_volume_type_id;
}


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


static void msm_device_set_alarm_time_real_run (FsoGsmDeviceSetAlarmTime* base, gint since_epoch, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceSetAlarmTime * self;
	MsmDeviceSetAlarmTimeRunData* _data_;
	MsmDeviceSetAlarmTime* _tmp0_;
	gint _tmp1_;
	self = (MsmDeviceSetAlarmTime*) base;
	_data_ = g_slice_new0 (MsmDeviceSetAlarmTimeRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_set_alarm_time_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_set_alarm_time_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = since_epoch;
	_data_->since_epoch = _tmp1_;
	msm_device_set_alarm_time_real_run_co (_data_);
}


static void msm_device_set_alarm_time_real_run_finish (FsoGsmDeviceSetAlarmTime* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceSetAlarmTimeRunData* _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 msm_device_set_alarm_time_real_run_co (MsmDeviceSetAlarmTimeRunData* _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 yet 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;
}


MsmDeviceSetAlarmTime* msm_device_set_alarm_time_construct (GType object_type) {
	MsmDeviceSetAlarmTime * self = NULL;
	self = (MsmDeviceSetAlarmTime*) fso_gsm_device_set_alarm_time_construct (object_type);
	return self;
}


MsmDeviceSetAlarmTime* msm_device_set_alarm_time_new (void) {
	return msm_device_set_alarm_time_construct (TYPE_MSM_DEVICE_SET_ALARM_TIME);
}


static void msm_device_set_alarm_time_class_init (MsmDeviceSetAlarmTimeClass * klass) {
	msm_device_set_alarm_time_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_SET_ALARM_TIME_CLASS (klass)->run = msm_device_set_alarm_time_real_run;
	FSO_GSM_DEVICE_SET_ALARM_TIME_CLASS (klass)->run_finish = msm_device_set_alarm_time_real_run_finish;
}


static void msm_device_set_alarm_time_instance_init (MsmDeviceSetAlarmTime * self) {
}


GType msm_device_set_alarm_time_get_type (void) {
	return msm_device_set_alarm_time_type_id;
}


GType msm_device_set_alarm_time_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceSetAlarmTimeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_set_alarm_time_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceSetAlarmTime), 0, (GInstanceInitFunc) msm_device_set_alarm_time_instance_init, NULL };
	msm_device_set_alarm_time_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_SET_ALARM_TIME, "MsmDeviceSetAlarmTime", &g_define_type_info, 0);
	return msm_device_set_alarm_time_type_id;
}


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


static void msm_device_set_microphone_muted_real_run (FsoGsmDeviceSetMicrophoneMuted* base, gboolean muted, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceSetMicrophoneMuted * self;
	MsmDeviceSetMicrophoneMutedRunData* _data_;
	MsmDeviceSetMicrophoneMuted* _tmp0_;
	gboolean _tmp1_;
	self = (MsmDeviceSetMicrophoneMuted*) base;
	_data_ = g_slice_new0 (MsmDeviceSetMicrophoneMutedRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_set_microphone_muted_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_set_microphone_muted_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = muted;
	_data_->muted = _tmp1_;
	msm_device_set_microphone_muted_real_run_co (_data_);
}


static void msm_device_set_microphone_muted_real_run_finish (FsoGsmDeviceSetMicrophoneMuted* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceSetMicrophoneMutedRunData* _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 msm_device_set_microphone_muted_real_run_co (MsmDeviceSetMicrophoneMutedRunData* _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 yet 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;
}


MsmDeviceSetMicrophoneMuted* msm_device_set_microphone_muted_construct (GType object_type) {
	MsmDeviceSetMicrophoneMuted * self = NULL;
	self = (MsmDeviceSetMicrophoneMuted*) fso_gsm_device_set_microphone_muted_construct (object_type);
	return self;
}


MsmDeviceSetMicrophoneMuted* msm_device_set_microphone_muted_new (void) {
	return msm_device_set_microphone_muted_construct (TYPE_MSM_DEVICE_SET_MICROPHONE_MUTED);
}


static void msm_device_set_microphone_muted_class_init (MsmDeviceSetMicrophoneMutedClass * klass) {
	msm_device_set_microphone_muted_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_SET_MICROPHONE_MUTED_CLASS (klass)->run = msm_device_set_microphone_muted_real_run;
	FSO_GSM_DEVICE_SET_MICROPHONE_MUTED_CLASS (klass)->run_finish = msm_device_set_microphone_muted_real_run_finish;
}


static void msm_device_set_microphone_muted_instance_init (MsmDeviceSetMicrophoneMuted * self) {
}


GType msm_device_set_microphone_muted_get_type (void) {
	return msm_device_set_microphone_muted_type_id;
}


GType msm_device_set_microphone_muted_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceSetMicrophoneMutedClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_set_microphone_muted_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceSetMicrophoneMuted), 0, (GInstanceInitFunc) msm_device_set_microphone_muted_instance_init, NULL };
	msm_device_set_microphone_muted_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_SET_MICROPHONE_MUTED, "MsmDeviceSetMicrophoneMuted", &g_define_type_info, 0);
	return msm_device_set_microphone_muted_type_id;
}


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


static void msm_device_set_speaker_volume_real_run (FsoGsmDeviceSetSpeakerVolume* base, gint volume, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	MsmDeviceSetSpeakerVolume * self;
	MsmDeviceSetSpeakerVolumeRunData* _data_;
	MsmDeviceSetSpeakerVolume* _tmp0_;
	gint _tmp1_;
	self = (MsmDeviceSetSpeakerVolume*) base;
	_data_ = g_slice_new0 (MsmDeviceSetSpeakerVolumeRunData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, msm_device_set_speaker_volume_real_run);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, msm_device_set_speaker_volume_real_run_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = volume;
	_data_->volume = _tmp1_;
	msm_device_set_speaker_volume_real_run_co (_data_);
}


static void msm_device_set_speaker_volume_real_run_finish (FsoGsmDeviceSetSpeakerVolume* base, GAsyncResult* _res_, GError** error) {
	MsmDeviceSetSpeakerVolumeRunData* _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 msm_device_set_speaker_volume_real_run_co (MsmDeviceSetSpeakerVolumeRunData* _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 yet 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;
}


MsmDeviceSetSpeakerVolume* msm_device_set_speaker_volume_construct (GType object_type) {
	MsmDeviceSetSpeakerVolume * self = NULL;
	self = (MsmDeviceSetSpeakerVolume*) fso_gsm_device_set_speaker_volume_construct (object_type);
	return self;
}


MsmDeviceSetSpeakerVolume* msm_device_set_speaker_volume_new (void) {
	return msm_device_set_speaker_volume_construct (TYPE_MSM_DEVICE_SET_SPEAKER_VOLUME);
}


static void msm_device_set_speaker_volume_class_init (MsmDeviceSetSpeakerVolumeClass * klass) {
	msm_device_set_speaker_volume_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_DEVICE_SET_SPEAKER_VOLUME_CLASS (klass)->run = msm_device_set_speaker_volume_real_run;
	FSO_GSM_DEVICE_SET_SPEAKER_VOLUME_CLASS (klass)->run_finish = msm_device_set_speaker_volume_real_run_finish;
}


static void msm_device_set_speaker_volume_instance_init (MsmDeviceSetSpeakerVolume * self) {
}


GType msm_device_set_speaker_volume_get_type (void) {
	return msm_device_set_speaker_volume_type_id;
}


GType msm_device_set_speaker_volume_register_type (GTypeModule * module) {
	static const GTypeInfo g_define_type_info = { sizeof (MsmDeviceSetSpeakerVolumeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) msm_device_set_speaker_volume_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (MsmDeviceSetSpeakerVolume), 0, (GInstanceInitFunc) msm_device_set_speaker_volume_instance_init, NULL };
	msm_device_set_speaker_volume_type_id = g_type_module_register_type (module, FSO_GSM_TYPE_DEVICE_SET_SPEAKER_VOLUME, "MsmDeviceSetSpeakerVolume", &g_define_type_info, 0);
	return msm_device_set_speaker_volume_type_id;
}



