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

/*
 * Copyright (C) 2009-2011 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.

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

 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
 *
 **/

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <fsobasics.h>
#include <gio/gio.h>
#include <freesmartphone.h>
#include <fsotransport.h>
#include <gee.h>
#include <smsutil.h>
#include <conversions.h>
#include <fsosystem.h>
#include <fsoframework.h>
#include <gobject/gvaluecollector.h>


#define FSO_GSM_TYPE_ROUTE_INFO (fso_gsm_route_info_get_type ())
#define FSO_GSM_ROUTE_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_ROUTE_INFO, FsoGsmRouteInfo))
#define FSO_GSM_ROUTE_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_ROUTE_INFO, FsoGsmRouteInfoClass))
#define FSO_GSM_IS_ROUTE_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_ROUTE_INFO))
#define FSO_GSM_IS_ROUTE_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_ROUTE_INFO))
#define FSO_GSM_ROUTE_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_ROUTE_INFO, FsoGsmRouteInfoClass))

typedef struct _FsoGsmRouteInfo FsoGsmRouteInfo;
typedef struct _FsoGsmRouteInfoClass FsoGsmRouteInfoClass;
typedef struct _FsoGsmRouteInfoPrivate FsoGsmRouteInfoPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _FsoGsmParamSpecRouteInfo FsoGsmParamSpecRouteInfo;

#define FSO_GSM_TYPE_IPDP_HANDLER (fso_gsm_ipdp_handler_get_type ())
#define FSO_GSM_IPDP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_IPDP_HANDLER, FsoGsmIPdpHandler))
#define FSO_GSM_IS_IPDP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_IPDP_HANDLER))
#define FSO_GSM_IPDP_HANDLER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_IPDP_HANDLER, FsoGsmIPdpHandlerIface))

typedef struct _FsoGsmIPdpHandler FsoGsmIPdpHandler;
typedef struct _FsoGsmIPdpHandlerIface FsoGsmIPdpHandlerIface;

#define FSO_GSM_TYPE_NULL_PDP_HANDLER (fso_gsm_null_pdp_handler_get_type ())
#define FSO_GSM_NULL_PDP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_NULL_PDP_HANDLER, FsoGsmNullPdpHandler))
#define FSO_GSM_NULL_PDP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_NULL_PDP_HANDLER, FsoGsmNullPdpHandlerClass))
#define FSO_GSM_IS_NULL_PDP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_NULL_PDP_HANDLER))
#define FSO_GSM_IS_NULL_PDP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_NULL_PDP_HANDLER))
#define FSO_GSM_NULL_PDP_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_NULL_PDP_HANDLER, FsoGsmNullPdpHandlerClass))

typedef struct _FsoGsmNullPdpHandler FsoGsmNullPdpHandler;
typedef struct _FsoGsmNullPdpHandlerClass FsoGsmNullPdpHandlerClass;
typedef struct _FsoGsmNullPdpHandlerPrivate FsoGsmNullPdpHandlerPrivate;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _FsoGsmNullPdpHandlerActivateData FsoGsmNullPdpHandlerActivateData;
typedef struct _FsoGsmNullPdpHandlerDeactivateData FsoGsmNullPdpHandlerDeactivateData;
typedef struct _fso_gsm_null_pdp_handler_statusUpdateData fso_gsm_null_pdp_handler_statusUpdateData;
#define _fso_gsm_route_info_unref0(var) ((var == NULL) ? NULL : (var = (fso_gsm_route_info_unref (var), NULL)))
typedef struct _fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData;
typedef struct _fso_gsm_null_pdp_handler_syncStatusData fso_gsm_null_pdp_handler_syncStatusData;

#define FSO_GSM_TYPE_PDP_HANDLER (fso_gsm_pdp_handler_get_type ())
#define FSO_GSM_PDP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_PDP_HANDLER, FsoGsmPdpHandler))
#define FSO_GSM_PDP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_PDP_HANDLER, FsoGsmPdpHandlerClass))
#define FSO_GSM_IS_PDP_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_PDP_HANDLER))
#define FSO_GSM_IS_PDP_HANDLER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_PDP_HANDLER))
#define FSO_GSM_PDP_HANDLER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_PDP_HANDLER, FsoGsmPdpHandlerClass))

typedef struct _FsoGsmPdpHandler FsoGsmPdpHandler;
typedef struct _FsoGsmPdpHandlerClass FsoGsmPdpHandlerClass;
typedef struct _FsoGsmPdpHandlerPrivate FsoGsmPdpHandlerPrivate;
typedef struct _FsoGsmPdpHandlerScActivateData FsoGsmPdpHandlerScActivateData;
typedef struct _FsoGsmPdpHandlerScDeactivateData FsoGsmPdpHandlerScDeactivateData;

#define FSO_GSM_TYPE_MODEM (fso_gsm_modem_get_type ())
#define FSO_GSM_MODEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_MODEM, FsoGsmModem))
#define FSO_GSM_IS_MODEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_MODEM))
#define FSO_GSM_MODEM_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_MODEM, FsoGsmModemIface))

typedef struct _FsoGsmModem FsoGsmModem;
typedef struct _FsoGsmModemIface FsoGsmModemIface;

#define FSO_GSM_TYPE_CHANNEL (fso_gsm_channel_get_type ())
#define FSO_GSM_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_CHANNEL, FsoGsmChannel))
#define FSO_GSM_IS_CHANNEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_CHANNEL))
#define FSO_GSM_CHANNEL_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_CHANNEL, FsoGsmChannelIface))

typedef struct _FsoGsmChannel FsoGsmChannel;
typedef struct _FsoGsmChannelIface FsoGsmChannelIface;

#define FSO_GSM_MODEM_TYPE_STATUS (fso_gsm_modem_status_get_type ())

#define FSO_GSM_MODEM_TYPE_NETWORK_STATUS (fso_gsm_modem_network_status_get_type ())

#define FSO_GSM_TYPE_AT_COMMAND_SEQUENCE (fso_gsm_at_command_sequence_get_type ())
#define FSO_GSM_AT_COMMAND_SEQUENCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_AT_COMMAND_SEQUENCE, FsoGsmAtCommandSequence))
#define FSO_GSM_AT_COMMAND_SEQUENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_AT_COMMAND_SEQUENCE, FsoGsmAtCommandSequenceClass))
#define FSO_GSM_IS_AT_COMMAND_SEQUENCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_AT_COMMAND_SEQUENCE))
#define FSO_GSM_IS_AT_COMMAND_SEQUENCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_AT_COMMAND_SEQUENCE))
#define FSO_GSM_AT_COMMAND_SEQUENCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_AT_COMMAND_SEQUENCE, FsoGsmAtCommandSequenceClass))

typedef struct _FsoGsmAtCommandSequence FsoGsmAtCommandSequence;
typedef struct _FsoGsmAtCommandSequenceClass FsoGsmAtCommandSequenceClass;

#define FSO_GSM_TYPE_AT_COMMAND_QUEUE_COMMAND (fso_gsm_at_command_queue_command_get_type ())
#define FSO_GSM_AT_COMMAND_QUEUE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_AT_COMMAND_QUEUE_COMMAND, FsoGsmAtCommandQueueCommand))
#define FSO_GSM_IS_AT_COMMAND_QUEUE_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_AT_COMMAND_QUEUE_COMMAND))
#define FSO_GSM_AT_COMMAND_QUEUE_COMMAND_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_AT_COMMAND_QUEUE_COMMAND, FsoGsmAtCommandQueueCommandIface))

typedef struct _FsoGsmAtCommandQueueCommand FsoGsmAtCommandQueueCommand;
typedef struct _FsoGsmAtCommandQueueCommandIface FsoGsmAtCommandQueueCommandIface;

#define FSO_GSM_TYPE_AT_COMMAND (fso_gsm_at_command_get_type ())
#define FSO_GSM_AT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_AT_COMMAND, FsoGsmAtCommand))
#define FSO_GSM_IS_AT_COMMAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_AT_COMMAND))
#define FSO_GSM_AT_COMMAND_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_AT_COMMAND, FsoGsmAtCommandIface))

typedef struct _FsoGsmAtCommand FsoGsmAtCommand;
typedef struct _FsoGsmAtCommandIface FsoGsmAtCommandIface;

#define FSO_GSM_CONSTANTS_TYPE_AT_RESPONSE (fso_gsm_constants_at_response_get_type ())

#define FSO_GSM_MODEM_TYPE_DATA (fso_gsm_modem_data_get_type ())
#define FSO_GSM_MODEM_DATA(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_MODEM_TYPE_DATA, FsoGsmModemData))
#define FSO_GSM_MODEM_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_MODEM_TYPE_DATA, FsoGsmModemDataClass))
#define FSO_GSM_MODEM_IS_DATA(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_MODEM_TYPE_DATA))
#define FSO_GSM_MODEM_IS_DATA_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_MODEM_TYPE_DATA))
#define FSO_GSM_MODEM_DATA_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_MODEM_TYPE_DATA, FsoGsmModemDataClass))

typedef struct _FsoGsmModemData FsoGsmModemData;
typedef struct _FsoGsmModemDataClass FsoGsmModemDataClass;

#define FSO_GSM_TYPE_CALL_HANDLER (fso_gsm_call_handler_get_type ())
#define FSO_GSM_CALL_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_CALL_HANDLER, FsoGsmCallHandler))
#define FSO_GSM_IS_CALL_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_CALL_HANDLER))
#define FSO_GSM_CALL_HANDLER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_CALL_HANDLER, FsoGsmCallHandlerIface))

typedef struct _FsoGsmCallHandler FsoGsmCallHandler;
typedef struct _FsoGsmCallHandlerIface FsoGsmCallHandlerIface;

#define FSO_GSM_TYPE_CALL_INFO (fso_gsm_call_info_get_type ())
#define FSO_GSM_CALL_INFO(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_CALL_INFO, FsoGsmCallInfo))
#define FSO_GSM_CALL_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_CALL_INFO, FsoGsmCallInfoClass))
#define FSO_GSM_IS_CALL_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_CALL_INFO))
#define FSO_GSM_IS_CALL_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_CALL_INFO))
#define FSO_GSM_CALL_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_CALL_INFO, FsoGsmCallInfoClass))

typedef struct _FsoGsmCallInfo FsoGsmCallInfo;
typedef struct _FsoGsmCallInfoClass FsoGsmCallInfoClass;

#define FSO_GSM_TYPE_SMS_HANDLER (fso_gsm_sms_handler_get_type ())
#define FSO_GSM_SMS_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_SMS_HANDLER, FsoGsmSmsHandler))
#define FSO_GSM_IS_SMS_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_SMS_HANDLER))
#define FSO_GSM_SMS_HANDLER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_SMS_HANDLER, FsoGsmSmsHandlerIface))

typedef struct _FsoGsmSmsHandler FsoGsmSmsHandler;
typedef struct _FsoGsmSmsHandlerIface FsoGsmSmsHandlerIface;

#define TYPE_WRAP_HEX_PDU (wrap_hex_pdu_get_type ())
#define WRAP_HEX_PDU(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WRAP_HEX_PDU, WrapHexPdu))
#define WRAP_HEX_PDU_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WRAP_HEX_PDU, WrapHexPduClass))
#define IS_WRAP_HEX_PDU(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WRAP_HEX_PDU))
#define IS_WRAP_HEX_PDU_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WRAP_HEX_PDU))
#define WRAP_HEX_PDU_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WRAP_HEX_PDU, WrapHexPduClass))

typedef struct _WrapHexPdu WrapHexPdu;
typedef struct _WrapHexPduClass WrapHexPduClass;

#define FSO_GSM_TYPE_ISMS_STORAGE (fso_gsm_isms_storage_get_type ())
#define FSO_GSM_ISMS_STORAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_ISMS_STORAGE, FsoGsmISmsStorage))
#define FSO_GSM_IS_ISMS_STORAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_ISMS_STORAGE))
#define FSO_GSM_ISMS_STORAGE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_ISMS_STORAGE, FsoGsmISmsStorageIface))

typedef struct _FsoGsmISmsStorage FsoGsmISmsStorage;
typedef struct _FsoGsmISmsStorageIface FsoGsmISmsStorageIface;

#define FSO_GSM_TYPE_PHONEBOOK_HANDLER (fso_gsm_phonebook_handler_get_type ())
#define FSO_GSM_PHONEBOOK_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_PHONEBOOK_HANDLER, FsoGsmPhonebookHandler))
#define FSO_GSM_IS_PHONEBOOK_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_PHONEBOOK_HANDLER))
#define FSO_GSM_PHONEBOOK_HANDLER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_PHONEBOOK_HANDLER, FsoGsmPhonebookHandlerIface))

typedef struct _FsoGsmPhonebookHandler FsoGsmPhonebookHandler;
typedef struct _FsoGsmPhonebookHandlerIface FsoGsmPhonebookHandlerIface;

#define FSO_GSM_TYPE_PHONEBOOK_STORAGE (fso_gsm_phonebook_storage_get_type ())
#define FSO_GSM_PHONEBOOK_STORAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_PHONEBOOK_STORAGE, FsoGsmPhonebookStorage))
#define FSO_GSM_PHONEBOOK_STORAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_PHONEBOOK_STORAGE, FsoGsmPhonebookStorageClass))
#define FSO_GSM_IS_PHONEBOOK_STORAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_PHONEBOOK_STORAGE))
#define FSO_GSM_IS_PHONEBOOK_STORAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_PHONEBOOK_STORAGE))
#define FSO_GSM_PHONEBOOK_STORAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_PHONEBOOK_STORAGE, FsoGsmPhonebookStorageClass))

typedef struct _FsoGsmPhonebookStorage FsoGsmPhonebookStorage;
typedef struct _FsoGsmPhonebookStorageClass FsoGsmPhonebookStorageClass;

#define FSO_GSM_TYPE_WATCH_DOG (fso_gsm_watch_dog_get_type ())
#define FSO_GSM_WATCH_DOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_WATCH_DOG, FsoGsmWatchDog))
#define FSO_GSM_IS_WATCH_DOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_WATCH_DOG))
#define FSO_GSM_WATCH_DOG_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), FSO_GSM_TYPE_WATCH_DOG, FsoGsmWatchDogIface))

typedef struct _FsoGsmWatchDog FsoGsmWatchDog;
typedef struct _FsoGsmWatchDogIface FsoGsmWatchDogIface;
typedef struct _fso_gsm_pdp_handler_updateStatusData fso_gsm_pdp_handler_updateStatusData;
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _FsoGsmPdpHandlerActivateData FsoGsmPdpHandlerActivateData;
typedef struct _FsoGsmPdpHandlerDeactivateData FsoGsmPdpHandlerDeactivateData;
#define _fso_framework_network_interface_unref0(var) ((var == NULL) ? NULL : (var = (fso_framework_network_interface_unref (var), NULL)))
typedef struct _fso_gsm_pdp_handler_connectedWithNewDefaultRouteData fso_gsm_pdp_handler_connectedWithNewDefaultRouteData;
typedef struct _FsoGsmModemDataPrivate FsoGsmModemDataPrivate;

#define FSO_GSM_TYPE_PHONEBOOK_PARAMS (fso_gsm_phonebook_params_get_type ())
#define FSO_GSM_PHONEBOOK_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_PHONEBOOK_PARAMS, FsoGsmPhonebookParams))
#define FSO_GSM_PHONEBOOK_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_PHONEBOOK_PARAMS, FsoGsmPhonebookParamsClass))
#define FSO_GSM_IS_PHONEBOOK_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_PHONEBOOK_PARAMS))
#define FSO_GSM_IS_PHONEBOOK_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_PHONEBOOK_PARAMS))
#define FSO_GSM_PHONEBOOK_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_PHONEBOOK_PARAMS, FsoGsmPhonebookParamsClass))

typedef struct _FsoGsmPhonebookParams FsoGsmPhonebookParams;
typedef struct _FsoGsmPhonebookParamsClass FsoGsmPhonebookParamsClass;

#define FSO_GSM_TYPE_CONTEXT_PARAMS (fso_gsm_context_params_get_type ())
#define FSO_GSM_CONTEXT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_CONTEXT_PARAMS, FsoGsmContextParams))
#define FSO_GSM_CONTEXT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_CONTEXT_PARAMS, FsoGsmContextParamsClass))
#define FSO_GSM_IS_CONTEXT_PARAMS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_CONTEXT_PARAMS))
#define FSO_GSM_IS_CONTEXT_PARAMS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_CONTEXT_PARAMS))
#define FSO_GSM_CONTEXT_PARAMS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_CONTEXT_PARAMS, FsoGsmContextParamsClass))

typedef struct _FsoGsmContextParams FsoGsmContextParams;
typedef struct _FsoGsmContextParamsClass FsoGsmContextParamsClass;

#define FSO_GSM_TYPE_NETWORK_TIME_REPORT (fso_gsm_network_time_report_get_type ())
#define FSO_GSM_NETWORK_TIME_REPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), FSO_GSM_TYPE_NETWORK_TIME_REPORT, FsoGsmNetworkTimeReport))
#define FSO_GSM_NETWORK_TIME_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), FSO_GSM_TYPE_NETWORK_TIME_REPORT, FsoGsmNetworkTimeReportClass))
#define FSO_GSM_IS_NETWORK_TIME_REPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), FSO_GSM_TYPE_NETWORK_TIME_REPORT))
#define FSO_GSM_IS_NETWORK_TIME_REPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), FSO_GSM_TYPE_NETWORK_TIME_REPORT))
#define FSO_GSM_NETWORK_TIME_REPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), FSO_GSM_TYPE_NETWORK_TIME_REPORT, FsoGsmNetworkTimeReportClass))

