670
653
folks_persona_store_set_trust_level ((FolksPersonaStore*) self, FOLKS_PERSONA_STORE_TRUST_PARTIAL);
672
655
_tmp3_ = g_hash_table_new_full (g_str_hash, g_str_equal, _g_free0_, _g_object_unref0_);
674
656
_g_hash_table_unref0 (self->priv->_personas);
675
self->priv->_personas = _tmp4_;
657
self->priv->_personas = _tmp3_;
677
658
_g_object_unref0 (self->priv->_conn);
678
self->priv->_conn = _tmp5_;
679
_tmp6_ = gee_hash_map_new (G_TYPE_UINT, NULL, NULL, TPF_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
659
self->priv->_conn = NULL;
660
_tmp4_ = gee_hash_map_new (G_TYPE_UINT, NULL, NULL, TPF_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
681
661
_g_object_unref0 (self->priv->_handle_persona_map);
682
self->priv->_handle_persona_map = _tmp7_;
683
_tmp8_ = gee_hash_map_new (TP_TYPE_CHANNEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
662
self->priv->_handle_persona_map = _tmp4_;
663
_tmp5_ = gee_hash_map_new (TP_TYPE_CHANNEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
685
664
_g_object_unref0 (self->priv->_channel_group_personas_map);
686
self->priv->_channel_group_personas_map = _tmp9_;
687
_tmp10_ = gee_hash_map_new (TP_TYPE_CHANNEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
665
self->priv->_channel_group_personas_map = _tmp5_;
666
_tmp6_ = gee_hash_map_new (TP_TYPE_CHANNEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
689
667
_g_object_unref0 (self->priv->_channel_group_incoming_adds);
690
self->priv->_channel_group_incoming_adds = _tmp11_;
691
_tmp12_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
668
self->priv->_channel_group_incoming_adds = _tmp6_;
669
_tmp7_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
693
670
_g_object_unref0 (self->priv->_group_outgoing_adds);
694
self->priv->_group_outgoing_adds = _tmp13_;
695
_tmp14_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
671
self->priv->_group_outgoing_adds = _tmp7_;
672
_tmp8_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, GEE_TYPE_HASH_SET, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
697
673
_g_object_unref0 (self->priv->_group_outgoing_removes);
698
self->priv->_group_outgoing_removes = _tmp15_;
700
_g_object_unref0 (self->priv->_publish);
701
self->priv->_publish = _tmp16_;
703
_g_object_unref0 (self->priv->_stored);
704
self->priv->_stored = _tmp17_;
706
_g_object_unref0 (self->priv->_subscribe);
707
self->priv->_subscribe = _tmp18_;
708
_tmp19_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, TP_TYPE_CHANNEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
674
self->priv->_group_outgoing_removes = _tmp8_;
675
if (self->priv->_publish != NULL) {
677
g_signal_parse_name ("invalidated", TP_TYPE_PROXY, &_tmp9_, NULL, FALSE);
678
g_signal_handlers_disconnect_matched ((TpProxy*) self->priv->_publish, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp9_, 0, NULL, (GCallback) __tpf_persona_store_channel_invalidated_cb_tp_proxy_invalidated, self);
679
_g_object_unref0 (self->priv->_publish);
680
self->priv->_publish = NULL;
682
if (self->priv->_stored != NULL) {
684
g_signal_parse_name ("invalidated", TP_TYPE_PROXY, &_tmp10_, NULL, FALSE);
685
g_signal_handlers_disconnect_matched ((TpProxy*) self->priv->_stored, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp10_, 0, NULL, (GCallback) __tpf_persona_store_channel_invalidated_cb_tp_proxy_invalidated, self);
686
_g_object_unref0 (self->priv->_stored);
687
self->priv->_stored = NULL;
689
if (self->priv->_subscribe != NULL) {
691
g_signal_parse_name ("invalidated", TP_TYPE_PROXY, &_tmp11_, NULL, FALSE);
692
g_signal_handlers_disconnect_matched ((TpProxy*) self->priv->_subscribe, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp11_, 0, NULL, (GCallback) __tpf_persona_store_channel_invalidated_cb_tp_proxy_invalidated, self);
693
_g_object_unref0 (self->priv->_subscribe);
694
self->priv->_subscribe = NULL;
696
_tmp12_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, TP_TYPE_CHANNEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
710
697
_g_object_unref0 (self->priv->_standard_channels_unready);
711
self->priv->_standard_channels_unready = _tmp20_;
698
self->priv->_standard_channels_unready = _tmp12_;
699
_tmp13_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, TP_TYPE_CHANNEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
700
_g_object_unref0 (self->priv->_group_channels_unready);
701
self->priv->_group_channels_unready = _tmp13_;
702
if (self->priv->_groups != NULL) {
704
GeeCollection* _tmp14_ = NULL;
705
GeeCollection* _tmp15_;
706
GeeIterator* _tmp16_ = NULL;
707
GeeIterator* _tmp17_;
708
GeeIterator* _channel_it;
709
_tmp14_ = gee_map_get_values ((GeeMap*) self->priv->_groups);
711
_tmp16_ = gee_iterable_iterator ((GeeIterable*) _tmp15_);
713
_g_object_unref0 (_tmp15_);
714
_channel_it = _tmp17_;
717
gpointer _tmp19_ = NULL;
719
_tmp18_ = gee_iterator_next (_channel_it);
723
_tmp19_ = gee_iterator_get (_channel_it);
724
channel = (TpChannel*) _tmp19_;
725
if (channel != NULL) {
727
g_signal_parse_name ("invalidated", TP_TYPE_PROXY, &_tmp20_, NULL, FALSE);
728
g_signal_handlers_disconnect_matched ((TpProxy*) channel, G_SIGNAL_MATCH_ID | G_SIGNAL_MATCH_FUNC | G_SIGNAL_MATCH_DATA, _tmp20_, 0, NULL, (GCallback) __tpf_persona_store_channel_invalidated_cb_tp_proxy_invalidated, self);
730
_g_object_unref0 (channel);
732
_g_object_unref0 (_channel_it);
712
735
_tmp21_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, TP_TYPE_CHANNEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
714
_g_object_unref0 (self->priv->_group_channels_unready);
715
self->priv->_group_channels_unready = _tmp22_;
716
_tmp23_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, TP_TYPE_CHANNEL, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL, NULL);
718
736
_g_object_unref0 (self->priv->_groups);
719
self->priv->_groups = _tmp24_;
720
_tmp25_ = gee_hash_set_new (G_TYPE_UINT, NULL, NULL, NULL, NULL);
737
self->priv->_groups = _tmp21_;
738
_tmp22_ = gee_hash_set_new (G_TYPE_UINT, NULL, NULL, NULL, NULL);
722
739
_g_object_unref0 (self->priv->_favourite_handles);
723
self->priv->_favourite_handles = _tmp26_;
724
_tmp27_ = folks_tp_lowlevel_new ();
740
self->priv->_favourite_handles = _tmp22_;
741
_tmp23_ = folks_tp_lowlevel_new ();
726
742
_g_object_unref0 (self->priv->_ll);
727
self->priv->_ll = _tmp28_;
743
self->priv->_ll = _tmp23_;
866
880
if (!data->self->priv->_is_prepared) {
867
881
data->_tmp0_ = NULL;
868
882
data->_tmp0_ = tp_account_manager_dup ();
869
data->_tmp1_ = data->_tmp0_;
870
883
_g_object_unref0 (data->self->priv->_account_manager);
871
data->self->priv->_account_manager = data->_tmp1_;
884
data->self->priv->_account_manager = data->_tmp0_;
872
885
g_signal_connect_object (data->self->priv->_account_manager, "account-disabled", (GCallback) __lambda2__tp_account_manager_account_disabled, data->self, 0);
873
886
g_signal_connect_object (data->self->priv->_account_manager, "account-removed", (GCallback) __lambda3__tp_account_manager_account_removed, data->self, 0);
874
887
g_signal_connect_object (data->self->priv->_account_manager, "account-validity-changed", (GCallback) __lambda4__tp_account_manager_account_validity_changed, data->self, 0);
875
888
g_signal_connect_object (data->self->priv->_account, "status-changed", (GCallback) __tpf_persona_store_account_status_changed_cb_tp_account_status_changed, data->self, 0);
876
data->_tmp3_ = tp_account_get_connection_status (data->self->priv->_account, &data->_tmp2_);
877
data->reason = data->_tmp2_;
878
data->status = data->_tmp3_;
889
data->_tmp2_ = tp_account_get_connection_status (data->self->priv->_account, &data->_tmp1_);
890
data->reason = data->_tmp1_;
891
data->status = data->_tmp2_;
879
892
if (data->status != TP_CONNECTION_STATUS_DISCONNECTED) {
880
893
_tpf_persona_store_account_status_changed_cb (data->self, (guint) TP_CONNECTION_STATUS_DISCONNECTED, (guint) data->status, (guint) data->reason, NULL, NULL);
896
data->_tmp3_ = folks_persona_store_get_id ((FolksPersonaStore*) data->self);
882
897
data->_tmp4_ = NULL;
883
data->_tmp4_ = folks_persona_store_get_id ((FolksPersonaStore*) data->self);
885
data->_tmp5_ = logger_new (data->_tmp4_, &data->_inner_error_);
886
data->_tmp6_ = data->_tmp5_;
898
data->_tmp4_ = logger_new (data->_tmp3_, &data->_inner_error_);
899
data->_tmp5_ = data->_tmp4_;
887
900
if (data->_inner_error_ != NULL) {
888
901
if (data->_inner_error_->domain == DBUS_GERROR) {
889
902
goto __catch2_dbus_gerror;
1394
1404
_g_object_unref0 (ll);
1395
1405
goto __catch8_g_error;
1398
1407
_g_ptr_array_unref0 (v);
1406
gconstpointer _tmp6_ = NULL;
1415
gconstpointer _tmp5_ = NULL;
1407
1416
GValueArray* class;
1408
GValue* _tmp7_ = NULL;
1417
GValue* _tmp6_ = NULL;
1415
_tmp5_ = g_ptr_array_get_length (v);
1416
if (!(i < _tmp5_)) {
1424
_tmp4_ = g_ptr_array_get_length (v);
1425
if (!(i < _tmp4_)) {
1419
_tmp6_ = g_ptr_array_index (v, (guint) i);
1420
class = (GValueArray*) _tmp6_;
1421
_tmp7_ = g_value_array_get_nth (class, (guint) 0);
1422
_tmp8_ = __g_value_dup0 (_tmp7_);
1428
_tmp5_ = g_ptr_array_index (v, (guint) i);
1429
class = (GValueArray*) _tmp5_;
1430
_tmp6_ = g_value_array_get_nth (class, (guint) 0);
1431
_tmp7_ = __g_value_dup0 (_tmp6_);
1424
1433
if (val != NULL) {
1425
void* _tmp9_ = NULL;
1426
GHashTable* _tmp10_;
1434
void* _tmp8_ = NULL;
1427
1436
GHashTable* props;
1428
const gchar* _tmp11_ = NULL;
1437
const gchar* _tmp10_ = NULL;
1430
1439
gchar* channel_type;
1431
1440
gboolean handle_type_valid = FALSE;
1434
1443
guint32 handle_type;
1444
gboolean _tmp14_ = FALSE;
1435
1445
gboolean _tmp15_ = FALSE;
1436
gboolean _tmp16_ = FALSE;
1437
_tmp9_ = g_value_get_boxed (val);
1438
_tmp10_ = _g_hash_table_ref0 ((GHashTable*) _tmp9_);
1440
_tmp11_ = tp_asv_get_string (props, tpf_persona_store__tp_channel_channel_type);
1441
_tmp12_ = g_strdup (_tmp11_);
1442
channel_type = _tmp12_;
1443
_tmp14_ = tp_asv_get_uint32 (props, tpf_persona_store__tp_channel_handle_type, &_tmp13_);
1444
handle_type_valid = _tmp13_;
1445
handle_type = _tmp14_;
1446
_tmp8_ = g_value_get_boxed (val);
1447
_tmp9_ = _g_hash_table_ref0 ((GHashTable*) _tmp8_);
1449
_tmp10_ = tp_asv_get_string (props, tpf_persona_store__tp_channel_channel_type);
1450
_tmp11_ = g_strdup (_tmp10_);
1451
channel_type = _tmp11_;
1452
_tmp13_ = tp_asv_get_uint32 (props, tpf_persona_store__tp_channel_handle_type, &_tmp12_);
1453
handle_type_valid = _tmp12_;
1454
handle_type = _tmp13_;
1446
1455
if (g_strcmp0 (channel_type, tpf_persona_store__tp_channel_contact_list_type) == 0) {
1447
_tmp16_ = handle_type_valid;
1452
_tmp15_ = handle_type == TP_HANDLE_TYPE_GROUP;
1456
_tmp15_ = handle_type_valid;
1454
1458
_tmp15_ = FALSE;
1461
_tmp14_ = handle_type == TP_HANDLE_TYPE_GROUP;
1457
1466
new_can_group = FOLKS_MAYBE_BOOL_TRUE;
1458
1467
_g_free0 (channel_type);
1459
1468
_g_hash_table_unref0 (props);
1814
1820
_tmp1_ = tp_channel_get_identifier (c);
1816
g_debug ("tpf-persona-store.vala:702: Channel '%s' is ready.", name);
1822
g_debug ("tpf-persona-store.vala:728: Channel '%s' is ready.", name);
1817
1823
if (g_strcmp0 (name, "publish") == 0) {
1818
1824
TpChannel* _tmp2_;
1820
1825
_tmp2_ = _g_object_ref0 (c);
1822
1826
_g_object_unref0 (self->priv->_publish);
1823
self->priv->_publish = _tmp3_;
1827
self->priv->_publish = _tmp2_;
1824
1828
g_signal_connect_object (c, "group-members-changed-detailed", (GCallback) __tpf_persona_store_publish_channel_group_members_changed_detailed_cb_tp_channel_group_members_changed_detailed, self, 0);
1826
1830
if (g_strcmp0 (name, "stored") == 0) {
1829
_tmp4_ = _g_object_ref0 (c);
1832
_tmp3_ = _g_object_ref0 (c);
1831
1833
_g_object_unref0 (self->priv->_stored);
1832
self->priv->_stored = _tmp5_;
1834
self->priv->_stored = _tmp3_;
1833
1835
g_signal_connect_object (c, "group-members-changed-detailed", (GCallback) __tpf_persona_store_stored_channel_group_members_changed_detailed_cb_tp_channel_group_members_changed_detailed, self, 0);
1835
1837
if (g_strcmp0 (name, "subscribe") == 0) {
1838
TpChannelGroupFlags _tmp8_;
1839
_tmp6_ = _g_object_ref0 (c);
1839
TpChannelGroupFlags _tmp5_;
1840
_tmp4_ = _g_object_ref0 (c);
1841
1841
_g_object_unref0 (self->priv->_subscribe);
1842
self->priv->_subscribe = _tmp7_;
1842
self->priv->_subscribe = _tmp4_;
1843
1843
g_signal_connect_object (c, "group-members-changed-detailed", (GCallback) __tpf_persona_store_subscribe_channel_group_members_changed_detailed_cb_tp_channel_group_members_changed_detailed, self, 0);
1844
1844
g_signal_connect_object (c, "group-flags-changed", (GCallback) __tpf_persona_store_subscribe_channel_group_flags_changed_cb_tp_channel_group_flags_changed, self, 0);
1845
_tmp8_ = tp_channel_group_get_flags (c);
1846
_tpf_persona_store_subscribe_channel_group_flags_changed_cb (self, c, (guint) _tmp8_, (guint) 0);
1845
_tmp5_ = tp_channel_group_get_flags (c);
1846
_tpf_persona_store_subscribe_channel_group_flags_changed_cb (self, c, (guint) _tmp5_, (guint) 0);
1850
1850
gee_abstract_map_unset ((GeeAbstractMap*) self->priv->_standard_channels_unready, name, NULL);
1851
1851
g_signal_connect_object ((TpProxy*) c, "invalidated", (GCallback) __tpf_persona_store_channel_invalidated_cb_tp_proxy_invalidated, self, 0);
1852
_tmp9_ = tp_channel_group_get_members (c);
1852
_tmp6_ = tp_channel_group_get_members (c);
1854
1854
if (members != NULL) {
1855
GArray* _tmp10_ = NULL;
1857
_tmp10_ = tp_intset_to_array (members);
1859
_tpf_persona_store_channel_group_pend_incoming_adds (self, c, _tmp11_, TRUE, NULL, NULL);
1860
_g_array_unref0 (_tmp11_);
1855
GArray* _tmp7_ = NULL;
1857
_tmp7_ = tp_intset_to_array (members);
1859
_tpf_persona_store_channel_group_pend_incoming_adds (self, c, _tmp8_, TRUE, NULL, NULL);
1860
_g_array_unref0 (_tmp8_);
1862
1862
_g_object_unref0 (c);
3261
3252
TpfPersona* persona;
3262
3253
const gchar* _tmp1_ = NULL;
3263
3254
gpointer _tmp2_ = NULL;
3265
3255
g_return_val_if_fail (self != NULL, NULL);
3266
3256
g_return_val_if_fail (contact != NULL, NULL);
3267
3257
_tmp0_ = tp_contact_get_handle (contact);
3269
3259
persona = NULL;
3270
3260
_tmp1_ = tp_contact_get_identifier (contact);
3271
g_debug ("tpf-persona-store.vala:1320: Adding persona from contact '%s'", _tmp1_);
3261
g_debug ("tpf-persona-store.vala:1346: Adding persona from contact '%s'", _tmp1_);
3272
3262
_tmp2_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_handle_persona_map, GUINT_TO_POINTER ((guint) h));
3273
_tmp3_ = (TpfPersona*) _tmp2_;
3274
3263
_g_object_unref0 (persona);
3264
persona = (TpfPersona*) _tmp2_;
3276
3265
if (persona == NULL) {
3277
TpfPersona* _tmp4_ = NULL;
3279
const gchar* _tmp6_ = NULL;
3283
_tmp4_ = tpf_persona_new (contact, self);
3266
TpfPersona* _tmp3_ = NULL;
3267
const gchar* _tmp4_ = NULL;
3271
_tmp3_ = tpf_persona_new (contact, self);
3285
3272
_g_object_unref0 (persona);
3287
_tmp6_ = folks_persona_get_iid ((FolksPersona*) persona);
3288
_tmp7_ = g_strdup (_tmp6_);
3289
_tmp8_ = _g_object_ref0 (persona);
3290
g_hash_table_insert (self->priv->_personas, _tmp7_, _tmp8_);
3274
_tmp4_ = folks_persona_get_iid ((FolksPersona*) persona);
3275
_tmp5_ = g_strdup (_tmp4_);
3276
_tmp6_ = _g_object_ref0 (persona);
3277
g_hash_table_insert (self->priv->_personas, _tmp5_, _tmp6_);
3291
3278
gee_abstract_map_set ((GeeAbstractMap*) self->priv->_handle_persona_map, GUINT_TO_POINTER ((guint) h), persona);
3292
_tmp9_ = gee_abstract_collection_contains ((GeeAbstractCollection*) self->priv->_favourite_handles, GUINT_TO_POINTER ((guint) h));
3293
folks_favourite_details_set_is_favourite ((FolksFavouriteDetails*) persona, _tmp9_);
3279
_tmp7_ = gee_abstract_collection_contains ((GeeAbstractCollection*) self->priv->_favourite_handles, GUINT_TO_POINTER ((guint) h));
3280
folks_favourite_details_set_is_favourite ((FolksFavouriteDetails*) persona, _tmp7_);
3294
3281
if (from_contact_list == FALSE) {
3295
g_debug ("tpf-persona-store.vala:1340: Setting is-in-contact-list to false");
3282
g_debug ("tpf-persona-store.vala:1366: Setting is-in-contact-list to false");
3297
3284
tpf_persona_set_is_in_contact_list (persona, from_contact_list);
3298
3285
result = persona;
3301
gboolean _tmp10_ = FALSE;
3303
g_debug ("tpf-persona-store.vala:1349: ...already exists.");
3304
_tmp11_ = tpf_persona_get_is_in_contact_list (persona);
3305
if (_tmp11_ == FALSE) {
3306
_tmp10_ = from_contact_list == TRUE;
3288
gboolean _tmp8_ = FALSE;
3290
g_debug ("tpf-persona-store.vala:1375: ...already exists.");
3291
_tmp9_ = tpf_persona_get_is_in_contact_list (persona);
3292
if (_tmp9_ == FALSE) {
3293
_tmp8_ = from_contact_list == TRUE;
3311
g_debug ("tpf-persona-store.vala:1359: Setting is-in-contact-list to true");
3298
g_debug ("tpf-persona-store.vala:1385: Setting is-in-contact-list to true");
3312
3299
tpf_persona_set_is_in_contact_list (persona, TRUE);
3404
3393
members = (GeeHashSet*) _tmp8_;
3405
3394
if (members == NULL) {
3406
3395
GeeHashSet* _tmp9_ = NULL;
3407
GeeHashSet* _tmp10_;
3408
3396
_tmp9_ = gee_hash_set_new (TPF_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL);
3410
3397
_g_object_unref0 (members);
3413
_tmp11_ = tp_channel_get_identifier (channel);
3414
g_debug ("tpf-persona-store.vala:1394: Adding members to channel '%s':", _tmp11_);
3415
_tmp12_ = gee_map_entry_get_value (entry);
3416
_tmp13_ = _g_object_ref0 ((GeeHashSet*) _tmp12_);
3417
contact_handles = _tmp13_;
3400
_tmp10_ = tp_channel_get_identifier (channel);
3401
g_debug ("tpf-persona-store.vala:1420: Adding members to channel '%s':", _tmp10_);
3402
_tmp11_ = gee_map_entry_get_value (entry);
3403
_tmp12_ = _g_object_ref0 ((GeeHashSet*) _tmp11_);
3404
contact_handles = _tmp12_;
3418
3405
if (contact_handles != NULL) {
3420
_tmp15_ = gee_collection_get_size ((GeeCollection*) contact_handles);
3421
_tmp14_ = _tmp15_ > 0;
3407
_tmp14_ = gee_collection_get_size ((GeeCollection*) contact_handles);
3408
_tmp13_ = _tmp14_ > 0;
3426
GeeHashSet* _tmp16_ = NULL;
3413
GeeHashSet* _tmp15_ = NULL;
3427
3414
GeeHashSet* contact_handles_added;
3428
_tmp16_ = gee_hash_set_new (G_TYPE_UINT, NULL, NULL, NULL, NULL);
3429
contact_handles_added = _tmp16_;
3415
_tmp15_ = gee_hash_set_new (G_TYPE_UINT, NULL, NULL, NULL, NULL);
3416
contact_handles_added = _tmp15_;
3431
GeeIterator* _tmp17_ = NULL;
3418
GeeIterator* _tmp16_ = NULL;
3432
3419
GeeIterator* _contact_handle_it;
3433
_tmp17_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) contact_handles);
3434
_contact_handle_it = _tmp17_;
3420
_tmp16_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) contact_handles);
3421
_contact_handle_it = _tmp16_;
3424
gpointer _tmp18_ = NULL;
3425
guint contact_handle;
3437
3426
gpointer _tmp19_ = NULL;
3438
guint contact_handle;
3439
gpointer _tmp20_ = NULL;
3440
3427
TpfPersona* persona;
3441
_tmp18_ = gee_iterator_next (_contact_handle_it);
3428
_tmp17_ = gee_iterator_next (_contact_handle_it);
3445
_tmp19_ = gee_iterator_get (_contact_handle_it);
3446
contact_handle = GPOINTER_TO_UINT (_tmp19_);
3447
_tmp20_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_handle_persona_map, GUINT_TO_POINTER (contact_handle));
3448
persona = (TpfPersona*) _tmp20_;
3432
_tmp18_ = gee_iterator_get (_contact_handle_it);
3433
contact_handle = GPOINTER_TO_UINT (_tmp18_);
3434
_tmp19_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_handle_persona_map, GUINT_TO_POINTER (contact_handle));
3435
persona = (TpfPersona*) _tmp19_;
3449
3436
if (persona != NULL) {
3450
const gchar* _tmp21_ = NULL;
3451
TpfPersona* _tmp22_;
3452
_tmp21_ = folks_persona_get_uid ((FolksPersona*) persona);
3453
g_debug ("tpf-persona-store.vala:1405: %s", _tmp21_);
3437
const gchar* _tmp20_ = NULL;
3438
TpfPersona* _tmp21_;
3439
_tmp20_ = folks_persona_get_uid ((FolksPersona*) persona);
3440
g_debug ("tpf-persona-store.vala:1431: %s", _tmp20_);
3454
3441
gee_abstract_collection_add ((GeeAbstractCollection*) members, persona);
3455
_tmp22_ = _g_object_ref0 (persona);
3456
members_added = g_list_prepend (members_added, _tmp22_);
3442
_tmp21_ = _g_object_ref0 (persona);
3443
members_added = g_list_prepend (members_added, _tmp21_);
3457
3444
gee_abstract_collection_add ((GeeAbstractCollection*) contact_handles_added, GUINT_TO_POINTER (contact_handle));
3459
3446
_g_object_unref0 (persona);
3461
3448
_g_object_unref0 (_contact_handle_it);
3464
GeeIterator* _tmp23_ = NULL;
3451
GeeIterator* _tmp22_ = NULL;
3465
3452
GeeIterator* _handle_it;
3466
_tmp23_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) contact_handles_added);
3467
_handle_it = _tmp23_;
3453
_tmp22_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) contact_handles_added);
3454
_handle_it = _tmp22_;
3470
gpointer _tmp25_ = NULL;
3457
gpointer _tmp24_ = NULL;
3472
_tmp24_ = gee_iterator_next (_handle_it);
3459
_tmp23_ = gee_iterator_next (_handle_it);
3476
_tmp25_ = gee_iterator_get (_handle_it);
3477
handle = GPOINTER_TO_UINT (_tmp25_);
3463
_tmp24_ = gee_iterator_get (_handle_it);
3464
handle = GPOINTER_TO_UINT (_tmp24_);
3478
3465
gee_abstract_collection_remove ((GeeAbstractCollection*) contact_handles, GUINT_TO_POINTER (handle));
3480
3467
_g_object_unref0 (_handle_it);
3482
3469
_g_object_unref0 (contact_handles_added);
3484
_tmp26_ = gee_collection_get_size ((GeeCollection*) members);
3471
_tmp25_ = gee_collection_get_size ((GeeCollection*) members);
3486
3473
gee_abstract_map_set ((GeeAbstractMap*) self->priv->_channel_group_personas_map, channel, members);
3488
_tmp27_ = tp_channel_get_identifier (channel);
3489
_tmp28_ = g_strdup (_tmp27_);
3491
_tmp30_ = _tpf_persona_store_group_is_display_group (self, name);
3494
_tmp31_ = g_list_length (members_added);
3495
_tmp29_ = _tmp31_ > 0;
3475
_tmp26_ = tp_channel_get_identifier (channel);
3476
_tmp27_ = g_strdup (_tmp26_);
3478
_tmp29_ = _tpf_persona_store_group_is_display_group (self, name);
3481
_tmp30_ = g_list_length (members_added);
3482
_tmp28_ = _tmp30_ > 0;
3500
3487
members_added = g_list_reverse (members_added);
3501
3488
g_signal_emit_by_name (self, "group-members-changed", name, members_added, NULL);
4192
4179
g_signal_new ("group_removed", TPF_TYPE_PERSONA_STORE, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_user_marshal_VOID__STRING_POINTER, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_POINTER);
4193
4180
_tmp0_ = g_strdup ("org.freedesktop.Telepathy.Channel");
4194
4181
tpf_persona_store__tp_channel_iface = _tmp0_;
4195
tpf_persona_store__tp_channel_contact_list_type = g_strconcat (tpf_persona_store__tp_channel_iface, ".Type.ContactList", NULL);
4196
tpf_persona_store__tp_channel_channel_type = g_strconcat (tpf_persona_store__tp_channel_iface, ".ChannelType", NULL);
4197
tpf_persona_store__tp_channel_handle_type = g_strconcat (tpf_persona_store__tp_channel_iface, ".TargetHandleType", NULL);
4198
_tmp1_ = g_strdup ("publish");
4199
_tmp2_ = g_strdup ("stored");
4200
_tmp3_ = g_strdup ("subscribe");
4201
_tmp4_ = g_new0 (gchar*, 3 + 1);
4205
tpf_persona_store__undisplayed_groups = _tmp4_;
4182
_tmp1_ = g_strconcat (tpf_persona_store__tp_channel_iface, ".Type.ContactList", NULL);
4183
tpf_persona_store__tp_channel_contact_list_type = _tmp1_;
4184
_tmp2_ = g_strconcat (tpf_persona_store__tp_channel_iface, ".ChannelType", NULL);
4185
tpf_persona_store__tp_channel_channel_type = _tmp2_;
4186
_tmp3_ = g_strconcat (tpf_persona_store__tp_channel_iface, ".TargetHandleType", NULL);
4187
tpf_persona_store__tp_channel_handle_type = _tmp3_;
4188
_tmp4_ = g_strdup ("publish");
4189
_tmp5_ = g_strdup ("stored");
4190
_tmp6_ = g_strdup ("subscribe");
4191
_tmp7_ = g_new0 (gchar*, 3 + 1);
4195
tpf_persona_store__undisplayed_groups = _tmp7_;
4206
4196
tpf_persona_store__undisplayed_groups_length1 = 3;
4207
_tmp5_ = g_new0 (TpContactFeature, 6);
4208
_tmp5_[0] = TP_CONTACT_FEATURE_ALIAS;
4209
_tmp5_[1] = TP_CONTACT_FEATURE_AVATAR_DATA;
4210
_tmp5_[2] = TP_CONTACT_FEATURE_AVATAR_TOKEN;
4211
_tmp5_[3] = TP_CONTACT_FEATURE_CAPABILITIES;
4212
_tmp5_[4] = TP_CONTACT_FEATURE_CLIENT_TYPES;
4213
_tmp5_[5] = TP_CONTACT_FEATURE_PRESENCE;
4214
tpf_persona_store__contact_features = _tmp5_;
4197
_tmp8_ = g_new0 (TpContactFeature, 6);
4198
_tmp8_[0] = TP_CONTACT_FEATURE_ALIAS;
4199
_tmp8_[1] = TP_CONTACT_FEATURE_AVATAR_DATA;
4200
_tmp8_[2] = TP_CONTACT_FEATURE_AVATAR_TOKEN;
4201
_tmp8_[3] = TP_CONTACT_FEATURE_CAPABILITIES;
4202
_tmp8_[4] = TP_CONTACT_FEATURE_CLIENT_TYPES;
4203
_tmp8_[5] = TP_CONTACT_FEATURE_PRESENCE;
4204
tpf_persona_store__contact_features = _tmp8_;
4215
4205
tpf_persona_store__contact_features_length1 = 6;