/** * @brief clear the layout * @details save the data, which was changed, * then clear the layout * * @param database : database, where the data will be saved */ void yatla_layout_clear_layout (YatlaLayout* self, YatlaDatabase* database, YatlaSidebar* sidebar) { const gchar* _tmp0_ = NULL; gboolean _tmp10_ = FALSE; gboolean _tmp11_ = FALSE; GtkBox* _tmp12_ = NULL; GeeTreeMap* _tmp18_ = NULL; g_return_if_fail (self != NULL); g_return_if_fail (database != NULL); g_return_if_fail (sidebar != NULL); _tmp0_ = self->_name; if (_tmp0_ != NULL) { YatlaSidebar* _tmp1_ = NULL; GeeTreeMap* _tmp2_ = NULL; GeeSet* _tmp3_ = NULL; GeeSet* _tmp4_ = NULL; GeeSet* _tmp5_ = NULL; gint _tmp6_ = 0; gpointer* _tmp7_ = NULL; YatlaTask** _tmp8_ = NULL; gint _tmp8__length1 = 0; const gchar* _tmp9_ = NULL; _tmp1_ = sidebar; _tmp2_ = self->tasks; _tmp3_ = gee_abstract_map_get_keys ((GeeMap*) _tmp2_); _tmp4_ = _tmp3_; _tmp5_ = _tmp4_; _tmp7_ = gee_collection_to_array ((GeeCollection*) _tmp5_, &_tmp6_); _tmp8_ = _tmp7_; _tmp8__length1 = _tmp6_; _tmp9_ = self->_name; yatla_sidebar_update_list (_tmp1_, _tmp8_, _tmp6_, _tmp9_); _tmp8_ = (_vala_array_free (_tmp8_, _tmp8__length1, (GDestroyNotify) g_object_unref), NULL); _g_object_unref0 (_tmp5_); } _tmp12_ = self->_top_box1; if (_tmp12_ != NULL) { GtkBox* _tmp13_ = NULL; _tmp13_ = self->_top_box2; _tmp11_ = _tmp13_ != NULL; } else { _tmp11_ = FALSE; } if (_tmp11_) { GtkBox* _tmp14_ = NULL; _tmp14_ = self->_tasks_box; _tmp10_ = _tmp14_ != NULL; } else { _tmp10_ = FALSE; } if (_tmp10_) { GtkBox* _tmp15_ = NULL; GtkBox* _tmp16_ = NULL; GtkBox* _tmp17_ = NULL; _tmp15_ = self->_top_box1; gtk_container_remove ((GtkContainer*) self, (GtkWidget*) _tmp15_); _tmp16_ = self->_top_box2; gtk_container_remove ((GtkContainer*) self, (GtkWidget*) _tmp16_); _tmp17_ = self->_tasks_box; gtk_container_remove ((GtkContainer*) self, (GtkWidget*) _tmp17_); } _tmp18_ = self->tasks; if (_tmp18_ != NULL) { GeeTreeMap* _tmp19_ = NULL; _tmp19_ = self->tasks; gee_abstract_map_clear ((GeeAbstractMap*) _tmp19_); } }
static void samsung_modem_real_registerCustomMediators (FsoGsmAbstractModem* base, GeeHashMap* mediators) { SamsungModem * self; GeeHashMap* _tmp0_; GeeHashMap* _tmp1_; GeeHashMap* _tmp2_; GeeHashMap* _tmp3_; GeeHashMap* _tmp4_; GeeHashMap* _tmp5_; GeeHashMap* _tmp6_; GeeHashMap* _tmp7_; GeeHashMap* _tmp8_; GeeHashMap* _tmp9_; GeeHashMap* _tmp10_; GeeHashMap* _tmp11_; GeeHashMap* _tmp12_; GeeHashMap* _tmp13_; GeeHashMap* _tmp14_; GeeHashMap* _tmp15_; GeeHashMap* _tmp16_; GeeHashMap* _tmp17_; GeeHashMap* _tmp18_; GeeHashMap* _tmp19_; GeeHashMap* _tmp20_; GeeHashMap* _tmp21_; GeeHashMap* _tmp22_; GeeHashMap* _tmp23_; GeeHashMap* _tmp24_; GeeHashMap* _tmp25_; GeeHashMap* _tmp26_; GeeHashMap* _tmp27_; self = (SamsungModem*) base; g_return_if_fail (mediators != NULL); _tmp0_ = mediators; gee_abstract_map_clear ((GeeAbstractMap*) _tmp0_); _tmp1_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp1_, GINT_TO_POINTER (FSO_GSM_TYPE_SIM_GET_AUTH_STATUS), GINT_TO_POINTER (TYPE_SAMSUNG_SIM_GET_AUTH_STATUS)); _tmp2_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp2_, GINT_TO_POINTER (FSO_GSM_TYPE_SIM_SEND_AUTH_CODE), GINT_TO_POINTER (TYPE_SAMSUNG_SIM_SEND_AUTH_CODE)); _tmp3_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp3_, GINT_TO_POINTER (FSO_GSM_TYPE_SIM_GET_INFORMATION), GINT_TO_POINTER (TYPE_SAMSUNG_SIM_GET_INFORMATION)); _tmp4_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp4_, GINT_TO_POINTER (FSO_GSM_TYPE_DEVICE_GET_FEATURES), GINT_TO_POINTER (TYPE_SAMSUNG_DEVICE_GET_FEATURES)); _tmp5_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp5_, GINT_TO_POINTER (FSO_GSM_TYPE_DEVICE_GET_INFORMATION), GINT_TO_POINTER (TYPE_SAMSUNG_DEVICE_GET_INFORMATION)); _tmp6_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp6_, GINT_TO_POINTER (FSO_GSM_TYPE_DEVICE_GET_FUNCTIONALITY), GINT_TO_POINTER (TYPE_SAMSUNG_DEVICE_GET_FUNCTIONALITY)); _tmp7_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp7_, GINT_TO_POINTER (FSO_GSM_TYPE_DEVICE_GET_POWER_STATUS), GINT_TO_POINTER (TYPE_SAMSUNG_DEVICE_GET_POWER_STATUS)); _tmp8_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp8_, GINT_TO_POINTER (FSO_GSM_TYPE_DEVICE_SET_FUNCTIONALITY), GINT_TO_POINTER (TYPE_SAMSUNG_DEVICE_SET_FUNCTIONALITY)); _tmp9_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp9_, GINT_TO_POINTER (FSO_GSM_TYPE_NETWORK_REGISTER), GINT_TO_POINTER (TYPE_SAMSUNG_NETWORK_REGISTER)); _tmp10_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp10_, GINT_TO_POINTER (FSO_GSM_TYPE_NETWORK_REGISTER_WITH_PROVIDER), GINT_TO_POINTER (TYPE_SAMSUNG_NETWORK_REGISTER_WITH_PROVIDER)); _tmp11_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp11_, GINT_TO_POINTER (FSO_GSM_TYPE_NETWORK_UNREGISTER), GINT_TO_POINTER (TYPE_SAMSUNG_NETWORK_UNREGISTER)); _tmp12_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp12_, GINT_TO_POINTER (FSO_GSM_TYPE_NETWORK_GET_STATUS), GINT_TO_POINTER (TYPE_SAMSUNG_NETWORK_GET_STATUS)); _tmp13_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp13_, GINT_TO_POINTER (FSO_GSM_TYPE_NETWORK_GET_SIGNAL_STRENGTH), GINT_TO_POINTER (TYPE_SAMSUNG_NETWORK_GET_SIGNAL_STRENGTH)); _tmp14_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp14_, GINT_TO_POINTER (FSO_GSM_TYPE_NETWORK_LIST_PROVIDERS), GINT_TO_POINTER (TYPE_SAMSUNG_NETWORK_LIST_PROVIDERS)); _tmp15_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp15_, GINT_TO_POINTER (FSO_GSM_TYPE_PDP_ACTIVATE_CONTEXT), GINT_TO_POINTER (FSO_GSM_TYPE_AT_PDP_ACTIVATE_CONTEXT)); _tmp16_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp16_, GINT_TO_POINTER (FSO_GSM_TYPE_PDP_DEACTIVATE_CONTEXT), GINT_TO_POINTER (FSO_GSM_TYPE_AT_PDP_DEACTIVATE_CONTEXT)); _tmp17_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp17_, GINT_TO_POINTER (FSO_GSM_TYPE_PDP_SET_CREDENTIALS), GINT_TO_POINTER (TYPE_SAMSUNG_PDP_SET_CREDENTIALS)); _tmp18_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp18_, GINT_TO_POINTER (FSO_GSM_TYPE_PDP_GET_CREDENTIALS), GINT_TO_POINTER (FSO_GSM_TYPE_AT_PDP_GET_CREDENTIALS)); _tmp19_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp19_, GINT_TO_POINTER (FSO_GSM_TYPE_CALL_ACTIVATE), GINT_TO_POINTER (TYPE_SAMSUNG_CALL_ACTIVATE)); _tmp20_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp20_, GINT_TO_POINTER (FSO_GSM_TYPE_CALL_HOLD_ACTIVE), GINT_TO_POINTER (TYPE_SAMSUNG_CALL_HOLD_ACTIVE)); _tmp21_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp21_, GINT_TO_POINTER (FSO_GSM_TYPE_CALL_INITIATE), GINT_TO_POINTER (TYPE_SAMSUNG_CALL_INITIATE)); _tmp22_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp22_, GINT_TO_POINTER (FSO_GSM_TYPE_CALL_LIST_CALLS), GINT_TO_POINTER (TYPE_SAMSUNG_CALL_LIST_CALLS)); _tmp23_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp23_, GINT_TO_POINTER (FSO_GSM_TYPE_CALL_RELEASE_ALL), GINT_TO_POINTER (TYPE_SAMSUNG_CALL_RELEASE_ALL)); _tmp24_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp24_, GINT_TO_POINTER (FSO_GSM_TYPE_CALL_RELEASE), GINT_TO_POINTER (TYPE_SAMSUNG_CALL_RELEASE)); _tmp25_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp25_, GINT_TO_POINTER (FSO_GSM_TYPE_CALL_SEND_DTMF), GINT_TO_POINTER (TYPE_SAMSUNG_CALL_SEND_DTMF)); _tmp26_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp26_, GINT_TO_POINTER (FSO_GSM_TYPE_SMS_RETRIEVE_TEXT_MESSAGES), GINT_TO_POINTER (TYPE_SAMSUNG_SMS_RETRIEVE_TEXT_MESSAGES)); _tmp27_ = mediators; gee_abstract_map_set ((GeeAbstractMap*) _tmp27_, GINT_TO_POINTER (FSO_GSM_TYPE_SMS_SEND_TEXT_MESSAGE), GINT_TO_POINTER (TYPE_SAMSUNG_SMS_SEND_TEXT_MESSAGE)); }