typedef struct _FsoGsmNetworkTimeReport FsoGsmNetworkTimeReport;
typedef struct _FsoGsmNetworkTimeReportClass FsoGsmNetworkTimeReportClass;
typedef struct _fso_gsm_pdp_handler_syncStatusData fso_gsm_pdp_handler_syncStatusData;

struct _FsoGsmRouteInfo {
	GTypeInstance parent_instance;
	volatile int ref_count;
	FsoGsmRouteInfoPrivate * priv;
	gchar* iface;
	gchar* ipv4addr;
	gchar* ipv4mask;
	gchar* ipv4gateway;
	gchar* dns1;
	gchar* dns2;
};

struct _FsoGsmRouteInfoClass {
	GTypeClass parent_class;
	void (*finalize) (FsoGsmRouteInfo *self);
};

struct _FsoGsmParamSpecRouteInfo {
	GParamSpec parent_instance;
};

struct _FsoGsmIPdpHandlerIface {
	GTypeInterface parent_iface;
	void (*activate) (FsoGsmIPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*activate_finish) (FsoGsmIPdpHandler* self, GAsyncResult* _res_, GError** error);
	void (*deactivate) (FsoGsmIPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*deactivate_finish) (FsoGsmIPdpHandler* self, GAsyncResult* _res_, GError** error);
	void (*statusUpdate) (FsoGsmIPdpHandler* self, const gchar* status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*statusUpdate_finish) (FsoGsmIPdpHandler* self, GAsyncResult* _res_);
	void (*connectedWithNewDefaultRoute) (FsoGsmIPdpHandler* self, FsoGsmRouteInfo* route, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*connectedWithNewDefaultRoute_finish) (FsoGsmIPdpHandler* self, GAsyncResult* _res_);
	void (*disconnected) (FsoGsmIPdpHandler* self);
	void (*syncStatus) (FsoGsmIPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*syncStatus_finish) (FsoGsmIPdpHandler* self, GAsyncResult* _res_);
	FreeSmartphoneGSMContextStatus (*get_status) (FsoGsmIPdpHandler* self);
	void (*set_status) (FsoGsmIPdpHandler* self, FreeSmartphoneGSMContextStatus value);
	GHashTable* (*get_properties) (FsoGsmIPdpHandler* self);
	void (*set_properties) (FsoGsmIPdpHandler* self, GHashTable* value);
};

struct _FsoGsmNullPdpHandler {
	FsoFrameworkAbstractObject parent_instance;
	FsoGsmNullPdpHandlerPrivate * priv;
};

struct _FsoGsmNullPdpHandlerClass {
	FsoFrameworkAbstractObjectClass parent_class;
};

struct _FsoGsmNullPdpHandlerPrivate {
	FreeSmartphoneGSMContextStatus _status;
	GHashTable* _properties;
};

struct _FsoGsmNullPdpHandlerActivateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmNullPdpHandler* self;
};

struct _FsoGsmNullPdpHandlerDeactivateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmNullPdpHandler* self;
};

struct _fso_gsm_null_pdp_handler_statusUpdateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmNullPdpHandler* self;
	gchar* status;
	GHashTable* properties;
};

struct _fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmNullPdpHandler* self;
	FsoGsmRouteInfo* route;
};

struct _fso_gsm_null_pdp_handler_syncStatusData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmNullPdpHandler* self;
};

struct _FsoGsmPdpHandler {
	FsoFrameworkAbstractObject parent_instance;
	FsoGsmPdpHandlerPrivate * priv;
};

struct _FsoGsmPdpHandlerClass {
	FsoFrameworkAbstractObjectClass parent_class;
	void (*sc_activate) (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*sc_activate_finish) (FsoGsmPdpHandler* self, GAsyncResult* _res_, GError** error);
	void (*sc_deactivate) (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*sc_deactivate_finish) (FsoGsmPdpHandler* self, GAsyncResult* _res_, GError** error);
	void (*statusUpdate) (FsoGsmPdpHandler* self, const gchar* status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*statusUpdate_finish) (FsoGsmPdpHandler* self, GAsyncResult* _res_);
};

struct _FsoGsmPdpHandlerPrivate {
	gchar* lastNetworkRegistrationStatus;
	gboolean inSyncStatus;
	FreeSmartphoneGSMContextStatus _status;
	GHashTable* _properties;
};

struct _FsoGsmPdpHandlerScActivateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmPdpHandler* self;
};

struct _FsoGsmPdpHandlerScDeactivateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmPdpHandler* self;
};

struct _FsoGsmChannelIface {
	GTypeInterface parent_iface;
	void (*injectResponse) (FsoGsmChannel* self, const gchar* response);
	void (*suspend) (FsoGsmChannel* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*suspend_finish) (FsoGsmChannel* self, GAsyncResult* _res_);
	void (*resume) (FsoGsmChannel* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*resume_finish) (FsoGsmChannel* self, GAsyncResult* _res_);
};

typedef enum  {
	FSO_GSM_MODEM_STATUS_UNKNOWN,
	FSO_GSM_MODEM_STATUS_CLOSED,
	FSO_GSM_MODEM_STATUS_INITIALIZING,
	FSO_GSM_MODEM_STATUS_ALIVE_NO_SIM,
	FSO_GSM_MODEM_STATUS_ALIVE_SIM_LOCKED,
	FSO_GSM_MODEM_STATUS_ALIVE_SIM_UNLOCKED,
	FSO_GSM_MODEM_STATUS_ALIVE_SIM_READY,
	FSO_GSM_MODEM_STATUS_ALIVE_REGISTERED,
	FSO_GSM_MODEM_STATUS_SUSPENDING,
	FSO_GSM_MODEM_STATUS_SUSPENDED,
	FSO_GSM_MODEM_STATUS_RESUMING,
	FSO_GSM_MODEM_STATUS_CLOSING
} FsoGsmModemStatus;

typedef enum  {
	FSO_GSM_MODEM_NETWORK_STATUS_UNKNOWN,
	FSO_GSM_MODEM_NETWORK_STATUS_UNREGISTERED,
	FSO_GSM_MODEM_NETWORK_STATUS_SEARCHING,
	FSO_GSM_MODEM_NETWORK_STATUS_REGISTERED
} FsoGsmModemNetworkStatus;

struct _FsoGsmAtCommandQueueCommandIface {
	GTypeInterface parent_iface;
	guint (*get_retry) (FsoGsmAtCommandQueueCommand* self);
	guint (*get_timeout) (FsoGsmAtCommandQueueCommand* self);
	gchar* (*get_prefix) (FsoGsmAtCommandQueueCommand* self);
	gchar* (*get_postfix) (FsoGsmAtCommandQueueCommand* self);
	gboolean (*is_valid_prefix) (FsoGsmAtCommandQueueCommand* self, const gchar* line);
};

typedef enum  {
	FSO_GSM_AT_COMMAND_ERROR_UNABLE_TO_PARSE
} FsoGsmAtCommandError;
#define FSO_GSM_AT_COMMAND_ERROR fso_gsm_at_command_error_quark ()
typedef enum  {
	FSO_GSM_CONSTANTS_AT_RESPONSE_VALID = 0,
	FSO_GSM_CONSTANTS_AT_RESPONSE_OK = 1,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CONNECT = 2,
	FSO_GSM_CONSTANTS_AT_RESPONSE_UNEXPECTED_LENGTH = 501,
	FSO_GSM_CONSTANTS_AT_RESPONSE_UNABLE_TO_PARSE = 502,
	FSO_GSM_CONSTANTS_AT_RESPONSE_ERROR = 503,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_START = 1000,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_000_PHONE_FAILURE = 1000,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_001_NO_CONNECTION_TO_PHONE = 1001,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_002_PHONE_ADAPTER_LINK_RESERVED = 1002,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_003_OPERATION_NOT_ALLOWED = 1003,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_004_OPERATION_NOT_SUPPORTED = 1004,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_005_PH_SIM_PIN_REQUIRED = 1005,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_006_PH_FSIM_PIN_REQUIRED = 1006,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_007_PH_FSIM_PUK_REQUIRED = 1007,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_010_SIM_NOT_INSERTED = 1010,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_011_SIM_PIN_REQUIRED = 1011,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_012_SIM_PUK_REQUIRED = 1012,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_013_SIM_FAILURE = 1013,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_014_SIM_BUSY = 1014,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_015_SIM_WRONG = 1015,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_016_INCORRECT_PASSWORD = 1016,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_017_SIM_PIN2_REQUIRED = 1017,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_018_SIM_PUK2_REQUIRED = 1018,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_020_MEMORY_FULL = 1020,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_021_INVALID_INDEX = 1021,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_022_NOT_FOUND = 1022,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_023_MEMORY_FAILURE = 1023,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_024_TEXT_STRING_TOO_LONG = 1024,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_025_INVALID_CHARACTERS_IN_TEXT_STRING = 1025,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_026_DIAL_STRING_TOO_LONG = 1026,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_027_INVALID_CHARACTERS_IN_DIAL_STRING = 1027,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_030_NO_NETWORK_SERVICE = 1030,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_031_NETWORK_TIMEOUT = 1031,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_032_NETWORK_NOT_ALLOWED_EMERGENCY_CALLS_ONLY = 1032,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_040_NETWORK_PERSONALIZATION_PIN_REQUIRED = 1040,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_041_NETWORK_PERSONALIZATION_PUK_REQUIRED = 1041,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_042_NETWORK_SUBSET_PERSONALIZATION_PIN_REQUIRED = 1042,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_043_NETWORK_SUBSET_PERSONALIZATION_PUK_REQUIRED = 1043,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_044_SERVICE_PROVIDER_PERSONALIZATION_PIN_REQUIRED = 1044,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_045_SERVICE_PROVIDER_PERSONALIZATION_PUK_REQUIRED = 1045,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_046_CORPORATE_PERSONALIZATION_PIN_REQUIRED = 1046,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_047_CORPORATE_PERSONALIZATION_PUK_REQUIRED = 1047,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_048_PH_SIM_PUK_REQUIRED = 1048,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_100_UNKNOWN_ERROR = 1100,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_103_GPRS_ILLEGAL_MS = 1103,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_106_GPRS_ILLEGAL_ME = 1106,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_107_GPRS_SERVICES_NOT_ALLOWED = 1107,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_111_GPRS_PLMN_NOT_ALLOWED = 1111,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_112_GPRS_LOCATION_AREA_NOT_ALLOWED = 1112,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_113_GPRS_ROAMING_NOT_ALLOWED_IN_THIS_LOCATION_AREA = 1113,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_126_GPRS_OPERATION_TEMPORARY_NOT_ALLOWED = 1126,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_132_GPRS_SERVICE_OPERATION_NOT_SUPPORTED = 1132,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_133_GPRS_REQUESTED_SERVICE_OPTION_NOT_SUBSCRIBED = 1133,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_134_GPRS_SERVICE_OPTION_TEMPORARY_OUT_OF_ORDER = 1134,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_148_GPRS_UNSPECIFIED_ERROR = 1148,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_149_GPRS_PDP_AUTHENTICATION_FAILURE = 1149,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_150_GPRS_INVALID_MOBILE_CLASS = 1150,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_256_OPERATION_TEMPORARILY_NOT_ALLOWED = 1256,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_257_CALL_BARRED = 1257,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_258_PHONE_IS_BUSY = 1258,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_259_USER_ABORT = 1259,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_260_INVALID_DIAL_STRING = 1260,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_261_SS_NOT_EXECUTED = 1261,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_262_SIM_BLOCKED = 1262,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_263_INVALID_BLOCK = 1263,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_265_BUSY_TRY_AGAIN = 1265,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_512_FAILED_TO_ABORT_COMMAND = 1512,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_513_ACM_RESET_NEEDED = 1513,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_514_SIM_APPLICATION_TOOLKIT_BUSY = 1514,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CME_ERROR_772_SIM_POWERED_DOWN = 1772,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_START = 2000,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_001_UNASSIGNED_NUMBER = 2001,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_008_OPERATOR_DETERMINED_BARRING = 2008,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_010_CALL_BARED = 2010,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_021_SHORT_MESSAGE_TRANSFER_REJECTED = 2021,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_027_DESTINATION_OUT_OF_SERVICE = 2027,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_028_UNIDENTIFIED_SUBSCRIBER = 2028,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_029_FACILITY_REJECTED = 2029,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_030_UNKNOWN_SUBSCRIBER = 2030,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_038_NETWORK_OUT_OF_ORDER = 2038,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_041_TEMPORARY_FAILURE = 2041,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_042_CONGESTION = 2042,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_047_RECOURCES_UNAVAILABLE = 2047,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_050_REQUESTED_FACILITY_NOT_SUBSCRIBED = 2050,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_069_REQUESTED_FACILITY_NOT_IMPLEMENTED = 2069,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_081_INVALID_SHORT_MESSAGE_TRANSFER_REFERENCE_VALUE = 2081,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_095_INVALID_MESSAGE_UNSPECIFIED = 2095,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_096_INVALID_MANDATORY_INFORMATION = 2096,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_097_MESSAGE_TYPE_NON_EXISTENT_OR_NOT_IMPLEMENTED = 2097,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_098_MESSAGE_NOT_COMPATIBLE_WITH_SHORT_MESSAGE_PROTOCOL = 2098,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_099_INFORMATION_ELEMENT_NON_EXISTENT_OR_NOT_IMPLEMENTED = 2099,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_111_PROTOCOL_ERROR_UNSPECIFIED = 2111,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_127_INTERNETWORKING_UNSPECIFIED = 2127,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_128_TELEMATIC_INTERNETWORKING_NOT_SUPPORTED = 2128,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_129_SHORT_MESSAGE_TYPE_0_NOT_SUPPORTED = 2129,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_130_CANNOT_REPLACE_SHORT_MESSAGE = 2130,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_143_UNSPECIFIED_TP_PID_ERROR = 2143,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_144_DATA_CODE_SCHEME_NOT_SUPPORTED = 2144,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_145_MESSAGE_CLASS_NOT_SUPPORTED = 2145,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_159_UNSPECIFIED_TP_DCS_ERROR = 2159,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_160_COMMAND_CANNOT_BE_ACTIONED = 2160,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_161_COMMAND_UNSUPPORTED = 2161,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_175_UNSPECIFIED_TP_COMMAND_ERROR = 2175,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_176_TPDU_NOT_SUPPORTED = 2176,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_192_SC_BUSY = 2192,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_193_NO_SC_SUBSCRIPTION = 2193,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_194_SC_SYSTEM_FAILURE = 2194,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_195_INVALID_SME_ADDRESS = 2195,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_196_DESTINATION_SME_BARRED = 2196,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_197_SM_REJECTED_DUPLICATE_SM = 2197,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_198_TP_VPF_NOT_SUPPORTED = 2198,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_199_TP_VP_NOT_SUPPORTED = 2199,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_208_D0_SIM_SMS_STORAGE_FULL = 2208,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_209_NO_SMS_STORAGE_CAPABILITY_IN_SIM = 2209,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_210_ERROR_IN_MS = 2210,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_211_MEMORY_CAPACITY_EXCEEDED = 2211,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_212_SIM_APPLICATION_TOOLKIT_BUSY = 2212,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_213_SIM_DATA_DOWNLOAD_ERROR = 2213,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_255_UNSPECIFIED_ERROR_CAUSE = 2255,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_300_ME_FAILURE = 2300,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_301_SMS_SERVICE_OF_ME_RESERVED = 2301,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_302_OPERATION_NOT_ALLOWED = 2302,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_303_OPERATION_NOT_SUPPORTED = 2303,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_304_INVALID_PDU_MODE_PARAMETER = 2304,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_305_INVALID_TEXT_MODE_PARAMETER = 2305,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_310_SIM_NOT_INSERTED = 2310,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_311_SIM_PIN_REQUIRED = 2311,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_312_PH_SIM_PIN_REQUIRED = 2312,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_313_SIM_FAILURE = 2313,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_314_SIM_BUSY = 2314,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_315_SIM_WRONG = 2315,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_316_SIM_PUK_REQUIRED = 2316,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_317_SIM_PIN2_REQUIRED = 2317,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_318_SIM_PUK2_REQUIRED = 2318,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_320_MEMORY_FAILURE = 2320,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_321_INVALID_MEMORY_INDEX = 2321,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_322_MEMORY_FULL = 2322,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_330_SMSC_ADDRESS_UNKNOWN = 2330,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_331_NO_NETWORK_SERVICE = 2331,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_332_NETWORK_TIMEOUT = 2332,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_340_NO_CNMA_EXPECTED = 2340,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_500_UNKNOWN_ERROR = 2500,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_512_FAILED_TO_ABORT_COMMAND = 2512,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_513_ACM_RESET_NEEDED = 2513,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_514_INVALID_STATUS = 2514,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_515_DEVICE_BUSY_OR_INVALID_CHARACTER_IN_STRING = 2515,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_516_INVALID_LENGTH = 2516,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_517_INVALID_CHARACTER_IN_PDU = 2517,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_518_INVALID_PARAMETER = 2518,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_519_INVALID_LENGTH_OR_CHARACTER = 2519,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_520_INVALID_CHARACTER_IN_TEXT = 2520,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_521_TIMER_EXPIRED = 2521,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_522_OPERATION_TEMPORARY_NOT_ALLOWED = 2522,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_532_SIM_NOT_READY = 2532,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_534_CELL_BROADCAST_ERROR_UNKNOWN = 2534,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_535_PROTOCOL_STACK_BUSY = 2535,
	FSO_GSM_CONSTANTS_AT_RESPONSE_CMS_ERROR_538_INVALID_PARAMETER = 2538,
	FSO_GSM_CONSTANTS_AT_RESPONSE_EXT_ERROR_START = 3000,
	FSO_GSM_CONSTANTS_AT_RESPONSE_EXT_ERROR_0_INVALID_PARAMETERR = 3000
} FsoGsmConstantsAtResponse;

struct _FsoGsmAtCommandIface {
	GTypeInterface parent_iface;
	guint (*get_timeout) (FsoGsmAtCommand* self);
	guint (*get_retry) (FsoGsmAtCommand* self);
	gchar* (*get_prefix) (FsoGsmAtCommand* self);
	gchar* (*get_postfix) (FsoGsmAtCommand* self);
	gboolean (*is_valid_prefix) (FsoGsmAtCommand* self, const gchar* line);
	void (*parse) (FsoGsmAtCommand* self, const gchar* response, GError** error);
	void (*parseMulti) (FsoGsmAtCommand* self, gchar** response, int response_length1, GError** error);
	void (*parseTest) (FsoGsmAtCommand* self, const gchar* response, GError** error);
	gchar* (*encodeString) (FsoGsmAtCommand* self, const gchar* str);
	gchar* (*decodeString) (FsoGsmAtCommand* self, const gchar* str);
	FsoGsmConstantsAtResponse (*validate) (FsoGsmAtCommand* self, gchar** response, int response_length1);
	FsoGsmConstantsAtResponse (*validateTest) (FsoGsmAtCommand* self, gchar** response, int response_length1);
	FsoGsmConstantsAtResponse (*validateUrc) (FsoGsmAtCommand* self, const gchar* response);
	FsoGsmConstantsAtResponse (*validateUrcPdu) (FsoGsmAtCommand* self, gchar** response, int response_length1);
	FsoGsmConstantsAtResponse (*validateOk) (FsoGsmAtCommand* self, gchar** response, int response_length1);
	FsoGsmConstantsAtResponse (*validateMulti) (FsoGsmAtCommand* self, gchar** response, int response_length1);
};

struct _FsoGsmCallHandlerIface {
	GTypeInterface parent_iface;
	void (*handleIncomingCall) (FsoGsmCallHandler* self, FsoGsmCallInfo* call_info);
	void (*handleConnectingCall) (FsoGsmCallHandler* self, FsoGsmCallInfo* call_info);
	void (*handleEndingCall) (FsoGsmCallHandler* self, FsoGsmCallInfo* call_info);
	void (*addSupplementaryInformation) (FsoGsmCallHandler* self, const gchar* direction, const gchar* info);
	void (*activate) (FsoGsmCallHandler* self, gint id, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*activate_finish) (FsoGsmCallHandler* self, GAsyncResult* _res_, GError** error);
	void (*initiate) (FsoGsmCallHandler* self, const gchar* number, const gchar* ctype, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gint (*initiate_finish) (FsoGsmCallHandler* self, GAsyncResult* _res_, GError** error);
	void (*hold) (FsoGsmCallHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*hold_finish) (FsoGsmCallHandler* self, GAsyncResult* _res_, GError** error);
	void (*release) (FsoGsmCallHandler* self, gint id, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*release_finish) (FsoGsmCallHandler* self, GAsyncResult* _res_, GError** error);
	void (*releaseAll) (FsoGsmCallHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*releaseAll_finish) (FsoGsmCallHandler* self, GAsyncResult* _res_, GError** error);
};

struct _FsoGsmISmsStorageIface {
	GTypeInterface parent_iface;
	void (*clean) (FsoGsmISmsStorage* self);
	gint (*addSms) (FsoGsmISmsStorage* self, struct sms* message);
	GeeArrayList* (*keys) (FsoGsmISmsStorage* self);
	void (*message) (FsoGsmISmsStorage* self, const gchar* key, gint index, FreeSmartphoneGSMSIMMessage* result);
	FreeSmartphoneGSMSIMMessage* (*messagebook) (FsoGsmISmsStorage* self, int* result_length1);
	guint16 (*lastReferenceNumber) (FsoGsmISmsStorage* self);
	guint16 (*increasingReferenceNumber) (FsoGsmISmsStorage* self);
	void (*storeTransactionIndizesForSentMessage) (FsoGsmISmsStorage* self, GeeArrayList* hexpdus);
	gint (*confirmReceivedMessage) (FsoGsmISmsStorage* self, gint netreference);
};

struct _FsoGsmSmsHandlerIface {
	GTypeInterface parent_iface;
	void (*handleIncomingSmsOnSim) (FsoGsmSmsHandler* self, guint index, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*handleIncomingSmsOnSim_finish) (FsoGsmSmsHandler* self, GAsyncResult* _res_);
	void (*handleIncomingSms) (FsoGsmSmsHandler* self, const gchar* hexpdu, gint tpdulen, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*handleIncomingSms_finish) (FsoGsmSmsHandler* self, GAsyncResult* _res_);
	void (*handleIncomingSmsReport) (FsoGsmSmsHandler* self, const gchar* hexpdu, gint tpdulen, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*handleIncomingSmsReport_finish) (FsoGsmSmsHandler* self, GAsyncResult* _res_);
	guint16 (*lastReferenceNumber) (FsoGsmSmsHandler* self);
	guint16 (*nextReferenceNumber) (FsoGsmSmsHandler* self);
	GeeArrayList* (*formatTextMessage) (FsoGsmSmsHandler* self, const gchar* number, const gchar* contents, gboolean requestReport);
	void (*storeTransactionIndizesForSentMessage) (FsoGsmSmsHandler* self, GeeArrayList* hexpdus);
	FsoGsmISmsStorage* (*get_storage) (FsoGsmSmsHandler* self);
	void (*set_storage) (FsoGsmSmsHandler* self, FsoGsmISmsStorage* value);
};

struct _FsoGsmPhonebookHandlerIface {
	GTypeInterface parent_iface;
	void (*syncWithSim) (FsoGsmPhonebookHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*syncWithSim_finish) (FsoGsmPhonebookHandler* self, GAsyncResult* _res_);
	FsoGsmPhonebookStorage* (*get_storage) (FsoGsmPhonebookHandler* self);
	void (*set_storage) (FsoGsmPhonebookHandler* self, FsoGsmPhonebookStorage* value);
};

struct _FsoGsmWatchDogIface {
	GTypeInterface parent_iface;
	void (*check) (FsoGsmWatchDog* self);
	void (*resetUnlockMarker) (FsoGsmWatchDog* self);
};

struct _FsoGsmModemIface {
	GTypeInterface parent_iface;
	void (*open) (FsoGsmModem* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*open_finish) (FsoGsmModem* self, GAsyncResult* _res_);
	void (*close) (FsoGsmModem* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*close_finish) (FsoGsmModem* self, GAsyncResult* _res_);
	void (*suspend) (FsoGsmModem* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*suspend_finish) (FsoGsmModem* self, GAsyncResult* _res_);
	void (*resume) (FsoGsmModem* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gboolean (*resume_finish) (FsoGsmModem* self, GAsyncResult* _res_);
	void (*injectResponse) (FsoGsmModem* self, const gchar* command, const gchar* channel, GError** error);
	void (*setFunctionality) (FsoGsmModem* self, const gchar* level, gboolean autoregister, const gchar* pin, GAsyncReadyCallback _callback_, gpointer _user_data_);
	void (*setFunctionality_finish) (FsoGsmModem* self, GAsyncResult* _res_, GError** error);
	void (*registerChannel) (FsoGsmModem* self, const gchar* name, FsoGsmChannel* channel);
	void (*advanceToState) (FsoGsmModem* self, FsoGsmModemStatus status, gboolean force);
	void (*advanceNetworkState) (FsoGsmModem* self, FsoGsmModemNetworkStatus status);
	FsoGsmAtCommandSequence* (*atCommandSequence) (FsoGsmModem* self, const gchar* channel, const gchar* purpose);
	gpointer (*createMediator) (FsoGsmModem* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GError** error);
	gpointer (*createAtCommand) (FsoGsmModem* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, const gchar* command);
	gpointer (*theDevice) (FsoGsmModem* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func);
	gchar* (*allocateDataPort) (FsoGsmModem* self);
	void (*releaseDataPort) (FsoGsmModem* self);
	void (*processAtCommandAsync) (FsoGsmModem* self, FsoGsmAtCommand* command, const gchar* request, gint retries, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gchar** (*processAtCommandAsync_finish) (FsoGsmModem* self, GAsyncResult* _res_, int* result_length1);
	void (*processAtPduCommandAsync) (FsoGsmModem* self, FsoGsmAtCommand* command, const gchar* request, gint retries, GAsyncReadyCallback _callback_, gpointer _user_data_);
	gchar** (*processAtPduCommandAsync_finish) (FsoGsmModem* self, GAsyncResult* _res_, int* result_length1);
	void (*sendAtCommand) (FsoGsmModem* self, FsoGsmAtCommand* command, const gchar* request, gint retries);
	FsoGsmChannel* (*channel) (FsoGsmModem* self, const gchar* category);
	FsoGsmModemStatus (*status) (FsoGsmModem* self);
	FsoGsmModemNetworkStatus (*network_status) (FsoGsmModem* self);
	FreeSmartphoneGSMDeviceStatus (*externalStatus) (FsoGsmModem* self);
	FsoGsmModemData* (*data) (FsoGsmModem* self);
	void (*registerAtCommandSequence) (FsoGsmModem* self, const gchar* channel, const gchar* purpose, FsoGsmAtCommandSequence* sequence);
	gboolean (*isAlive) (FsoGsmModem* self);
	GObject* (*get_parent) (FsoGsmModem* self);
	void (*set_parent) (FsoGsmModem* self, GObject* value);
	FsoGsmCallHandler* (*get_callhandler) (FsoGsmModem* self);
	void (*set_callhandler) (FsoGsmModem* self, FsoGsmCallHandler* value);
	FsoGsmSmsHandler* (*get_smshandler) (FsoGsmModem* self);
	void (*set_smshandler) (FsoGsmModem* self, FsoGsmSmsHandler* value);
	FsoGsmPhonebookHandler* (*get_pbhandler) (FsoGsmModem* self);
	void (*set_pbhandler) (FsoGsmModem* self, FsoGsmPhonebookHandler* value);
	FsoGsmWatchDog* (*get_watchdog) (FsoGsmModem* self);
	void (*set_watchdog) (FsoGsmModem* self, FsoGsmWatchDog* value);
	FsoGsmIPdpHandler* (*get_pdphandler) (FsoGsmModem* self);
	void (*set_pdphandler) (FsoGsmModem* self, FsoGsmIPdpHandler* value);
};

struct _fso_gsm_pdp_handler_updateStatusData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmPdpHandler* self;
	FreeSmartphoneGSMContextStatus status;
	GHashTable* properties;
	FreeSmartphoneGSMContextStatus _tmp0_;
	FreeSmartphoneGSMContextStatus _tmp1_;
	FreeSmartphoneGSMContextStatus _tmp2_;
	FsoFrameworkLogger* _tmp3_;
	FreeSmartphoneGSMContextStatus _tmp4_;
	GEnumValue* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	FreeSmartphoneGSMContextStatus _tmp8_;
	GHashTable* _tmp9_;
	FsoGsmModem* _tmp10_;
	gpointer _tmp11_;
	FreeSmartphoneGSMPDP* obj;
	FreeSmartphoneGSMPDP* _tmp12_;
	FreeSmartphoneGSMContextStatus _tmp13_;
	GHashTable* _tmp14_;
};

struct _FsoGsmPdpHandlerActivateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmPdpHandler* self;
	FreeSmartphoneGSMContextStatus _tmp0_;
	FreeSmartphoneGSMContextStatus _tmp1_;
	FreeSmartphoneGSMContextStatus _tmp2_;
	FreeSmartphoneGSMContextStatus _tmp3_;
	GEnumValue* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	GError* _tmp7_;
	GError* _tmp8_;
	GHashFunc _tmp9_;
	GEqualFunc _tmp10_;
	GHashTable* _tmp11_;
	GHashTable* status;
	GError* e1;
	GError* _tmp12_;
	GError* _tmp13_;
	GError* e2;
	GError* _tmp14_;
	GError* _tmp15_;
	GError * _inner_error_;
};

struct _FsoGsmPdpHandlerDeactivateData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmPdpHandler* self;
	gboolean _tmp0_;
	FreeSmartphoneGSMContextStatus _tmp1_;
	FreeSmartphoneGSMContextStatus _tmp2_;
	FreeSmartphoneGSMContextStatus _tmp3_;
	FreeSmartphoneGSMContextStatus _tmp4_;
	gboolean _tmp5_;
	FreeSmartphoneGSMContextStatus _tmp6_;
	FreeSmartphoneGSMContextStatus _tmp7_;
	GEnumValue* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	GError* _tmp11_;
	GError* _tmp12_;
	GHashFunc _tmp13_;
	GEqualFunc _tmp14_;
	GHashTable* _tmp15_;
	GHashTable* status;
	GHashTable* _tmp16_;
	GError * _inner_error_;
};

struct _fso_gsm_pdp_handler_connectedWithNewDefaultRouteData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmPdpHandler* self;
	FsoGsmRouteInfo* route;
	FsoGsmRouteInfo* _tmp0_;
	const gchar* _tmp1_;
	FsoFrameworkNetworkInterface* _tmp2_;
	FsoFrameworkNetworkInterface* _tmp3_;
	FsoFrameworkNetworkInterface* _tmp4_;
	GError* err;
	FsoFrameworkLogger* _tmp5_;
	FsoGsmRouteInfo* _tmp6_;
	const gchar* _tmp7_;
	const gchar* _tmp8_;
	gchar* _tmp9_;
	gchar* _tmp10_;
	gchar* _tmp11_;
	gchar* _tmp12_;
	GHashFunc _tmp13_;
	GEqualFunc _tmp14_;
	GHashTable* _tmp15_;
	GHashTable* status;
	GHashTable* _tmp16_;
	gchar* _tmp17_;
	FsoGsmRouteInfo* _tmp18_;
	const gchar* _tmp19_;
	GVariant* _tmp20_;
	GHashTable* _tmp21_;
	gchar* _tmp22_;
	FsoGsmRouteInfo* _tmp23_;
	const gchar* _tmp24_;
	GVariant* _tmp25_;
	GHashTable* _tmp26_;
	gchar* _tmp27_;
	FsoGsmRouteInfo* _tmp28_;
	const gchar* _tmp29_;
	GVariant* _tmp30_;
	GHashTable* _tmp31_;
	gchar* _tmp32_;
	FsoGsmRouteInfo* _tmp33_;
	const gchar* _tmp34_;
	GVariant* _tmp35_;
	GHashTable* _tmp36_;
	gchar* _tmp37_;
	FsoGsmRouteInfo* _tmp38_;
	const gchar* _tmp39_;
	GVariant* _tmp40_;
	GHashTable* _tmp41_;
	FsoFrameworkSmartKeyFile* _tmp42_;
	gboolean _tmp43_;
	gboolean setupNetworkRoute;
	gboolean _tmp44_;
	FreeSmartphoneNetwork* _tmp45_;
	FreeSmartphoneNetwork* network;
	FreeSmartphoneNetwork* _tmp46_;
	FsoGsmRouteInfo* _tmp47_;
	const gchar* _tmp48_;
	FsoGsmRouteInfo* _tmp49_;
	const gchar* _tmp50_;
	FsoGsmRouteInfo* _tmp51_;
	const gchar* _tmp52_;
	FsoGsmRouteInfo* _tmp53_;
	const gchar* _tmp54_;
	FsoGsmRouteInfo* _tmp55_;
	const gchar* _tmp56_;
	FsoGsmRouteInfo* _tmp57_;
	const gchar* _tmp58_;
	GError* e;
	FsoFrameworkLogger* _tmp59_;
	GError* _tmp60_;
	const gchar* _tmp61_;
	const gchar* _tmp62_;
	gchar* _tmp63_;
	gchar* _tmp64_;
	GError * _inner_error_;
};

struct _FsoGsmModemData {
	GObject parent_instance;
	FsoGsmModemDataPrivate * priv;
	gint alarmCleared;
	gboolean simHasReadySignal;
	guint simReadyTimeout;
	gint speakerVolumeMinimum;
	gint speakerVolumeMaximum;
	FreeSmartphoneGSMSIMAuthStatus simAuthStatus;
	gboolean simBuffersSms;
	GeeHashMap* simPhonebooks;
	gchar* charset;
	GeeHashMap* cmdSequences;
	gchar* functionality;
	gchar* simPin;
	gboolean keepRegistration;
	gboolean supportsGSM;
	gboolean supportsCDMA;
	gboolean supportsVoice;
	gboolean supportsCSD;
	gchar* supportsPDP;
	gchar* supportsFAX;
	GHashTable* simOperatorbook;
	gchar* simIssuer;
	gchar* pppCommand;
	gchar* pppPort;
	gchar** pppOptions;
	gint pppOptions_length1;
	FsoGsmContextParams* contextParams;
	gboolean roamingAllowed;
	gchar* atCommandCancelOutgoing;
	gchar* atCommandRejectIncoming;
	FsoGsmNetworkTimeReport* networkTimeReport;
};

struct _FsoGsmModemDataClass {
	GObjectClass parent_class;
};

struct _fso_gsm_pdp_handler_syncStatusData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	FsoGsmPdpHandler* self;
	gboolean _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* networkRegistrationStatus;
	FsoGsmModem* _tmp3_;
	FsoGsmModemData* _tmp4_;
	FsoGsmModemData* _tmp5_;
	gboolean _tmp6_;
	gboolean _tmp7_;
	gboolean roamingAllowed;
	FreeSmartphoneGSMContextStatus _tmp8_;
	FreeSmartphoneGSMContextStatus _tmp9_;
	FreeSmartphoneGSMContextStatus nextContextStatus;
	gboolean _tmp10_;
	FsoGsmModem* _tmp11_;
	gboolean _tmp12_;
	FreeSmartphoneGSMContextStatus _tmp13_;
	FreeSmartphoneGSMContextStatus _tmp14_;
	gboolean _tmp15_;
	FsoGsmModem* _tmp16_;
	gpointer _tmp17_;
	FreeSmartphoneGSMNetwork* network;
	FreeSmartphoneGSMNetwork* _tmp18_;
	GHashTable* _tmp19_;
	GHashTable* networkStatus;
	gboolean _tmp20_;
	GHashTable* _tmp21_;
	gconstpointer _tmp22_;
	const gchar* _tmp23_;
	gchar* _tmp24_;
	const gchar* _tmp25_;
	GHashTable* _tmp26_;
	gconstpointer _tmp27_;
	const gchar* _tmp28_;
	gchar* _tmp29_;
	const gchar* _tmp30_;
	gboolean _tmp31_;
	const gchar* _tmp32_;
	gchar* _tmp33_;
	const gchar* _tmp34_;
	gboolean registered;
	gboolean _tmp35_;
	gboolean _tmp36_;
	gboolean _tmp37_;
	gboolean _tmp38_;
	const gchar* _tmp39_;
	gboolean _tmp40_;
	gboolean _tmp41_;
	gboolean _tmp42_;
	const gchar* _tmp43_;
	const gchar* _tmp44_;
	gboolean _tmp45_;
	FreeSmartphoneGSMContextStatus _tmp46_;
	FreeSmartphoneGSMContextStatus _tmp47_;
	FreeSmartphoneGSMContextStatus _tmp48_;
	FreeSmartphoneGSMContextStatus _tmp49_;
	FreeSmartphoneGSMContextStatus _tmp50_;
	GHashTable* _tmp51_;
	GHashTable* _tmp52_;
	const gchar* _tmp53_;
	gchar* _tmp54_;
	GError* e;
	FsoFrameworkLogger* _tmp55_;
	GError * _inner_error_;
};


static gpointer fso_gsm_route_info_parent_class = NULL;
static gpointer fso_gsm_null_pdp_handler_parent_class = NULL;
static FsoGsmIPdpHandlerIface* fso_gsm_null_pdp_handler_fso_gsm_ipdp_handler_parent_iface = NULL;
static gpointer fso_gsm_pdp_handler_parent_class = NULL;
extern FsoGsmModem* fso_gsm_theModem;
static FsoGsmIPdpHandlerIface* fso_gsm_pdp_handler_fso_gsm_ipdp_handler_parent_iface = NULL;

gpointer fso_gsm_route_info_ref (gpointer instance);
void fso_gsm_route_info_unref (gpointer instance);
GParamSpec* fso_gsm_param_spec_route_info (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void fso_gsm_value_set_route_info (GValue* value, gpointer v_object);
void fso_gsm_value_take_route_info (GValue* value, gpointer v_object);
gpointer fso_gsm_value_get_route_info (const GValue* value);
GType fso_gsm_route_info_get_type (void) G_GNUC_CONST;
enum  {
	FSO_GSM_ROUTE_INFO_DUMMY_PROPERTY
};
FsoGsmRouteInfo* fso_gsm_route_info_new (void);
FsoGsmRouteInfo* fso_gsm_route_info_construct (GType object_type);
static void fso_gsm_route_info_finalize (FsoGsmRouteInfo* obj);
GType fso_gsm_ipdp_handler_get_type (void) G_GNUC_CONST;
void fso_gsm_ipdp_handler_activate (FsoGsmIPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_ipdp_handler_activate_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_, GError** error);
void fso_gsm_ipdp_handler_deactivate (FsoGsmIPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_ipdp_handler_deactivate_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_, GError** error);
void fso_gsm_ipdp_handler_statusUpdate (FsoGsmIPdpHandler* self, const gchar* status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_ipdp_handler_statusUpdate_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_);
void fso_gsm_ipdp_handler_connectedWithNewDefaultRoute (FsoGsmIPdpHandler* self, FsoGsmRouteInfo* route, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_ipdp_handler_connectedWithNewDefaultRoute_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_);
void fso_gsm_ipdp_handler_disconnected (FsoGsmIPdpHandler* self);
void fso_gsm_ipdp_handler_syncStatus (FsoGsmIPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_ipdp_handler_syncStatus_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_);
FreeSmartphoneGSMContextStatus fso_gsm_ipdp_handler_get_status (FsoGsmIPdpHandler* self);
void fso_gsm_ipdp_handler_set_status (FsoGsmIPdpHandler* self, FreeSmartphoneGSMContextStatus value);
GHashTable* fso_gsm_ipdp_handler_get_properties (FsoGsmIPdpHandler* self);
void fso_gsm_ipdp_handler_set_properties (FsoGsmIPdpHandler* self, GHashTable* value);
GType fso_gsm_null_pdp_handler_get_type (void) G_GNUC_CONST;
#define FSO_GSM_NULL_PDP_HANDLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FSO_GSM_TYPE_NULL_PDP_HANDLER, FsoGsmNullPdpHandlerPrivate))
enum  {
	FSO_GSM_NULL_PDP_HANDLER_DUMMY_PROPERTY,
	FSO_GSM_NULL_PDP_HANDLER_STATUS,
	FSO_GSM_NULL_PDP_HANDLER_PROPERTIES
};
static void _g_free0_ (gpointer var);
static void _g_variant_unref0_ (gpointer var);
static void fso_gsm_null_pdp_handler_real_activate_data_free (gpointer _data);
static void fso_gsm_null_pdp_handler_real_activate (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_null_pdp_handler_real_activate_co (FsoGsmNullPdpHandlerActivateData* _data_);
static void fso_gsm_null_pdp_handler_real_deactivate_data_free (gpointer _data);
static void fso_gsm_null_pdp_handler_real_deactivate (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_null_pdp_handler_real_deactivate_co (FsoGsmNullPdpHandlerDeactivateData* _data_);
static void fso_gsm_null_pdp_handler_real_statusUpdate_data_free (gpointer _data);
static void fso_gsm_null_pdp_handler_real_statusUpdate (FsoGsmIPdpHandler* base, const gchar* status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_null_pdp_handler_real_statusUpdate_co (fso_gsm_null_pdp_handler_statusUpdateData* _data_);
static void fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute_data_free (gpointer _data);
static void fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute (FsoGsmIPdpHandler* base, FsoGsmRouteInfo* route, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute_co (fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData* _data_);
static void fso_gsm_null_pdp_handler_real_disconnected (FsoGsmIPdpHandler* base);
static void fso_gsm_null_pdp_handler_real_syncStatus_data_free (gpointer _data);
static void fso_gsm_null_pdp_handler_real_syncStatus (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_null_pdp_handler_real_syncStatus_co (fso_gsm_null_pdp_handler_syncStatusData* _data_);
static gchar* fso_gsm_null_pdp_handler_real_repr (FsoFrameworkAbstractObject* base);
FsoGsmNullPdpHandler* fso_gsm_null_pdp_handler_new (void);
FsoGsmNullPdpHandler* fso_gsm_null_pdp_handler_construct (GType object_type);
static void fso_gsm_null_pdp_handler_finalize (GObject* obj);
static void _vala_fso_gsm_null_pdp_handler_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_fso_gsm_null_pdp_handler_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType fso_gsm_pdp_handler_get_type (void) G_GNUC_CONST;
#define FSO_GSM_PDP_HANDLER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), FSO_GSM_TYPE_PDP_HANDLER, FsoGsmPdpHandlerPrivate))
enum  {
	FSO_GSM_PDP_HANDLER_DUMMY_PROPERTY,
	FSO_GSM_PDP_HANDLER_STATUS,
	FSO_GSM_PDP_HANDLER_PROPERTIES
};
static void fso_gsm_pdp_handler_real_sc_activate_data_free (gpointer _data);
static void fso_gsm_pdp_handler_real_sc_activate (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_pdp_handler_sc_activate (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_pdp_handler_sc_activate_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_, GError** error);
static gboolean fso_gsm_pdp_handler_real_sc_activate_co (FsoGsmPdpHandlerScActivateData* _data_);
static void fso_gsm_pdp_handler_real_sc_deactivate_data_free (gpointer _data);
static void fso_gsm_pdp_handler_real_sc_deactivate (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_pdp_handler_sc_deactivate (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_pdp_handler_sc_deactivate_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_, GError** error);
static gboolean fso_gsm_pdp_handler_real_sc_deactivate_co (FsoGsmPdpHandlerScDeactivateData* _data_);
static void fso_gsm_pdp_handler_updateStatus_data_free (gpointer _data);
void fso_gsm_pdp_handler_updateStatus (FsoGsmPdpHandler* self, FreeSmartphoneGSMContextStatus status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_pdp_handler_updateStatus_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_);
static gboolean fso_gsm_pdp_handler_updateStatus_co (fso_gsm_pdp_handler_updateStatusData* _data_);
const gchar* free_smartphone_gsm_context_status_to_string (FreeSmartphoneGSMContextStatus self);
GType fso_gsm_channel_get_type (void) G_GNUC_CONST;
GType fso_gsm_modem_status_get_type (void) G_GNUC_CONST;
GType fso_gsm_modem_network_status_get_type (void) G_GNUC_CONST;
gpointer fso_gsm_at_command_sequence_ref (gpointer instance);
void fso_gsm_at_command_sequence_unref (gpointer instance);
GParamSpec* fso_gsm_param_spec_at_command_sequence (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void fso_gsm_value_set_at_command_sequence (GValue* value, gpointer v_object);
void fso_gsm_value_take_at_command_sequence (GValue* value, gpointer v_object);
gpointer fso_gsm_value_get_at_command_sequence (const GValue* value);
GType fso_gsm_at_command_sequence_get_type (void) G_GNUC_CONST;
GType fso_gsm_at_command_queue_command_get_type (void) G_GNUC_CONST;
GQuark fso_gsm_at_command_error_quark (void);
GType fso_gsm_constants_at_response_get_type (void) G_GNUC_CONST;
GType fso_gsm_at_command_get_type (void) G_GNUC_CONST;
GType fso_gsm_modem_data_get_type (void) G_GNUC_CONST;
GType fso_gsm_call_info_get_type (void) G_GNUC_CONST;
GType fso_gsm_call_handler_get_type (void) G_GNUC_CONST;
gpointer wrap_hex_pdu_ref (gpointer instance);
void wrap_hex_pdu_unref (gpointer instance);
GParamSpec* param_spec_wrap_hex_pdu (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_wrap_hex_pdu (GValue* value, gpointer v_object);
void value_take_wrap_hex_pdu (GValue* value, gpointer v_object);
gpointer value_get_wrap_hex_pdu (const GValue* value);
GType wrap_hex_pdu_get_type (void) G_GNUC_CONST;
GType fso_gsm_isms_storage_get_type (void) G_GNUC_CONST;
GType fso_gsm_sms_handler_get_type (void) G_GNUC_CONST;
GType fso_gsm_phonebook_storage_get_type (void) G_GNUC_CONST;
GType fso_gsm_phonebook_handler_get_type (void) G_GNUC_CONST;
GType fso_gsm_watch_dog_get_type (void) G_GNUC_CONST;
GType fso_gsm_modem_get_type (void) G_GNUC_CONST;
gpointer fso_gsm_modem_theDevice (FsoGsmModem* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func);
static void fso_gsm_pdp_handler_real_activate_data_free (gpointer _data);
static void fso_gsm_pdp_handler_real_activate (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_pdp_handler_real_activate_co (FsoGsmPdpHandlerActivateData* _data_);
static void fso_gsm_pdp_handler_activate_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void fso_gsm_pdp_handler_real_deactivate_data_free (gpointer _data);
static void fso_gsm_pdp_handler_real_deactivate (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_pdp_handler_real_deactivate_co (FsoGsmPdpHandlerDeactivateData* _data_);
static void fso_gsm_pdp_handler_deactivate_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void fso_gsm_pdp_handler_statusUpdate (FsoGsmPdpHandler* self, const gchar* status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_);
void fso_gsm_pdp_handler_statusUpdate_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_);
static void fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute_data_free (gpointer _data);
static void fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute (FsoGsmIPdpHandler* base, FsoGsmRouteInfo* route, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute_co (fso_gsm_pdp_handler_connectedWithNewDefaultRouteData* _data_);
static GVariant* _variant_new62 (const gchar* value);
static GVariant* _variant_new63 (const gchar* value);
static GVariant* _variant_new64 (const gchar* value);
static GVariant* _variant_new65 (const gchar* value);
static GVariant* _variant_new66 (const gchar* value);
static void fso_gsm_pdp_handler_connectedWithNewDefaultRoute_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void fso_gsm_pdp_handler_real_disconnected (FsoGsmIPdpHandler* base);
static void fso_gsm_pdp_handler_real_syncStatus_data_free (gpointer _data);
static void fso_gsm_pdp_handler_real_syncStatus (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean fso_gsm_pdp_handler_real_syncStatus_co (fso_gsm_pdp_handler_syncStatusData* _data_);
FsoGsmModemData* fso_gsm_modem_data (FsoGsmModem* self);
gpointer fso_gsm_phonebook_params_ref (gpointer instance);
void fso_gsm_phonebook_params_unref (gpointer instance);
GParamSpec* fso_gsm_param_spec_phonebook_params (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void fso_gsm_value_set_phonebook_params (GValue* value, gpointer v_object);
void fso_gsm_value_take_phonebook_params (GValue* value, gpointer v_object);
gpointer fso_gsm_value_get_phonebook_params (const GValue* value);
GType fso_gsm_phonebook_params_get_type (void) G_GNUC_CONST;
gpointer fso_gsm_context_params_ref (gpointer instance);
void fso_gsm_context_params_unref (gpointer instance);
GParamSpec* fso_gsm_param_spec_context_params (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void fso_gsm_value_set_context_params (GValue* value, gpointer v_object);
void fso_gsm_value_take_context_params (GValue* value, gpointer v_object);
gpointer fso_gsm_value_get_context_params (const GValue* value);
GType fso_gsm_context_params_get_type (void) G_GNUC_CONST;
gpointer fso_gsm_network_time_report_ref (gpointer instance);
void fso_gsm_network_time_report_unref (gpointer instance);
GParamSpec* fso_gsm_param_spec_network_time_report (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void fso_gsm_value_set_network_time_report (GValue* value, gpointer v_object);
void fso_gsm_value_take_network_time_report (GValue* value, gpointer v_object);
gpointer fso_gsm_value_get_network_time_report (const GValue* value);
GType fso_gsm_network_time_report_get_type (void) G_GNUC_CONST;
gboolean fso_gsm_modem_isAlive (FsoGsmModem* self);
static void fso_gsm_pdp_handler_syncStatus_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static const gchar* _variant_get67 (GVariant* value);
static const gchar* _variant_get68 (GVariant* value);
FsoGsmPdpHandler* fso_gsm_pdp_handler_construct (GType object_type);
static GObject * fso_gsm_pdp_handler_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
static gboolean _fso_gsm_pdp_handler___lambda0_ (FsoGsmPdpHandler* self);
static void __lambda1_ (FsoGsmPdpHandler* self, GHashTable* status);
static void ___lambda1__free_smartphone_gsm_network_status (FreeSmartphoneGSMNetwork* _sender, GHashTable* status, gpointer self);
static void __lambda2_ (FsoGsmPdpHandler* self, FreeSmartphoneGSMDeviceStatus status);
static void ___lambda2__free_smartphone_gsm_device_device_status (FreeSmartphoneGSMDevice* _sender, FreeSmartphoneGSMDeviceStatus status, gpointer self);
static gboolean __fso_gsm_pdp_handler___lambda0__gsource_func (gpointer self);
static void fso_gsm_pdp_handler_finalize (GObject* obj);
static void _vala_fso_gsm_pdp_handler_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_fso_gsm_pdp_handler_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);


FsoGsmRouteInfo* fso_gsm_route_info_construct (GType object_type) {
	FsoGsmRouteInfo* self = NULL;
	self = (FsoGsmRouteInfo*) g_type_create_instance (object_type);
	return self;
}


FsoGsmRouteInfo* fso_gsm_route_info_new (void) {
	return fso_gsm_route_info_construct (FSO_GSM_TYPE_ROUTE_INFO);
}


static void fso_gsm_value_route_info_init (GValue* value) {
	value->data[0].v_pointer = NULL;
}


static void fso_gsm_value_route_info_free_value (GValue* value) {
	if (value->data[0].v_pointer) {
		fso_gsm_route_info_unref (value->data[0].v_pointer);
	}
}


static void fso_gsm_value_route_info_copy_value (const GValue* src_value, GValue* dest_value) {
	if (src_value->data[0].v_pointer) {
		dest_value->data[0].v_pointer = fso_gsm_route_info_ref (src_value->data[0].v_pointer);
	} else {
		dest_value->data[0].v_pointer = NULL;
	}
}


static gpointer fso_gsm_value_route_info_peek_pointer (const GValue* value) {
	return value->data[0].v_pointer;
}


static gchar* fso_gsm_value_route_info_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	if (collect_values[0].v_pointer) {
		FsoGsmRouteInfo* object;
		object = collect_values[0].v_pointer;
		if (object->parent_instance.g_class == NULL) {
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		}
		value->data[0].v_pointer = fso_gsm_route_info_ref (object);
	} else {
		value->data[0].v_pointer = NULL;
	}
	return NULL;
}


static gchar* fso_gsm_value_route_info_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	FsoGsmRouteInfo** object_p;
	object_p = collect_values[0].v_pointer;
	if (!object_p) {
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
	}
	if (!value->data[0].v_pointer) {
		*object_p = NULL;
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
		*object_p = value->data[0].v_pointer;
	} else {
		*object_p = fso_gsm_route_info_ref (value->data[0].v_pointer);
	}
	return NULL;
}


GParamSpec* fso_gsm_param_spec_route_info (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	FsoGsmParamSpecRouteInfo* spec;
	g_return_val_if_fail (g_type_is_a (object_type, FSO_GSM_TYPE_ROUTE_INFO), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}


gpointer fso_gsm_value_get_route_info (const GValue* value) {
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, FSO_GSM_TYPE_ROUTE_INFO), NULL);
	return value->data[0].v_pointer;
}


void fso_gsm_value_set_route_info (GValue* value, gpointer v_object) {
	FsoGsmRouteInfo* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, FSO_GSM_TYPE_ROUTE_INFO));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, FSO_GSM_TYPE_ROUTE_INFO));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
		fso_gsm_route_info_ref (value->data[0].v_pointer);
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		fso_gsm_route_info_unref (old);
	}
}


void fso_gsm_value_take_route_info (GValue* value, gpointer v_object) {
	FsoGsmRouteInfo* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, FSO_GSM_TYPE_ROUTE_INFO));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, FSO_GSM_TYPE_ROUTE_INFO));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		fso_gsm_route_info_unref (old);
	}
}


static void fso_gsm_route_info_class_init (FsoGsmRouteInfoClass * klass) {
	fso_gsm_route_info_parent_class = g_type_class_peek_parent (klass);
	FSO_GSM_ROUTE_INFO_CLASS (klass)->finalize = fso_gsm_route_info_finalize;
}


static void fso_gsm_route_info_instance_init (FsoGsmRouteInfo * self) {
	self->ref_count = 1;
}


static void fso_gsm_route_info_finalize (FsoGsmRouteInfo* obj) {
	FsoGsmRouteInfo * self;
	self = FSO_GSM_ROUTE_INFO (obj);
	_g_free0 (self->iface);
	_g_free0 (self->ipv4addr);
	_g_free0 (self->ipv4mask);
	_g_free0 (self->ipv4gateway);
	_g_free0 (self->dns1);
	_g_free0 (self->dns2);
}


/**
 * @class RouteInfo
 **/
GType fso_gsm_route_info_get_type (void) {
	static volatile gsize fso_gsm_route_info_type_id__volatile = 0;
	if (g_once_init_enter (&fso_gsm_route_info_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { fso_gsm_value_route_info_init, fso_gsm_value_route_info_free_value, fso_gsm_value_route_info_copy_value, fso_gsm_value_route_info_peek_pointer, "p", fso_gsm_value_route_info_collect_value, "p", fso_gsm_value_route_info_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (FsoGsmRouteInfoClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fso_gsm_route_info_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FsoGsmRouteInfo), 0, (GInstanceInitFunc) fso_gsm_route_info_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType fso_gsm_route_info_type_id;
		fso_gsm_route_info_type_id = g_type_register_fundamental (g_type_fundamental_next (), "FsoGsmRouteInfo", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&fso_gsm_route_info_type_id__volatile, fso_gsm_route_info_type_id);
	}
	return fso_gsm_route_info_type_id__volatile;
}


gpointer fso_gsm_route_info_ref (gpointer instance) {
	FsoGsmRouteInfo* self;
	self = instance;
	g_atomic_int_inc (&self->ref_count);
	return instance;
}


void fso_gsm_route_info_unref (gpointer instance) {
	FsoGsmRouteInfo* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		FSO_GSM_ROUTE_INFO_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}


void fso_gsm_ipdp_handler_activate (FsoGsmIPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->activate (self, _callback_, _user_data_);
}


void fso_gsm_ipdp_handler_activate_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_, GError** error) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->activate_finish (self, _res_, error);
}


void fso_gsm_ipdp_handler_deactivate (FsoGsmIPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->deactivate (self, _callback_, _user_data_);
}


void fso_gsm_ipdp_handler_deactivate_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_, GError** error) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->deactivate_finish (self, _res_, error);
}


void fso_gsm_ipdp_handler_statusUpdate (FsoGsmIPdpHandler* self, const gchar* status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->statusUpdate (self, status, properties, _callback_, _user_data_);
}


void fso_gsm_ipdp_handler_statusUpdate_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->statusUpdate_finish (self, _res_);
}


void fso_gsm_ipdp_handler_connectedWithNewDefaultRoute (FsoGsmIPdpHandler* self, FsoGsmRouteInfo* route, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->connectedWithNewDefaultRoute (self, route, _callback_, _user_data_);
}


void fso_gsm_ipdp_handler_connectedWithNewDefaultRoute_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->connectedWithNewDefaultRoute_finish (self, _res_);
}


void fso_gsm_ipdp_handler_disconnected (FsoGsmIPdpHandler* self) {
	g_return_if_fail (self != NULL);
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->disconnected (self);
}


void fso_gsm_ipdp_handler_syncStatus (FsoGsmIPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->syncStatus (self, _callback_, _user_data_);
}


void fso_gsm_ipdp_handler_syncStatus_finish (FsoGsmIPdpHandler* self, GAsyncResult* _res_) {
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->syncStatus_finish (self, _res_);
}


FreeSmartphoneGSMContextStatus fso_gsm_ipdp_handler_get_status (FsoGsmIPdpHandler* self) {
	g_return_val_if_fail (self != NULL, 0);
	return FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->get_status (self);
}


void fso_gsm_ipdp_handler_set_status (FsoGsmIPdpHandler* self, FreeSmartphoneGSMContextStatus value) {
	g_return_if_fail (self != NULL);
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->set_status (self, value);
}


GHashTable* fso_gsm_ipdp_handler_get_properties (FsoGsmIPdpHandler* self) {
	g_return_val_if_fail (self != NULL, NULL);
	return FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->get_properties (self);
}


void fso_gsm_ipdp_handler_set_properties (FsoGsmIPdpHandler* self, GHashTable* value) {
	g_return_if_fail (self != NULL);
	FSO_GSM_IPDP_HANDLER_GET_INTERFACE (self)->set_properties (self, value);
}


static void fso_gsm_ipdp_handler_base_init (FsoGsmIPdpHandlerIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
		g_object_interface_install_property (iface, g_param_spec_enum ("status", "status", "status", FREE_SMARTPHONE_GSM_TYPE_CONTEXT_STATUS, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
		g_object_interface_install_property (iface, g_param_spec_boxed ("properties", "properties", "properties", G_TYPE_HASH_TABLE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	}
}


/**
 * @interface PdpHandler
 **/
GType fso_gsm_ipdp_handler_get_type (void) {
	static volatile gsize fso_gsm_ipdp_handler_type_id__volatile = 0;
	if (g_once_init_enter (&fso_gsm_ipdp_handler_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FsoGsmIPdpHandlerIface), (GBaseInitFunc) fso_gsm_ipdp_handler_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType fso_gsm_ipdp_handler_type_id;
		fso_gsm_ipdp_handler_type_id = g_type_register_static (G_TYPE_INTERFACE, "FsoGsmIPdpHandler", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (fso_gsm_ipdp_handler_type_id, FSO_FRAMEWORK_TYPE_ABSTRACT_OBJECT);
		g_once_init_leave (&fso_gsm_ipdp_handler_type_id__volatile, fso_gsm_ipdp_handler_type_id);
	}
	return fso_gsm_ipdp_handler_type_id__volatile;
}


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 void fso_gsm_null_pdp_handler_real_activate_data_free (gpointer _data) {
	FsoGsmNullPdpHandlerActivateData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (FsoGsmNullPdpHandlerActivateData, _data_);
}


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


static void fso_gsm_null_pdp_handler_real_activate (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmNullPdpHandler * self;
	FsoGsmNullPdpHandlerActivateData* _data_;
	FsoGsmNullPdpHandler* _tmp0_;
	self = (FsoGsmNullPdpHandler*) base;
	_data_ = g_slice_new0 (FsoGsmNullPdpHandlerActivateData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_null_pdp_handler_real_activate);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_null_pdp_handler_real_activate_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_null_pdp_handler_real_activate_co (_data_);
}


static void fso_gsm_null_pdp_handler_real_activate_finish (FsoGsmIPdpHandler* base, GAsyncResult* _res_, GError** error) {
	FsoGsmNullPdpHandlerActivateData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_null_pdp_handler_real_activate_co (FsoGsmNullPdpHandlerActivateData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	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;
}


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


static void fso_gsm_null_pdp_handler_real_deactivate (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmNullPdpHandler * self;
	FsoGsmNullPdpHandlerDeactivateData* _data_;
	FsoGsmNullPdpHandler* _tmp0_;
	self = (FsoGsmNullPdpHandler*) base;
	_data_ = g_slice_new0 (FsoGsmNullPdpHandlerDeactivateData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_null_pdp_handler_real_deactivate);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_null_pdp_handler_real_deactivate_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_null_pdp_handler_real_deactivate_co (_data_);
}


static void fso_gsm_null_pdp_handler_real_deactivate_finish (FsoGsmIPdpHandler* base, GAsyncResult* _res_, GError** error) {
	FsoGsmNullPdpHandlerDeactivateData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_null_pdp_handler_real_deactivate_co (FsoGsmNullPdpHandlerDeactivateData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	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;
}


static void fso_gsm_null_pdp_handler_real_statusUpdate_data_free (gpointer _data) {
	fso_gsm_null_pdp_handler_statusUpdateData* _data_;
	_data_ = _data;
	_g_free0 (_data_->status);
	_g_hash_table_unref0 (_data_->properties);
	_g_object_unref0 (_data_->self);
	g_slice_free (fso_gsm_null_pdp_handler_statusUpdateData, _data_);
}


static gpointer _g_hash_table_ref0 (gpointer self) {
	return self ? g_hash_table_ref (self) : NULL;
}


static void fso_gsm_null_pdp_handler_real_statusUpdate (FsoGsmIPdpHandler* base, const gchar* status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmNullPdpHandler * self;
	fso_gsm_null_pdp_handler_statusUpdateData* _data_;
	FsoGsmNullPdpHandler* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	GHashTable* _tmp3_;
	GHashTable* _tmp4_;
	self = (FsoGsmNullPdpHandler*) base;
	_data_ = g_slice_new0 (fso_gsm_null_pdp_handler_statusUpdateData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_null_pdp_handler_real_statusUpdate);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_null_pdp_handler_real_statusUpdate_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = status;
	_tmp2_ = g_strdup (_tmp1_);
	_data_->status = _tmp2_;
	_tmp3_ = properties;
	_tmp4_ = _g_hash_table_ref0 (_tmp3_);
	_data_->properties = _tmp4_;
	fso_gsm_null_pdp_handler_real_statusUpdate_co (_data_);
}


static void fso_gsm_null_pdp_handler_real_statusUpdate_finish (FsoGsmIPdpHandler* base, GAsyncResult* _res_) {
	fso_gsm_null_pdp_handler_statusUpdateData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_null_pdp_handler_real_statusUpdate_co (fso_gsm_null_pdp_handler_statusUpdateData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	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;
}


static void fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute_data_free (gpointer _data) {
	fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData* _data_;
	_data_ = _data;
	_fso_gsm_route_info_unref0 (_data_->route);
	_g_object_unref0 (_data_->self);
	g_slice_free (fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData, _data_);
}


static gpointer _fso_gsm_route_info_ref0 (gpointer self) {
	return self ? fso_gsm_route_info_ref (self) : NULL;
}


static void fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute (FsoGsmIPdpHandler* base, FsoGsmRouteInfo* route, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmNullPdpHandler * self;
	fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData* _data_;
	FsoGsmNullPdpHandler* _tmp0_;
	FsoGsmRouteInfo* _tmp1_;
	FsoGsmRouteInfo* _tmp2_;
	self = (FsoGsmNullPdpHandler*) base;
	_data_ = g_slice_new0 (fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = route;
	_tmp2_ = _fso_gsm_route_info_ref0 (_tmp1_);
	_data_->route = _tmp2_;
	fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute_co (_data_);
}


static void fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute_finish (FsoGsmIPdpHandler* base, GAsyncResult* _res_) {
	fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute_co (fso_gsm_null_pdp_handler_connectedWithNewDefaultRouteData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	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;
}


static void fso_gsm_null_pdp_handler_real_disconnected (FsoGsmIPdpHandler* base) {
	FsoGsmNullPdpHandler * self;
	self = (FsoGsmNullPdpHandler*) base;
}


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


static void fso_gsm_null_pdp_handler_real_syncStatus (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmNullPdpHandler * self;
	fso_gsm_null_pdp_handler_syncStatusData* _data_;
	FsoGsmNullPdpHandler* _tmp0_;
	self = (FsoGsmNullPdpHandler*) base;
	_data_ = g_slice_new0 (fso_gsm_null_pdp_handler_syncStatusData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_null_pdp_handler_real_syncStatus);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_null_pdp_handler_real_syncStatus_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_null_pdp_handler_real_syncStatus_co (_data_);
}


static void fso_gsm_null_pdp_handler_real_syncStatus_finish (FsoGsmIPdpHandler* base, GAsyncResult* _res_) {
	fso_gsm_null_pdp_handler_syncStatusData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_null_pdp_handler_real_syncStatus_co (fso_gsm_null_pdp_handler_syncStatusData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	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;
}


static gchar* fso_gsm_null_pdp_handler_real_repr (FsoFrameworkAbstractObject* base) {
	FsoGsmNullPdpHandler * self;
	gchar* result = NULL;
	gchar* _tmp0_;
	self = (FsoGsmNullPdpHandler*) base;
	_tmp0_ = g_strdup ("<>");
	result = _tmp0_;
	return result;
}


FsoGsmNullPdpHandler* fso_gsm_null_pdp_handler_construct (GType object_type) {
	FsoGsmNullPdpHandler * self = NULL;
	self = (FsoGsmNullPdpHandler*) fso_framework_abstract_object_construct (object_type);
	return self;
}


FsoGsmNullPdpHandler* fso_gsm_null_pdp_handler_new (void) {
	return fso_gsm_null_pdp_handler_construct (FSO_GSM_TYPE_NULL_PDP_HANDLER);
}


static FreeSmartphoneGSMContextStatus fso_gsm_null_pdp_handler_real_get_status (FsoGsmIPdpHandler* base) {
	FreeSmartphoneGSMContextStatus result;
	FsoGsmNullPdpHandler* self;
	FreeSmartphoneGSMContextStatus _tmp0_;
	self = (FsoGsmNullPdpHandler*) base;
	_tmp0_ = self->priv->_status;
	result = _tmp0_;
	return result;
}


static void fso_gsm_null_pdp_handler_real_set_status (FsoGsmIPdpHandler* base, FreeSmartphoneGSMContextStatus value) {
	FsoGsmNullPdpHandler* self;
	FreeSmartphoneGSMContextStatus _tmp0_;
	self = (FsoGsmNullPdpHandler*) base;
	_tmp0_ = value;
	self->priv->_status = _tmp0_;
	g_object_notify ((GObject *) self, "status");
}


static GHashTable* fso_gsm_null_pdp_handler_real_get_properties (FsoGsmIPdpHandler* base) {
	GHashTable* result;
	FsoGsmNullPdpHandler* self;
	GHashTable* _tmp0_;
	self = (FsoGsmNullPdpHandler*) base;
	_tmp0_ = self->priv->_properties;
	result = _tmp0_;
	return result;
}


static void fso_gsm_null_pdp_handler_real_set_properties (FsoGsmIPdpHandler* base, GHashTable* value) {
	FsoGsmNullPdpHandler* self;
	GHashTable* _tmp0_;
	GHashTable* _tmp1_;
	self = (FsoGsmNullPdpHandler*) base;
	_tmp0_ = value;
	_tmp1_ = _g_hash_table_ref0 (_tmp0_);
	_g_hash_table_unref0 (self->priv->_properties);
	self->priv->_properties = _tmp1_;
	g_object_notify ((GObject *) self, "properties");
}


static void fso_gsm_null_pdp_handler_class_init (FsoGsmNullPdpHandlerClass * klass) {
	fso_gsm_null_pdp_handler_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (FsoGsmNullPdpHandlerPrivate));
	FSO_FRAMEWORK_ABSTRACT_OBJECT_CLASS (klass)->repr = fso_gsm_null_pdp_handler_real_repr;
	G_OBJECT_CLASS (klass)->get_property = _vala_fso_gsm_null_pdp_handler_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_fso_gsm_null_pdp_handler_set_property;
	G_OBJECT_CLASS (klass)->finalize = fso_gsm_null_pdp_handler_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), FSO_GSM_NULL_PDP_HANDLER_STATUS, g_param_spec_enum ("status", "status", "status", FREE_SMARTPHONE_GSM_TYPE_CONTEXT_STATUS, FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), FSO_GSM_NULL_PDP_HANDLER_PROPERTIES, g_param_spec_boxed ("properties", "properties", "properties", G_TYPE_HASH_TABLE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void fso_gsm_null_pdp_handler_fso_gsm_ipdp_handler_interface_init (FsoGsmIPdpHandlerIface * iface) {
	fso_gsm_null_pdp_handler_fso_gsm_ipdp_handler_parent_iface = g_type_interface_peek_parent (iface);
	iface->activate = (void (*)(FsoGsmIPdpHandler*, GError**)) fso_gsm_null_pdp_handler_real_activate;
	iface->activate_finish = fso_gsm_null_pdp_handler_real_activate_finish;
	iface->deactivate = (void (*)(FsoGsmIPdpHandler*, GError**)) fso_gsm_null_pdp_handler_real_deactivate;
	iface->deactivate_finish = fso_gsm_null_pdp_handler_real_deactivate_finish;
	iface->statusUpdate = (void (*)(FsoGsmIPdpHandler*, const gchar*, GHashTable*)) fso_gsm_null_pdp_handler_real_statusUpdate;
	iface->statusUpdate_finish = fso_gsm_null_pdp_handler_real_statusUpdate_finish;
	iface->connectedWithNewDefaultRoute = (void (*)(FsoGsmIPdpHandler*, FsoGsmRouteInfo*)) fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute;
	iface->connectedWithNewDefaultRoute_finish = fso_gsm_null_pdp_handler_real_connectedWithNewDefaultRoute_finish;
	iface->disconnected = (void (*)(FsoGsmIPdpHandler*)) fso_gsm_null_pdp_handler_real_disconnected;
	iface->syncStatus = (void (*)(FsoGsmIPdpHandler*)) fso_gsm_null_pdp_handler_real_syncStatus;
	iface->syncStatus_finish = fso_gsm_null_pdp_handler_real_syncStatus_finish;
	iface->get_status = fso_gsm_null_pdp_handler_real_get_status;
	iface->set_status = fso_gsm_null_pdp_handler_real_set_status;
	iface->get_properties = fso_gsm_null_pdp_handler_real_get_properties;
	iface->set_properties = fso_gsm_null_pdp_handler_real_set_properties;
}


static void fso_gsm_null_pdp_handler_instance_init (FsoGsmNullPdpHandler * self) {
	GHashTable* _tmp0_;
	self->priv = FSO_GSM_NULL_PDP_HANDLER_GET_PRIVATE (self);
	self->priv->_status = FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED;
	_tmp0_ = g_hash_table_new_full (NULL, NULL, _g_free0_, _g_variant_unref0_);
	self->priv->_properties = _tmp0_;
}


static void fso_gsm_null_pdp_handler_finalize (GObject* obj) {
	FsoGsmNullPdpHandler * self;
	self = FSO_GSM_NULL_PDP_HANDLER (obj);
	_g_hash_table_unref0 (self->priv->_properties);
	G_OBJECT_CLASS (fso_gsm_null_pdp_handler_parent_class)->finalize (obj);
}


/**
 * @class NullPdpHandler
 **/
GType fso_gsm_null_pdp_handler_get_type (void) {
	static volatile gsize fso_gsm_null_pdp_handler_type_id__volatile = 0;
	if (g_once_init_enter (&fso_gsm_null_pdp_handler_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FsoGsmNullPdpHandlerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fso_gsm_null_pdp_handler_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FsoGsmNullPdpHandler), 0, (GInstanceInitFunc) fso_gsm_null_pdp_handler_instance_init, NULL };
		static const GInterfaceInfo fso_gsm_ipdp_handler_info = { (GInterfaceInitFunc) fso_gsm_null_pdp_handler_fso_gsm_ipdp_handler_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType fso_gsm_null_pdp_handler_type_id;
		fso_gsm_null_pdp_handler_type_id = g_type_register_static (FSO_FRAMEWORK_TYPE_ABSTRACT_OBJECT, "FsoGsmNullPdpHandler", &g_define_type_info, 0);
		g_type_add_interface_static (fso_gsm_null_pdp_handler_type_id, FSO_GSM_TYPE_IPDP_HANDLER, &fso_gsm_ipdp_handler_info);
		g_once_init_leave (&fso_gsm_null_pdp_handler_type_id__volatile, fso_gsm_null_pdp_handler_type_id);
	}
	return fso_gsm_null_pdp_handler_type_id__volatile;
}


static void _vala_fso_gsm_null_pdp_handler_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	FsoGsmNullPdpHandler * self;
	self = FSO_GSM_NULL_PDP_HANDLER (object);
	switch (property_id) {
		case FSO_GSM_NULL_PDP_HANDLER_STATUS:
		g_value_set_enum (value, fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) self));
		break;
		case FSO_GSM_NULL_PDP_HANDLER_PROPERTIES:
		g_value_set_boxed (value, fso_gsm_ipdp_handler_get_properties ((FsoGsmIPdpHandler*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_fso_gsm_null_pdp_handler_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	FsoGsmNullPdpHandler * self;
	self = FSO_GSM_NULL_PDP_HANDLER (object);
	switch (property_id) {
		case FSO_GSM_NULL_PDP_HANDLER_STATUS:
		fso_gsm_ipdp_handler_set_status ((FsoGsmIPdpHandler*) self, g_value_get_enum (value));
		break;
		case FSO_GSM_NULL_PDP_HANDLER_PROPERTIES:
		fso_gsm_ipdp_handler_set_properties ((FsoGsmIPdpHandler*) self, g_value_get_boxed (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


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


static void fso_gsm_pdp_handler_real_sc_activate (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmPdpHandlerScActivateData* _data_;
	FsoGsmPdpHandler* _tmp0_;
	_data_ = g_slice_new0 (FsoGsmPdpHandlerScActivateData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_pdp_handler_real_sc_activate);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_pdp_handler_real_sc_activate_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_pdp_handler_real_sc_activate_co (_data_);
}


static void fso_gsm_pdp_handler_real_sc_activate_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_, GError** error) {
	FsoGsmPdpHandlerScActivateData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_pdp_handler_real_sc_activate_co (FsoGsmPdpHandlerScActivateData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	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;
}


void fso_gsm_pdp_handler_sc_activate (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FSO_GSM_PDP_HANDLER_GET_CLASS (self)->sc_activate (self, _callback_, _user_data_);
}


void fso_gsm_pdp_handler_sc_activate_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_, GError** error) {
	FSO_GSM_PDP_HANDLER_GET_CLASS (self)->sc_activate_finish (self, _res_, error);
}


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


static void fso_gsm_pdp_handler_real_sc_deactivate (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmPdpHandlerScDeactivateData* _data_;
	FsoGsmPdpHandler* _tmp0_;
	_data_ = g_slice_new0 (FsoGsmPdpHandlerScDeactivateData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_pdp_handler_real_sc_deactivate);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_pdp_handler_real_sc_deactivate_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_pdp_handler_real_sc_deactivate_co (_data_);
}


static void fso_gsm_pdp_handler_real_sc_deactivate_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_, GError** error) {
	FsoGsmPdpHandlerScDeactivateData* _data_;
	if (g_simple_async_result_propagate_error (G_SIMPLE_ASYNC_RESULT (_res_), error)) {
		return;
	}
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_pdp_handler_real_sc_deactivate_co (FsoGsmPdpHandlerScDeactivateData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	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;
}


void fso_gsm_pdp_handler_sc_deactivate (FsoGsmPdpHandler* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FSO_GSM_PDP_HANDLER_GET_CLASS (self)->sc_deactivate (self, _callback_, _user_data_);
}


void fso_gsm_pdp_handler_sc_deactivate_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_, GError** error) {
	FSO_GSM_PDP_HANDLER_GET_CLASS (self)->sc_deactivate_finish (self, _res_, error);
}


static void fso_gsm_pdp_handler_updateStatus_data_free (gpointer _data) {
	fso_gsm_pdp_handler_updateStatusData* _data_;
	_data_ = _data;
	_g_hash_table_unref0 (_data_->properties);
	_g_object_unref0 (_data_->self);
	g_slice_free (fso_gsm_pdp_handler_updateStatusData, _data_);
}


void fso_gsm_pdp_handler_updateStatus (FsoGsmPdpHandler* self, FreeSmartphoneGSMContextStatus status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	fso_gsm_pdp_handler_updateStatusData* _data_;
	FsoGsmPdpHandler* _tmp0_;
	FreeSmartphoneGSMContextStatus _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* _tmp3_;
	_data_ = g_slice_new0 (fso_gsm_pdp_handler_updateStatusData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_pdp_handler_updateStatus);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_pdp_handler_updateStatus_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = status;
	_data_->status = _tmp1_;
	_tmp2_ = properties;
	_tmp3_ = _g_hash_table_ref0 (_tmp2_);
	_data_->properties = _tmp3_;
	fso_gsm_pdp_handler_updateStatus_co (_data_);
}


void fso_gsm_pdp_handler_updateStatus_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_) {
	fso_gsm_pdp_handler_updateStatusData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static gboolean fso_gsm_pdp_handler_updateStatus_co (fso_gsm_pdp_handler_updateStatusData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = _data_->status;
	_data_->_tmp1_ = fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) _data_->self);
	_data_->_tmp2_ = _data_->_tmp1_;
	if (_data_->_tmp0_ == _data_->_tmp2_) {
		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;
	}
	_data_->_tmp3_ = ((FsoFrameworkAbstractObject*) _data_->self)->logger;
	_data_->_tmp4_ = _data_->status;
	_data_->_tmp5_ = g_enum_get_value (g_type_class_ref (FREE_SMARTPHONE_GSM_TYPE_CONTEXT_STATUS), _data_->_tmp4_);
	_data_->_tmp6_ = NULL;
	_data_->_tmp6_ = g_strconcat ("PDP Context Status now ", (_data_->_tmp5_ != NULL) ? _data_->_tmp5_->value_name : NULL, NULL);
	_data_->_tmp7_ = _data_->_tmp6_;
	fso_framework_logger_info (_data_->_tmp3_, _data_->_tmp7_);
	_g_free0 (_data_->_tmp7_);
	_data_->_tmp8_ = _data_->status;
	fso_gsm_ipdp_handler_set_status ((FsoGsmIPdpHandler*) _data_->self, _data_->_tmp8_);
	_data_->_tmp9_ = _data_->properties;
	fso_gsm_ipdp_handler_set_properties ((FsoGsmIPdpHandler*) _data_->self, _data_->_tmp9_);
	_data_->_tmp10_ = fso_gsm_theModem;
	_data_->_tmp11_ = NULL;
	_data_->_tmp11_ = fso_gsm_modem_theDevice (_data_->_tmp10_, FREE_SMARTPHONE_GSM_TYPE_PDP, (GBoxedCopyFunc) g_object_ref, g_object_unref);
	_data_->obj = (FreeSmartphoneGSMPDP*) _data_->_tmp11_;
	_data_->_tmp12_ = _data_->obj;
	_data_->_tmp13_ = _data_->status;
	_data_->_tmp14_ = _data_->properties;
	g_signal_emit_by_name (_data_->_tmp12_, "context-status", _data_->_tmp13_, _data_->_tmp14_);
	_g_object_unref0 (_data_->obj);
	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;
}


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


static void fso_gsm_pdp_handler_real_activate (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmPdpHandler * self;
	FsoGsmPdpHandlerActivateData* _data_;
	FsoGsmPdpHandler* _tmp0_;
	self = (FsoGsmPdpHandler*) base;
	_data_ = g_slice_new0 (FsoGsmPdpHandlerActivateData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_pdp_handler_real_activate);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_pdp_handler_real_activate_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_pdp_handler_real_activate_co (_data_);
}


static void fso_gsm_pdp_handler_real_activate_finish (FsoGsmIPdpHandler* base, GAsyncResult* _res_, GError** error) {
	FsoGsmPdpHandlerActivateData* _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 fso_gsm_pdp_handler_activate_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	FsoGsmPdpHandlerActivateData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	fso_gsm_pdp_handler_real_activate_co (_data_);
}


static gpointer _g_error_copy0 (gpointer self) {
	return self ? g_error_copy (self) : NULL;
}


static gboolean fso_gsm_pdp_handler_real_activate_co (FsoGsmPdpHandlerActivateData* _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_ipdp_handler_get_status ((FsoGsmIPdpHandler*) _data_->self);
	_data_->_tmp1_ = _data_->_tmp0_;
	if (_data_->_tmp1_ != FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED) {
		_data_->_tmp2_ = fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) _data_->self);
		_data_->_tmp3_ = _data_->_tmp2_;
		_data_->_tmp4_ = g_enum_get_value (g_type_class_ref (FREE_SMARTPHONE_GSM_TYPE_CONTEXT_STATUS), _data_->_tmp3_);
		_data_->_tmp5_ = NULL;
		_data_->_tmp5_ = g_strconcat ("Can't activate context while in status ", (_data_->_tmp4_ != NULL) ? _data_->_tmp4_->value_name : NULL, NULL);
		_data_->_tmp6_ = _data_->_tmp5_;
		_data_->_tmp7_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_UNAVAILABLE, _data_->_tmp6_);
		_data_->_tmp8_ = _data_->_tmp7_;
		_g_free0 (_data_->_tmp6_);
		_data_->_inner_error_ = _data_->_tmp8_;
		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_ = g_str_hash;
	_data_->_tmp10_ = g_str_equal;
	_data_->_tmp11_ = g_hash_table_new_full (_data_->_tmp9_, _data_->_tmp10_, _g_free0_, _g_variant_unref0_);
	_data_->status = _data_->_tmp11_;
	fso_gsm_pdp_handler_updateStatus (_data_->self, FREE_SMARTPHONE_GSM_CONTEXT_STATUS_OUTGOING, _data_->status, NULL, NULL);
	{
		_data_->_state_ = 1;
		fso_gsm_pdp_handler_sc_activate (_data_->self, fso_gsm_pdp_handler_activate_ready, _data_);
		return FALSE;
		_state_1:
		fso_gsm_pdp_handler_sc_activate_finish (_data_->self, _data_->_res_, &_data_->_inner_error_);
		if (_data_->_inner_error_ != NULL) {
			if (_data_->_inner_error_->domain == FREE_SMARTPHONE_GSM_ERROR) {
				goto __catch52_free_smartphone_gsm_error;
			}
			if (_data_->_inner_error_->domain == FREE_SMARTPHONE_ERROR) {
				goto __catch52_free_smartphone_error;
			}
			_g_hash_table_unref0 (_data_->status);
			g_critical ("file %s: line %d: unexpected 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;
		}
	}
	goto __finally52;
	__catch52_free_smartphone_gsm_error:
	{
		_data_->e1 = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		fso_gsm_pdp_handler_updateStatus (_data_->self, FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED, _data_->status, NULL, NULL);
		_data_->_tmp12_ = _data_->e1;
		_data_->_tmp13_ = _g_error_copy0 (_data_->_tmp12_);
		_data_->_inner_error_ = _data_->_tmp13_;
		_g_error_free0 (_data_->e1);
		goto __finally52;
	}
	goto __finally52;
	__catch52_free_smartphone_error:
	{
		_data_->e2 = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		fso_gsm_pdp_handler_updateStatus (_data_->self, FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED, _data_->status, NULL, NULL);
		_data_->_tmp14_ = _data_->e2;
		_data_->_tmp15_ = _g_error_copy0 (_data_->_tmp14_);
		_data_->_inner_error_ = _data_->_tmp15_;
		_g_error_free0 (_data_->e2);
		goto __finally52;
	}
	__finally52:
	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_hash_table_unref0 (_data_->status);
			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_hash_table_unref0 (_data_->status);
			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_hash_table_unref0 (_data_->status);
	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;
}


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


static void fso_gsm_pdp_handler_real_deactivate (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmPdpHandler * self;
	FsoGsmPdpHandlerDeactivateData* _data_;
	FsoGsmPdpHandler* _tmp0_;
	self = (FsoGsmPdpHandler*) base;
	_data_ = g_slice_new0 (FsoGsmPdpHandlerDeactivateData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_pdp_handler_real_deactivate);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_pdp_handler_real_deactivate_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_pdp_handler_real_deactivate_co (_data_);
}


static void fso_gsm_pdp_handler_real_deactivate_finish (FsoGsmIPdpHandler* base, GAsyncResult* _res_, GError** error) {
	FsoGsmPdpHandlerDeactivateData* _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 fso_gsm_pdp_handler_deactivate_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	FsoGsmPdpHandlerDeactivateData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	fso_gsm_pdp_handler_real_deactivate_co (_data_);
}


static gboolean fso_gsm_pdp_handler_real_deactivate_co (FsoGsmPdpHandlerDeactivateData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp1_ = fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) _data_->self);
	_data_->_tmp2_ = _data_->_tmp1_;
	if (_data_->_tmp2_ != FREE_SMARTPHONE_GSM_CONTEXT_STATUS_ACTIVE) {
		_data_->_tmp3_ = fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) _data_->self);
		_data_->_tmp4_ = _data_->_tmp3_;
		_data_->_tmp0_ = _data_->_tmp4_ != FREE_SMARTPHONE_GSM_CONTEXT_STATUS_SUSPENDED;
	} else {
		_data_->_tmp0_ = FALSE;
	}
	_data_->_tmp5_ = _data_->_tmp0_;
	if (_data_->_tmp5_) {
		_data_->_tmp6_ = fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) _data_->self);
		_data_->_tmp7_ = _data_->_tmp6_;
		_data_->_tmp8_ = g_enum_get_value (g_type_class_ref (FREE_SMARTPHONE_GSM_TYPE_CONTEXT_STATUS), _data_->_tmp7_);
		_data_->_tmp9_ = NULL;
		_data_->_tmp9_ = g_strconcat ("Can't deactivate context while in status ", (_data_->_tmp8_ != NULL) ? _data_->_tmp8_->value_name : NULL, NULL);
		_data_->_tmp10_ = _data_->_tmp9_;
		_data_->_tmp11_ = g_error_new_literal (FREE_SMARTPHONE_ERROR, FREE_SMARTPHONE_ERROR_UNAVAILABLE, _data_->_tmp10_);
		_data_->_tmp12_ = _data_->_tmp11_;
		_g_free0 (_data_->_tmp10_);
		_data_->_inner_error_ = _data_->_tmp12_;
		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_->_state_ = 1;
	fso_gsm_pdp_handler_sc_deactivate (_data_->self, fso_gsm_pdp_handler_deactivate_ready, _data_);
	return FALSE;
	_state_1:
	fso_gsm_pdp_handler_sc_deactivate_finish (_data_->self, _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_);
			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_->_tmp13_ = g_str_hash;
	_data_->_tmp14_ = g_str_equal;
	_data_->_tmp15_ = g_hash_table_new_full (_data_->_tmp13_, _data_->_tmp14_, _g_free0_, _g_variant_unref0_);
	_data_->status = _data_->_tmp15_;
	_data_->_tmp16_ = _data_->status;
	fso_gsm_pdp_handler_updateStatus (_data_->self, FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED, _data_->_tmp16_, NULL, NULL);
	_g_hash_table_unref0 (_data_->status);
	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;
}


void fso_gsm_pdp_handler_statusUpdate (FsoGsmPdpHandler* self, const gchar* status, GHashTable* properties, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FSO_GSM_PDP_HANDLER_GET_CLASS (self)->statusUpdate (self, status, properties, _callback_, _user_data_);
}


void fso_gsm_pdp_handler_statusUpdate_finish (FsoGsmPdpHandler* self, GAsyncResult* _res_) {
	FSO_GSM_PDP_HANDLER_GET_CLASS (self)->statusUpdate_finish (self, _res_);
}


static void fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute_data_free (gpointer _data) {
	fso_gsm_pdp_handler_connectedWithNewDefaultRouteData* _data_;
	_data_ = _data;
	_fso_gsm_route_info_unref0 (_data_->route);
	_g_object_unref0 (_data_->self);
	g_slice_free (fso_gsm_pdp_handler_connectedWithNewDefaultRouteData, _data_);
}


static void fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute (FsoGsmIPdpHandler* base, FsoGsmRouteInfo* route, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmPdpHandler * self;
	fso_gsm_pdp_handler_connectedWithNewDefaultRouteData* _data_;
	FsoGsmPdpHandler* _tmp0_;
	FsoGsmRouteInfo* _tmp1_;
	FsoGsmRouteInfo* _tmp2_;
	self = (FsoGsmPdpHandler*) base;
	_data_ = g_slice_new0 (fso_gsm_pdp_handler_connectedWithNewDefaultRouteData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_tmp1_ = route;
	_tmp2_ = _fso_gsm_route_info_ref0 (_tmp1_);
	_data_->route = _tmp2_;
	fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute_co (_data_);
}


static void fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute_finish (FsoGsmIPdpHandler* base, GAsyncResult* _res_) {
	fso_gsm_pdp_handler_connectedWithNewDefaultRouteData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


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 GVariant* _variant_new62 (const gchar* value) {
	return g_variant_ref_sink (g_variant_new_string (value));
}


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


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


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


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


static void fso_gsm_pdp_handler_connectedWithNewDefaultRoute_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	fso_gsm_pdp_handler_connectedWithNewDefaultRouteData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute_co (_data_);
}


static gboolean fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute_co (fso_gsm_pdp_handler_connectedWithNewDefaultRouteData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	{
		_data_->_tmp0_ = _data_->route;
		_data_->_tmp1_ = _data_->_tmp0_->iface;
		_data_->_tmp2_ = fso_framework_network_interface_new (_data_->_tmp1_, &_data_->_inner_error_);
		_data_->_tmp3_ = _data_->_tmp2_;
		if (_data_->_inner_error_ != NULL) {
			if (_data_->_inner_error_->domain == FSO_FRAMEWORK_NETWORK_ERROR) {
				goto __catch53_fso_framework_network_error;
			}
			g_critical ("file %s: line %d: unexpected 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_->_tmp4_ = _data_->_tmp3_;
		fso_framework_network_interface_up (_data_->_tmp4_, &_data_->_inner_error_);
		_fso_framework_network_interface_unref0 (_data_->_tmp4_);
		if (_data_->_inner_error_ != NULL) {
			if (_data_->_inner_error_->domain == FSO_FRAMEWORK_NETWORK_ERROR) {
				goto __catch53_fso_framework_network_error;
			}
			g_critical ("file %s: line %d: unexpected 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;
		}
	}
	goto __finally53;
	__catch53_fso_framework_network_error:
	{
		_data_->err = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_data_->_tmp5_ = ((FsoFrameworkAbstractObject*) _data_->self)->logger;
		_data_->_tmp6_ = _data_->route;
		_data_->_tmp7_ = _data_->_tmp6_->iface;
		_data_->_tmp8_ = NULL;
		_data_->_tmp8_ = string_to_string (_data_->_tmp7_);
		_data_->_tmp9_ = NULL;
		_data_->_tmp9_ = g_strconcat ("Could not activate network interface ", _data_->_tmp8_, "; ", NULL);
		_data_->_tmp10_ = _data_->_tmp9_;
		_data_->_tmp11_ = g_strconcat (_data_->_tmp10_, "still setting context status to ACTIVE", NULL);
		_data_->_tmp12_ = _data_->_tmp11_;
		fso_framework_logger_error (_data_->_tmp5_, _data_->_tmp12_);
		_g_free0 (_data_->_tmp12_);
		_g_free0 (_data_->_tmp10_);
		_g_error_free0 (_data_->err);
	}
	__finally53:
	if (_data_->_inner_error_ != NULL) {
		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_->_tmp13_ = g_str_hash;
	_data_->_tmp14_ = g_str_equal;
	_data_->_tmp15_ = g_hash_table_new_full (_data_->_tmp13_, _data_->_tmp14_, _g_free0_, _g_variant_unref0_);
	_data_->status = _data_->_tmp15_;
	_data_->_tmp16_ = _data_->status;
	_data_->_tmp17_ = g_strdup ("ipv4addr");
	_data_->_tmp18_ = _data_->route;
	_data_->_tmp19_ = _data_->_tmp18_->ipv4addr;
	_data_->_tmp20_ = _variant_new62 (_data_->_tmp19_);
	g_hash_table_insert (_data_->_tmp16_, _data_->_tmp17_, _data_->_tmp20_);
	_data_->_tmp21_ = _data_->status;
	_data_->_tmp22_ = g_strdup ("ipv4mask");
	_data_->_tmp23_ = _data_->route;
	_data_->_tmp24_ = _data_->_tmp23_->ipv4mask;
	_data_->_tmp25_ = _variant_new63 (_data_->_tmp24_);
	g_hash_table_insert (_data_->_tmp21_, _data_->_tmp22_, _data_->_tmp25_);
	_data_->_tmp26_ = _data_->status;
	_data_->_tmp27_ = g_strdup ("ipv4gateway");
	_data_->_tmp28_ = _data_->route;
	_data_->_tmp29_ = _data_->_tmp28_->ipv4gateway;
	_data_->_tmp30_ = _variant_new64 (_data_->_tmp29_);
	g_hash_table_insert (_data_->_tmp26_, _data_->_tmp27_, _data_->_tmp30_);
	_data_->_tmp31_ = _data_->status;
	_data_->_tmp32_ = g_strdup ("dns1");
	_data_->_tmp33_ = _data_->route;
	_data_->_tmp34_ = _data_->_tmp33_->dns1;
	_data_->_tmp35_ = _variant_new65 (_data_->_tmp34_);
	g_hash_table_insert (_data_->_tmp31_, _data_->_tmp32_, _data_->_tmp35_);
	_data_->_tmp36_ = _data_->status;
	_data_->_tmp37_ = g_strdup ("dns2");
	_data_->_tmp38_ = _data_->route;
	_data_->_tmp39_ = _data_->_tmp38_->dns2;
	_data_->_tmp40_ = _variant_new66 (_data_->_tmp39_);
	g_hash_table_insert (_data_->_tmp36_, _data_->_tmp37_, _data_->_tmp40_);
	_data_->_tmp41_ = _data_->status;
	fso_gsm_pdp_handler_updateStatus (_data_->self, FREE_SMARTPHONE_GSM_CONTEXT_STATUS_ACTIVE, _data_->_tmp41_, NULL, NULL);
	_data_->_tmp42_ = fso_framework_theConfig;
	_data_->_tmp43_ = FALSE;
	_data_->_tmp43_ = fso_framework_smart_key_file_boolValue (_data_->_tmp42_, "fsogsm", "pdp_setup_network_route", TRUE);
	_data_->setupNetworkRoute = _data_->_tmp43_;
	_data_->_tmp44_ = _data_->setupNetworkRoute;
	if (_data_->_tmp44_) {
		{
			_data_->_tmp45_ = NULL;
			_data_->_tmp45_ = g_initable_new (FREE_SMARTPHONE_TYPE_NETWORK_PROXY, NULL, &_data_->_inner_error_, "g-flags", 0, "g-name", FSO_FRAMEWORK_NETWORK_ServiceDBusName, "g-bus-type", G_BUS_TYPE_SYSTEM, "g-object-path", FSO_FRAMEWORK_NETWORK_ServicePathPrefix, "g-interface-name", "org.freesmartphone.Network", NULL);
			_data_->network = (FreeSmartphoneNetwork*) _data_->_tmp45_;
			if (_data_->_inner_error_ != NULL) {
				goto __catch54_g_error;
			}
			_data_->_tmp46_ = _data_->network;
			_data_->_tmp47_ = _data_->route;
			_data_->_tmp48_ = _data_->_tmp47_->iface;
			_data_->_tmp49_ = _data_->route;
			_data_->_tmp50_ = _data_->_tmp49_->ipv4addr;
			_data_->_tmp51_ = _data_->route;
			_data_->_tmp52_ = _data_->_tmp51_->ipv4mask;
			_data_->_tmp53_ = _data_->route;
			_data_->_tmp54_ = _data_->_tmp53_->ipv4gateway;
			_data_->_tmp55_ = _data_->route;
			_data_->_tmp56_ = _data_->_tmp55_->dns1;
			_data_->_tmp57_ = _data_->route;
			_data_->_tmp58_ = _data_->_tmp57_->dns2;
			_data_->_state_ = 1;
			free_smartphone_network_offer_default_route (_data_->_tmp46_, "cellular", _data_->_tmp48_, _data_->_tmp50_, _data_->_tmp52_, _data_->_tmp54_, _data_->_tmp56_, _data_->_tmp58_, fso_gsm_pdp_handler_connectedWithNewDefaultRoute_ready, _data_);
			return FALSE;
			_state_1:
			free_smartphone_network_offer_default_route_finish (_data_->_tmp46_, _data_->_res_, &_data_->_inner_error_);
			if (_data_->_inner_error_ != NULL) {
				_g_object_unref0 (_data_->network);
				goto __catch54_g_error;
			}
			_g_object_unref0 (_data_->network);
		}
		goto __finally54;
		__catch54_g_error:
		{
			_data_->e = _data_->_inner_error_;
			_data_->_inner_error_ = NULL;
			_data_->_tmp59_ = ((FsoFrameworkAbstractObject*) _data_->self)->logger;
			_data_->_tmp60_ = _data_->e;
			_data_->_tmp61_ = _data_->_tmp60_->message;
			_data_->_tmp62_ = NULL;
			_data_->_tmp62_ = string_to_string (_data_->_tmp61_);
			_data_->_tmp63_ = NULL;
			_data_->_tmp63_ = g_strconcat ("Can't call offer_default_route on onetworkd: ", _data_->_tmp62_, NULL);
			_data_->_tmp64_ = _data_->_tmp63_;
			fso_framework_logger_error (_data_->_tmp59_, _data_->_tmp64_);
			_g_free0 (_data_->_tmp64_);
			_g_error_free0 (_data_->e);
		}
		__finally54:
		if (_data_->_inner_error_ != NULL) {
			_g_hash_table_unref0 (_data_->status);
			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_hash_table_unref0 (_data_->status);
	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;
}


static void fso_gsm_pdp_handler_real_disconnected (FsoGsmIPdpHandler* base) {
	FsoGsmPdpHandler * self;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* status;
	self = (FsoGsmPdpHandler*) base;
	_tmp0_ = g_str_hash;
	_tmp1_ = g_str_equal;
	_tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_variant_unref0_);
	status = _tmp2_;
	fso_gsm_pdp_handler_updateStatus (self, FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED, status, NULL, NULL);
	_g_hash_table_unref0 (status);
}


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


static void fso_gsm_pdp_handler_real_syncStatus (FsoGsmIPdpHandler* base, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	FsoGsmPdpHandler * self;
	fso_gsm_pdp_handler_syncStatusData* _data_;
	FsoGsmPdpHandler* _tmp0_;
	self = (FsoGsmPdpHandler*) base;
	_data_ = g_slice_new0 (fso_gsm_pdp_handler_syncStatusData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, fso_gsm_pdp_handler_real_syncStatus);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, fso_gsm_pdp_handler_real_syncStatus_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	fso_gsm_pdp_handler_real_syncStatus_co (_data_);
}


static void fso_gsm_pdp_handler_real_syncStatus_finish (FsoGsmIPdpHandler* base, GAsyncResult* _res_) {
	fso_gsm_pdp_handler_syncStatusData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static void fso_gsm_pdp_handler_syncStatus_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	fso_gsm_pdp_handler_syncStatusData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	fso_gsm_pdp_handler_real_syncStatus_co (_data_);
}


static const gchar* _variant_get67 (GVariant* value) {
	return g_variant_dup_string (value, NULL);
}


static const gchar* _variant_get68 (GVariant* value) {
	return g_variant_dup_string (value, NULL);
}


static gboolean fso_gsm_pdp_handler_real_syncStatus_co (fso_gsm_pdp_handler_syncStatusData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = _data_->self->priv->inSyncStatus;
	if (_data_->_tmp0_) {
		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;
	}
	_data_->self->priv->inSyncStatus = TRUE;
	_data_->_tmp1_ = _data_->self->priv->lastNetworkRegistrationStatus;
	_data_->_tmp2_ = g_strdup (_data_->_tmp1_);
	_data_->networkRegistrationStatus = _data_->_tmp2_;
	_data_->_tmp3_ = fso_gsm_theModem;
	_data_->_tmp4_ = NULL;
	_data_->_tmp4_ = fso_gsm_modem_data (_data_->_tmp3_);
	_data_->_tmp5_ = _data_->_tmp4_;
	_data_->_tmp6_ = _data_->_tmp5_->roamingAllowed;
	_data_->_tmp7_ = _data_->_tmp6_;
	_g_object_unref0 (_data_->_tmp5_);
	_data_->roamingAllowed = _data_->_tmp7_;
	_data_->_tmp8_ = fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) _data_->self);
	_data_->_tmp9_ = _data_->_tmp8_;
	_data_->nextContextStatus = _data_->_tmp9_;
	_data_->_tmp11_ = fso_gsm_theModem;
	_data_->_tmp12_ = FALSE;
	_data_->_tmp12_ = fso_gsm_modem_isAlive (_data_->_tmp11_);
	if (!_data_->_tmp12_) {
		_data_->_tmp10_ = TRUE;
	} else {
		_data_->_tmp13_ = fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) _data_->self);
		_data_->_tmp14_ = _data_->_tmp13_;
		_data_->_tmp10_ = _data_->_tmp14_ == FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED;
	}
	_data_->_tmp15_ = _data_->_tmp10_;
	if (_data_->_tmp15_) {
		_g_free0 (_data_->networkRegistrationStatus);
		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;
	}
	{
		_data_->_tmp16_ = fso_gsm_theModem;
		_data_->_tmp17_ = NULL;
		_data_->_tmp17_ = fso_gsm_modem_theDevice (_data_->_tmp16_, FREE_SMARTPHONE_GSM_TYPE_NETWORK, (GBoxedCopyFunc) g_object_ref, g_object_unref);
		_data_->network = (FreeSmartphoneGSMNetwork*) _data_->_tmp17_;
		_data_->_tmp18_ = _data_->network;
		_data_->_state_ = 1;
		free_smartphone_gsm_network_get_status (_data_->_tmp18_, fso_gsm_pdp_handler_syncStatus_ready, _data_);
		return FALSE;
		_state_1:
		_data_->_tmp19_ = NULL;
		_data_->_tmp19_ = free_smartphone_gsm_network_get_status_finish (_data_->_tmp18_, _data_->_res_, &_data_->_inner_error_);
		_data_->networkStatus = _data_->_tmp19_;
		if (_data_->_inner_error_ != NULL) {
			_g_object_unref0 (_data_->network);
			goto __catch55_g_error;
		}
		_data_->_tmp21_ = _data_->networkStatus;
		_data_->_tmp22_ = NULL;
		_data_->_tmp22_ = g_hash_table_lookup (_data_->_tmp21_, "pdp.registration");
		_data_->_tmp23_ = _variant_get67 ((GVariant*) _data_->_tmp22_);
		_data_->_tmp24_ = g_strdup (_data_->_tmp23_);
		_g_free0 (_data_->networkRegistrationStatus);
		_data_->networkRegistrationStatus = _data_->_tmp24_;
		_data_->_tmp25_ = _data_->networkRegistrationStatus;
		if (_data_->_tmp25_ == NULL) {
			_data_->_tmp26_ = _data_->networkStatus;
			_data_->_tmp27_ = NULL;
			_data_->_tmp27_ = g_hash_table_lookup (_data_->_tmp26_, "registration");
			_data_->_tmp28_ = _variant_get68 ((GVariant*) _data_->_tmp27_);
			_data_->_tmp29_ = g_strdup (_data_->_tmp28_);
			_g_free0 (_data_->networkRegistrationStatus);
			_data_->networkRegistrationStatus = _data_->_tmp29_;
			_data_->_tmp30_ = _data_->networkRegistrationStatus;
			_data_->_tmp20_ = _data_->_tmp30_ == NULL;
		} else {
			_data_->_tmp20_ = FALSE;
		}
		_data_->_tmp31_ = _data_->_tmp20_;
		if (_data_->_tmp31_) {
			_data_->_tmp32_ = _data_->self->priv->lastNetworkRegistrationStatus;
			_data_->_tmp33_ = g_strdup (_data_->_tmp32_);
			_g_free0 (_data_->networkRegistrationStatus);
			_data_->networkRegistrationStatus = _data_->_tmp33_;
		}
		_data_->_tmp34_ = _data_->networkRegistrationStatus;
		_data_->registered = g_strcmp0 (_data_->_tmp34_, "registered") == 0;
		_data_->_tmp36_ = _data_->registered;
		if (_data_->_tmp36_) {
			_data_->_tmp35_ = TRUE;
		} else {
			_data_->_tmp38_ = _data_->roamingAllowed;
			if (_data_->_tmp38_) {
				_data_->_tmp39_ = _data_->networkRegistrationStatus;
				_data_->_tmp37_ = g_strcmp0 (_data_->_tmp39_, "roaming") == 0;
			} else {
				_data_->_tmp37_ = FALSE;
			}
			_data_->_tmp40_ = _data_->_tmp37_;
			_data_->_tmp35_ = _data_->_tmp40_;
		}
		_data_->_tmp41_ = _data_->_tmp35_;
		if (_data_->_tmp41_) {
			_data_->nextContextStatus = FREE_SMARTPHONE_GSM_CONTEXT_STATUS_ACTIVE;
		} else {
			_data_->_tmp43_ = _data_->networkRegistrationStatus;
			if (g_strcmp0 (_data_->_tmp43_, "home") != 0) {
				_data_->_tmp44_ = _data_->networkRegistrationStatus;
				_data_->_tmp42_ = g_strcmp0 (_data_->_tmp44_, "roaming") != 0;
			} else {
				_data_->_tmp42_ = FALSE;
			}
			_data_->_tmp45_ = _data_->_tmp42_;
			if (_data_->_tmp45_) {
				_data_->nextContextStatus = FREE_SMARTPHONE_GSM_CONTEXT_STATUS_SUSPENDED;
			}
		}
		_data_->_tmp46_ = _data_->nextContextStatus;
		_data_->_tmp47_ = fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) _data_->self);
		_data_->_tmp48_ = _data_->_tmp47_;
		if (_data_->_tmp46_ != _data_->_tmp48_) {
			_data_->_tmp49_ = _data_->nextContextStatus;
			switch (_data_->_tmp49_) {
				case FREE_SMARTPHONE_GSM_CONTEXT_STATUS_ACTIVE:
				{
					fso_gsm_ipdp_handler_activate ((FsoGsmIPdpHandler*) _data_->self, NULL, NULL);
					break;
				}
				case FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED:
				{
					fso_gsm_ipdp_handler_deactivate ((FsoGsmIPdpHandler*) _data_->self, NULL, NULL);
					break;
				}
				case FREE_SMARTPHONE_GSM_CONTEXT_STATUS_SUSPENDED:
				{
					_data_->_tmp50_ = _data_->nextContextStatus;
					_data_->_tmp51_ = fso_gsm_ipdp_handler_get_properties ((FsoGsmIPdpHandler*) _data_->self);
					_data_->_tmp52_ = _data_->_tmp51_;
					fso_gsm_pdp_handler_updateStatus (_data_->self, _data_->_tmp50_, _data_->_tmp52_, NULL, NULL);
					break;
				}
				default:
				break;
			}
		}
		_data_->_tmp53_ = _data_->networkRegistrationStatus;
		_data_->_tmp54_ = g_strdup (_data_->_tmp53_);
		_g_free0 (_data_->self->priv->lastNetworkRegistrationStatus);
		_data_->self->priv->lastNetworkRegistrationStatus = _data_->_tmp54_;
		_g_hash_table_unref0 (_data_->networkStatus);
		_g_object_unref0 (_data_->network);
	}
	goto __finally55;
	__catch55_g_error:
	{
		_data_->e = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_data_->_tmp55_ = ((FsoFrameworkAbstractObject*) _data_->self)->logger;
		fso_framework_logger_error (_data_->_tmp55_, "Could not synchronize PDP registration status");
		_g_error_free0 (_data_->e);
	}
	__finally55:
	if (_data_->_inner_error_ != NULL) {
		_g_free0 (_data_->networkRegistrationStatus);
		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_->self->priv->inSyncStatus = FALSE;
	_g_free0 (_data_->networkRegistrationStatus);
	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;
}


FsoGsmPdpHandler* fso_gsm_pdp_handler_construct (GType object_type) {
	FsoGsmPdpHandler * self = NULL;
	self = (FsoGsmPdpHandler*) fso_framework_abstract_object_construct (object_type);
	return self;
}


static FreeSmartphoneGSMContextStatus fso_gsm_pdp_handler_real_get_status (FsoGsmIPdpHandler* base) {
	FreeSmartphoneGSMContextStatus result;
	FsoGsmPdpHandler* self;
	FreeSmartphoneGSMContextStatus _tmp0_;
	self = (FsoGsmPdpHandler*) base;
	_tmp0_ = self->priv->_status;
	result = _tmp0_;
	return result;
}


static void fso_gsm_pdp_handler_real_set_status (FsoGsmIPdpHandler* base, FreeSmartphoneGSMContextStatus value) {
	FsoGsmPdpHandler* self;
	FreeSmartphoneGSMContextStatus _tmp0_;
	self = (FsoGsmPdpHandler*) base;
	_tmp0_ = value;
	self->priv->_status = _tmp0_;
	g_object_notify ((GObject *) self, "status");
}


static GHashTable* fso_gsm_pdp_handler_real_get_properties (FsoGsmIPdpHandler* base) {
	GHashTable* result;
	FsoGsmPdpHandler* self;
	GHashTable* _tmp0_;
	self = (FsoGsmPdpHandler*) base;
	_tmp0_ = self->priv->_properties;
	result = _tmp0_;
	return result;
}


static void fso_gsm_pdp_handler_real_set_properties (FsoGsmIPdpHandler* base, GHashTable* value) {
	FsoGsmPdpHandler* self;
	GHashTable* _tmp0_;
	GHashTable* _tmp1_;
	self = (FsoGsmPdpHandler*) base;
	_tmp0_ = value;
	_tmp1_ = _g_hash_table_ref0 (_tmp0_);
	_g_hash_table_unref0 (self->priv->_properties);
	self->priv->_properties = _tmp1_;
	g_object_notify ((GObject *) self, "properties");
}


static void __lambda1_ (FsoGsmPdpHandler* self, GHashTable* status) {
	g_return_if_fail (status != NULL);
	fso_gsm_ipdp_handler_syncStatus ((FsoGsmIPdpHandler*) self, NULL, NULL);
}


static void ___lambda1__free_smartphone_gsm_network_status (FreeSmartphoneGSMNetwork* _sender, GHashTable* status, gpointer self) {
	__lambda1_ (self, status);
}


static void __lambda2_ (FsoGsmPdpHandler* self, FreeSmartphoneGSMDeviceStatus status) {
	fso_gsm_ipdp_handler_syncStatus ((FsoGsmIPdpHandler*) self, NULL, NULL);
}


static void ___lambda2__free_smartphone_gsm_device_device_status (FreeSmartphoneGSMDevice* _sender, FreeSmartphoneGSMDeviceStatus status, gpointer self) {
	__lambda2_ (self, status);
}


static gboolean _fso_gsm_pdp_handler___lambda0_ (FsoGsmPdpHandler* self) {
	gboolean result = FALSE;
	FsoGsmModem* _tmp0_;
	gpointer _tmp1_ = NULL;
	FreeSmartphoneGSMNetwork* network;
	FreeSmartphoneGSMNetwork* _tmp2_;
	FsoGsmModem* _tmp3_;
	gpointer _tmp4_ = NULL;
	FreeSmartphoneGSMDevice* device;
	FreeSmartphoneGSMDevice* _tmp5_;
	_tmp0_ = fso_gsm_theModem;
	_tmp1_ = fso_gsm_modem_theDevice (_tmp0_, FREE_SMARTPHONE_GSM_TYPE_NETWORK, (GBoxedCopyFunc) g_object_ref, g_object_unref);
	network = (FreeSmartphoneGSMNetwork*) _tmp1_;
	_tmp2_ = network;
	g_signal_connect_object (_tmp2_, "status", (GCallback) ___lambda1__free_smartphone_gsm_network_status, self, 0);
	_tmp3_ = fso_gsm_theModem;
	_tmp4_ = fso_gsm_modem_theDevice (_tmp3_, FREE_SMARTPHONE_GSM_TYPE_DEVICE, (GBoxedCopyFunc) g_object_ref, g_object_unref);
	device = (FreeSmartphoneGSMDevice*) _tmp4_;
	_tmp5_ = device;
	g_signal_connect_object (_tmp5_, "device-status", (GCallback) ___lambda2__free_smartphone_gsm_device_device_status, self, 0);
	result = FALSE;
	_g_object_unref0 (device);
	_g_object_unref0 (network);
	return result;
}


static gboolean __fso_gsm_pdp_handler___lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = _fso_gsm_pdp_handler___lambda0_ (self);
	return result;
}


static GObject * fso_gsm_pdp_handler_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) {
	GObject * obj;
	GObjectClass * parent_class;
	FsoGsmPdpHandler * self;
	GHashFunc _tmp0_;
	GEqualFunc _tmp1_;
	GHashTable* _tmp2_;
	GHashTable* _tmp3_;
	parent_class = G_OBJECT_CLASS (fso_gsm_pdp_handler_parent_class);
	obj = parent_class->constructor (type, n_construct_properties, construct_properties);
	self = FSO_GSM_PDP_HANDLER (obj);
	fso_gsm_ipdp_handler_set_status ((FsoGsmIPdpHandler*) self, FREE_SMARTPHONE_GSM_CONTEXT_STATUS_RELEASED);
	_tmp0_ = g_str_hash;
	_tmp1_ = g_str_equal;
	_tmp2_ = g_hash_table_new_full (_tmp0_, _tmp1_, _g_free0_, _g_variant_unref0_);
	_tmp3_ = _tmp2_;
	fso_gsm_ipdp_handler_set_properties ((FsoGsmIPdpHandler*) self, _tmp3_);
	_g_hash_table_unref0 (_tmp3_);
	g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, __fso_gsm_pdp_handler___lambda0__gsource_func, g_object_ref (self), g_object_unref);
	return obj;
}


static void fso_gsm_pdp_handler_class_init (FsoGsmPdpHandlerClass * klass) {
	fso_gsm_pdp_handler_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (FsoGsmPdpHandlerPrivate));
	FSO_GSM_PDP_HANDLER_CLASS (klass)->sc_activate = fso_gsm_pdp_handler_real_sc_activate;
	FSO_GSM_PDP_HANDLER_CLASS (klass)->sc_activate_finish = fso_gsm_pdp_handler_real_sc_activate_finish;
	FSO_GSM_PDP_HANDLER_CLASS (klass)->sc_deactivate = fso_gsm_pdp_handler_real_sc_deactivate;
	FSO_GSM_PDP_HANDLER_CLASS (klass)->sc_deactivate_finish = fso_gsm_pdp_handler_real_sc_deactivate_finish;
	G_OBJECT_CLASS (klass)->get_property = _vala_fso_gsm_pdp_handler_get_property;
	G_OBJECT_CLASS (klass)->set_property = _vala_fso_gsm_pdp_handler_set_property;
	G_OBJECT_CLASS (klass)->constructor = fso_gsm_pdp_handler_constructor;
	G_OBJECT_CLASS (klass)->finalize = fso_gsm_pdp_handler_finalize;
	g_object_class_install_property (G_OBJECT_CLASS (klass), FSO_GSM_PDP_HANDLER_STATUS, g_param_spec_enum ("status", "status", "status", FREE_SMARTPHONE_GSM_TYPE_CONTEXT_STATUS, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
	g_object_class_install_property (G_OBJECT_CLASS (klass), FSO_GSM_PDP_HANDLER_PROPERTIES, g_param_spec_boxed ("properties", "properties", "properties", G_TYPE_HASH_TABLE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}


static void fso_gsm_pdp_handler_fso_gsm_ipdp_handler_interface_init (FsoGsmIPdpHandlerIface * iface) {
	fso_gsm_pdp_handler_fso_gsm_ipdp_handler_parent_iface = g_type_interface_peek_parent (iface);
	iface->activate = (void (*)(FsoGsmIPdpHandler*, GError**)) fso_gsm_pdp_handler_real_activate;
	iface->activate_finish = fso_gsm_pdp_handler_real_activate_finish;
	iface->deactivate = (void (*)(FsoGsmIPdpHandler*, GError**)) fso_gsm_pdp_handler_real_deactivate;
	iface->deactivate_finish = fso_gsm_pdp_handler_real_deactivate_finish;
	iface->statusUpdate = (void (*)(FsoGsmIPdpHandler*, const gchar*, GHashTable*)) fso_gsm_pdp_handler_statusUpdate;
	iface->statusUpdate_finish = fso_gsm_pdp_handler_statusUpdate_finish;
	iface->connectedWithNewDefaultRoute = (void (*)(FsoGsmIPdpHandler*, FsoGsmRouteInfo*)) fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute;
	iface->connectedWithNewDefaultRoute_finish = fso_gsm_pdp_handler_real_connectedWithNewDefaultRoute_finish;
	iface->disconnected = (void (*)(FsoGsmIPdpHandler*)) fso_gsm_pdp_handler_real_disconnected;
	iface->syncStatus = (void (*)(FsoGsmIPdpHandler*)) fso_gsm_pdp_handler_real_syncStatus;
	iface->syncStatus_finish = fso_gsm_pdp_handler_real_syncStatus_finish;
	iface->get_status = fso_gsm_pdp_handler_real_get_status;
	iface->set_status = fso_gsm_pdp_handler_real_set_status;
	iface->get_properties = fso_gsm_pdp_handler_real_get_properties;
	iface->set_properties = fso_gsm_pdp_handler_real_set_properties;
}


static void fso_gsm_pdp_handler_instance_init (FsoGsmPdpHandler * self) {
	gchar* _tmp0_;
	self->priv = FSO_GSM_PDP_HANDLER_GET_PRIVATE (self);
	_tmp0_ = g_strdup ("unknown");
	self->priv->lastNetworkRegistrationStatus = _tmp0_;
	self->priv->inSyncStatus = FALSE;
}


static void fso_gsm_pdp_handler_finalize (GObject* obj) {
	FsoGsmPdpHandler * self;
	self = FSO_GSM_PDP_HANDLER (obj);
	_g_free0 (self->priv->lastNetworkRegistrationStatus);
	_g_hash_table_unref0 (self->priv->_properties);
	G_OBJECT_CLASS (fso_gsm_pdp_handler_parent_class)->finalize (obj);
}


/**
 * @class PdpHandler
 **/
GType fso_gsm_pdp_handler_get_type (void) {
	static volatile gsize fso_gsm_pdp_handler_type_id__volatile = 0;
	if (g_once_init_enter (&fso_gsm_pdp_handler_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (FsoGsmPdpHandlerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) fso_gsm_pdp_handler_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (FsoGsmPdpHandler), 0, (GInstanceInitFunc) fso_gsm_pdp_handler_instance_init, NULL };
		static const GInterfaceInfo fso_gsm_ipdp_handler_info = { (GInterfaceInitFunc) fso_gsm_pdp_handler_fso_gsm_ipdp_handler_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType fso_gsm_pdp_handler_type_id;
		fso_gsm_pdp_handler_type_id = g_type_register_static (FSO_FRAMEWORK_TYPE_ABSTRACT_OBJECT, "FsoGsmPdpHandler", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
		g_type_add_interface_static (fso_gsm_pdp_handler_type_id, FSO_GSM_TYPE_IPDP_HANDLER, &fso_gsm_ipdp_handler_info);
		g_once_init_leave (&fso_gsm_pdp_handler_type_id__volatile, fso_gsm_pdp_handler_type_id);
	}
	return fso_gsm_pdp_handler_type_id__volatile;
}


static void _vala_fso_gsm_pdp_handler_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	FsoGsmPdpHandler * self;
	self = FSO_GSM_PDP_HANDLER (object);
	switch (property_id) {
		case FSO_GSM_PDP_HANDLER_STATUS:
		g_value_set_enum (value, fso_gsm_ipdp_handler_get_status ((FsoGsmIPdpHandler*) self));
		break;
		case FSO_GSM_PDP_HANDLER_PROPERTIES:
		g_value_set_boxed (value, fso_gsm_ipdp_handler_get_properties ((FsoGsmIPdpHandler*) self));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}


static void _vala_fso_gsm_pdp_handler_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	FsoGsmPdpHandler * self;
	self = FSO_GSM_PDP_HANDLER (object);
	switch (property_id) {
		case FSO_GSM_PDP_HANDLER_STATUS:
		fso_gsm_ipdp_handler_set_status ((FsoGsmIPdpHandler*) self, g_value_get_enum (value));
		break;
		case FSO_GSM_PDP_HANDLER_PROPERTIES:
		fso_gsm_ipdp_handler_set_properties ((FsoGsmIPdpHandler*) self, g_value_get_boxed (value));
		break;
		default:
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
		break;
	}
}



