~ken-vandine/ubuntu/precise/folks/precise

« back to all changes in this revision

Viewing changes to backends/telepathy/lib/tpf-persona-store.c

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-03-18 16:49:27 UTC
  • mfrom: (1.2.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110318164927-ho97ckhsq73glhm4
Tags: 0.4.1-0ubuntu1
* New upstream release
  - Fixed crasher when reconnecting a Telepathy account

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* tpf-persona-store.c generated by valac 0.11.6, the Vala compiler
 
1
/* tpf-persona-store.c generated by valac 0.11.7, the Vala compiler
2
2
 * generated from tpf-persona-store.vala, do not modify */
3
3
 
4
4
/*
131
131
        GSimpleAsyncResult* _async_result;
132
132
        TpfPersonaStore* self;
133
133
        TpAccountManager* _tmp0_;
134
 
        TpAccountManager* _tmp1_;
135
134
        TpConnectionStatusReason reason;
136
 
        TpConnectionStatusReason _tmp2_;
137
 
        TpConnectionStatus _tmp3_;
 
135
        TpConnectionStatusReason _tmp1_;
 
136
        TpConnectionStatus _tmp2_;
138
137
        TpConnectionStatus status;
139
 
        const gchar* _tmp4_;
 
138
        const gchar* _tmp3_;
 
139
        Logger* _tmp4_;
140
140
        Logger* _tmp5_;
141
 
        Logger* _tmp6_;
142
 
        Logger* _tmp7_;
143
141
        GError * e;
144
 
        const gchar* _tmp8_;
145
 
        Logger* _tmp9_;
 
142
        const gchar* _tmp6_;
146
143
        GError * _inner_error_;
147
144
};
148
145
 
219
216
        gpointer _tmp5_;
220
217
        GeeHashSet* contact_handles;
221
218
        GeeHashSet* _tmp6_;
222
 
        GeeHashSet* _tmp7_;
223
219
};
224
220
 
225
221
struct _TpfPersonaStoreChangeGroupMembershipData {
241
237
        gpointer _tmp4_;
242
238
        GeeHashSet* change_set;
243
239
        GeeHashSet* _tmp5_;
244
 
        GeeHashSet* _tmp6_;
245
 
        TpConnection* _tmp7_;
 
240
        TpConnection* _tmp6_;
246
241
};
247
242
 
248
243
struct _TpfPersonaStoreAddStandardChannelData {
258
253
        TpChannel* _tmp0_;
259
254
        TpChannel* _tmp1_;
260
255
        TpChannel* _tmp2_;
261
 
        TpChannel* _tmp3_;
262
256
        GError * e;
263
257
        GError * _inner_error_;
264
258
};
350
344
        const gchar* _tmp6_;
351
345
        gchar* _tmp7_;
352
346
        gchar* add_message;
353
 
        gchar* _tmp8_;
354
 
        TpConnectionStatus _tmp9_;
 
347
        TpConnectionStatus _tmp8_;
355
348
        TpConnectionStatus status;
 
349
        gboolean _tmp9_;
356
350
        gboolean _tmp10_;
357
 
        gboolean _tmp11_;
358
 
        const gchar* _tmp12_;
359
 
        GError* _tmp13_;
360
 
        gchar** _tmp14_;
 
351
        const gchar* _tmp11_;
 
352
        GError* _tmp12_;
 
353
        gchar** _tmp13_;
361
354
        gchar** contact_ids;
362
355
        gint contact_ids_length1;
363
356
        gint _contact_ids_size_;
 
357
        gchar* _tmp14_;
364
358
        gchar* _tmp15_;
365
 
        gchar* _tmp16_;
366
 
        GList* _tmp17_;
 
359
        GList* _tmp16_;
367
360
        GList* personas;
368
 
        guint _tmp18_;
369
 
        TpfPersona* _tmp19_;
 
361
        guint _tmp17_;
 
362
        TpfPersona* _tmp18_;
370
363
        TpfPersona* persona;
371
 
        TpChannelGroupFlags _tmp20_;
 
364
        TpChannelGroupFlags _tmp19_;
372
365
        TpChannelGroupFlags flags;
373
 
        guint _tmp21_;
 
366
        guint _tmp20_;
374
367
        guint num_personas;
375
 
        const gchar* _tmp22_;
376
 
        gchar* _tmp23_;
 
368
        const gchar* _tmp21_;
 
369
        gchar* _tmp22_;
377
370
        gchar* message;
378
 
        GError* _tmp24_;
 
371
        GError* _tmp23_;
379
372
        GError * e;
380
 
        const gchar* _tmp25_;
381
 
        GError* _tmp26_;
 
373
        const gchar* _tmp24_;
 
374
        GError* _tmp25_;
382
375
        GError * _inner_error_;
383
376
};
384
377
 
455
448
TpAccount* tpf_persona_store_get_account (TpfPersonaStore* self);
456
449
static void _g_free0_ (gpointer var);
457
450
static void _g_object_unref0_ (gpointer var);
 
451
static void _tpf_persona_store_channel_invalidated_cb (TpfPersonaStore* self, TpProxy* proxy, guint domain, gint code, const gchar* message);
 
452
static void __tpf_persona_store_channel_invalidated_cb_tp_proxy_invalidated (TpProxy* _sender, guint domain, gint code, const gchar* message, gpointer self);
458
453
static void tpf_persona_store_real_prepare_data_free (gpointer _data);
459
454
static void tpf_persona_store_real_prepare (FolksPersonaStore* base, GAsyncReadyCallback _callback_, gpointer _user_data_);
460
455
static gboolean tpf_persona_store_real_prepare_co (TpfPersonaStorePrepareData* data);
518
513
static void __tpf_persona_store_subscribe_channel_group_members_changed_detailed_cb_tp_channel_group_members_changed_detailed (TpChannel* _sender, GArray* added, GArray* removed, GArray* local_pending, GArray* remote_pending, GHashTable* details, gpointer self);
519
514
static void _tpf_persona_store_subscribe_channel_group_flags_changed_cb (TpfPersonaStore* self, TpChannel* channel, guint added, guint removed);
520
515
static void __tpf_persona_store_subscribe_channel_group_flags_changed_cb_tp_channel_group_flags_changed (TpChannel* _sender, guint added, guint removed, gpointer self);
521
 
static void _tpf_persona_store_channel_invalidated_cb (TpfPersonaStore* self, TpProxy* proxy, guint domain, gint code, const gchar* message);
522
 
static void __tpf_persona_store_channel_invalidated_cb_tp_proxy_invalidated (TpProxy* _sender, guint domain, gint code, const gchar* message, gpointer self);
523
516
static void _tpf_persona_store_channel_group_pend_incoming_adds (TpfPersonaStore* self, TpChannel* channel, GArray* adds, gboolean create_personas, GAsyncReadyCallback _callback_, gpointer _user_data_);
524
517
static void _tpf_persona_store_channel_group_pend_incoming_adds_finish (TpfPersonaStore* self, GAsyncResult* _res_);
525
518
static void __lambda8__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self);
626
619
}
627
620
 
628
621
 
 
622
static void __tpf_persona_store_channel_invalidated_cb_tp_proxy_invalidated (TpProxy* _sender, guint domain, gint code, const gchar* message, gpointer self) {
 
623
        _tpf_persona_store_channel_invalidated_cb (self, _sender, domain, code, message);
 
624
}
 
625
 
 
626
 
629
627
static void _tpf_persona_store_reset (TpfPersonaStore* self) {
630
628
        gboolean _tmp0_ = FALSE;
631
629
        const gchar* _tmp1_ = NULL;
632
630
        GHashTable* _tmp3_ = NULL;
633
 
        GHashTable* _tmp4_;
634
 
        TpConnection* _tmp5_;
 
631
        GeeHashMap* _tmp4_ = NULL;
 
632
        GeeHashMap* _tmp5_ = NULL;
635
633
        GeeHashMap* _tmp6_ = NULL;
636
 
        GeeHashMap* _tmp7_;
 
634
        GeeHashMap* _tmp7_ = NULL;
637
635
        GeeHashMap* _tmp8_ = NULL;
638
 
        GeeHashMap* _tmp9_;
639
 
        GeeHashMap* _tmp10_ = NULL;
640
 
        GeeHashMap* _tmp11_;
641
636
        GeeHashMap* _tmp12_ = NULL;
642
 
        GeeHashMap* _tmp13_;
643
 
        GeeHashMap* _tmp14_ = NULL;
644
 
        GeeHashMap* _tmp15_;
645
 
        TpChannel* _tmp16_;
646
 
        TpChannel* _tmp17_;
647
 
        TpChannel* _tmp18_;
648
 
        GeeHashMap* _tmp19_ = NULL;
649
 
        GeeHashMap* _tmp20_;
 
637
        GeeHashMap* _tmp13_ = NULL;
650
638
        GeeHashMap* _tmp21_ = NULL;
651
 
        GeeHashMap* _tmp22_;
652
 
        GeeHashMap* _tmp23_ = NULL;
653
 
        GeeHashMap* _tmp24_;
654
 
        GeeHashSet* _tmp25_ = NULL;
655
 
        GeeHashSet* _tmp26_;
656
 
        FolksTpLowlevel* _tmp27_ = NULL;
657
 
        FolksTpLowlevel* _tmp28_;
 
639
        GeeHashSet* _tmp22_ = NULL;
 
640
        FolksTpLowlevel* _tmp23_ = NULL;
658
641
        g_return_if_fail (self != NULL);
659
642
        _tmp1_ = tp_account_get_protocol (self->priv->_account);
660
643
        if (g_strcmp0 (_tmp1_, "local-xmpp") == 0) {
670
653
                folks_persona_store_set_trust_level ((FolksPersonaStore*) self, FOLKS_PERSONA_STORE_TRUST_PARTIAL);
671
654
        }
672
655
        _tmp3_ = g_hash_table_new_full (g_str_hash, g_str_equal, _g_free0_, _g_object_unref0_);
673
 
        _tmp4_ = _tmp3_;
674
656
        _g_hash_table_unref0 (self->priv->_personas);
675
 
        self->priv->_personas = _tmp4_;
676
 
        _tmp5_ = NULL;
 
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);
680
 
        _tmp7_ = _tmp6_;
 
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);
684
 
        _tmp9_ = _tmp8_;
 
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);
688
 
        _tmp11_ = _tmp10_;
 
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);
692
 
        _tmp13_ = _tmp12_;
 
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);
696
 
        _tmp15_ = _tmp14_;
 
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_;
699
 
        _tmp16_ = NULL;
700
 
        _g_object_unref0 (self->priv->_publish);
701
 
        self->priv->_publish = _tmp16_;
702
 
        _tmp17_ = NULL;
703
 
        _g_object_unref0 (self->priv->_stored);
704
 
        self->priv->_stored = _tmp17_;
705
 
        _tmp18_ = NULL;
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);
709
 
        _tmp20_ = _tmp19_;
 
674
        self->priv->_group_outgoing_removes = _tmp8_;
 
675
        if (self->priv->_publish != NULL) {
 
676
                guint _tmp9_;
 
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;
 
681
        }
 
682
        if (self->priv->_stored != NULL) {
 
683
                guint _tmp10_;
 
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;
 
688
        }
 
689
        if (self->priv->_subscribe != NULL) {
 
690
                guint _tmp11_;
 
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;
 
695
        }
 
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) {
 
703
                {
 
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);
 
710
                        _tmp15_ = _tmp14_;
 
711
                        _tmp16_ = gee_iterable_iterator ((GeeIterable*) _tmp15_);
 
712
                        _tmp17_ = _tmp16_;
 
713
                        _g_object_unref0 (_tmp15_);
 
714
                        _channel_it = _tmp17_;
 
715
                        while (TRUE) {
 
716
                                gboolean _tmp18_;
 
717
                                gpointer _tmp19_ = NULL;
 
718
                                TpChannel* channel;
 
719
                                _tmp18_ = gee_iterator_next (_channel_it);
 
720
                                if (!_tmp18_) {
 
721
                                        break;
 
722
                                }
 
723
                                _tmp19_ = gee_iterator_get (_channel_it);
 
724
                                channel = (TpChannel*) _tmp19_;
 
725
                                if (channel != NULL) {
 
726
                                        guint _tmp20_;
 
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);
 
729
                                }
 
730
                                _g_object_unref0 (channel);
 
731
                        }
 
732
                        _g_object_unref0 (_channel_it);
 
733
                }
 
734
        }
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);
713
 
        _tmp22_ = _tmp21_;
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);
717
 
        _tmp24_ = _tmp23_;
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);
721
 
        _tmp26_ = _tmp25_;
 
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 ();
725
 
        _tmp28_ = _tmp27_;
 
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_;
728
744
}
729
745
 
730
746
 
834
850
 
835
851
static void _lambda11_ (TpfPersonaStore* self) {
836
852
        const gchar* _tmp0_ = NULL;
837
 
        Logger* _tmp1_;
838
853
        _tmp0_ = _ ("Lost connection to the telepathy-logger service.");
839
 
        g_warning ("tpf-persona-store.vala:286: %s", _tmp0_);
840
 
        _tmp1_ = NULL;
 
854
        g_warning ("tpf-persona-store.vala:312: %s", _tmp0_);
841
855
        _g_object_unref0 (self->priv->_logger);
842
 
        self->priv->_logger = _tmp1_;
 
856
        self->priv->_logger = NULL;
843
857
}
844
858
 
845
859
 
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);
881
894
                        }
 
895
                        data->_tmp3_ = 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);
884
 
                        data->_tmp5_ = NULL;
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;
893
906
                                g_clear_error (&data->_inner_error_);
894
907
                                return FALSE;
895
908
                        }
896
 
                        data->_tmp7_ = data->_tmp6_;
897
909
                        _g_object_unref0 (data->self->priv->_logger);
898
 
                        data->self->priv->_logger = data->_tmp7_;
 
910
                        data->self->priv->_logger = data->_tmp5_;
899
911
                        g_signal_connect_object (data->self->priv->_logger, "invalidated", (GCallback) __lambda11__logger_invalidated, data->self, 0);
900
912
                        g_signal_connect_object (data->self->priv->_logger, "favourite-contacts-changed", (GCallback) __tpf_persona_store_favourite_contacts_changed_cb_logger_favourite_contacts_changed, data->self, 0);
901
913
                        goto __finally2;
903
915
                        {
904
916
                                data->e = data->_inner_error_;
905
917
                                data->_inner_error_ = NULL;
906
 
                                data->_tmp8_ = NULL;
907
 
                                data->_tmp8_ = _ ("Couldn't connect to the telepathy-logger service.");
908
 
                                g_warning ("tpf-persona-store.vala:295: %s", data->_tmp8_);
909
 
                                data->_tmp9_ = NULL;
 
918
                                data->_tmp6_ = NULL;
 
919
                                data->_tmp6_ = _ ("Couldn't connect to the telepathy-logger service.");
 
920
                                g_warning ("tpf-persona-store.vala:321: %s", data->_tmp6_);
910
921
                                _g_object_unref0 (data->self->priv->_logger);
911
 
                                data->self->priv->_logger = data->_tmp9_;
 
922
                                data->self->priv->_logger = NULL;
912
923
                                _g_error_free0 (data->e);
913
924
                        }
914
925
                        __finally2:
1257
1268
        gboolean connection_ready;
1258
1269
        g_return_if_fail (self != NULL);
1259
1270
        _tmp0_ = folks_persona_store_get_id ((FolksPersonaStore*) self);
1260
 
        g_debug ("tpf-persona-store.vala:448: Account '%s' changed status from %u to %u.", _tmp0_, old_status, new_status);
 
1271
        g_debug ("tpf-persona-store.vala:474: Account '%s' changed status from %u to %u.", _tmp0_, old_status, new_status);
1261
1272
        if (new_status == TP_CONNECTION_STATUS_DISCONNECTED) {
1262
1273
                GList* _tmp1_ = NULL;
1263
1274
                GList* _tmp2_;
1381
1392
        gint i = 0;
1382
1393
        GPtrArray* _tmp1_ = NULL;
1383
1394
        GPtrArray* _tmp2_;
1384
 
        GPtrArray* _tmp3_;
1385
1395
        GError * _inner_error_ = NULL;
1386
1396
        g_return_if_fail (res3 != NULL);
1387
1397
        new_can_group = FOLKS_MAYBE_BOOL_FALSE;
1394
1404
                _g_object_unref0 (ll);
1395
1405
                goto __catch8_g_error;
1396
1406
        }
1397
 
        _tmp3_ = _tmp2_;
1398
1407
        _g_ptr_array_unref0 (v);
1399
 
        v = _tmp3_;
 
1408
        v = _tmp2_;
1400
1409
        {
1401
 
                gboolean _tmp4_;
 
1410
                gboolean _tmp3_;
1402
1411
                i = 0;
1403
 
                _tmp4_ = TRUE;
 
1412
                _tmp3_ = TRUE;
1404
1413
                while (TRUE) {
1405
 
                        gint _tmp5_;
1406
 
                        gconstpointer _tmp6_ = NULL;
 
1414
                        gint _tmp4_;
 
1415
                        gconstpointer _tmp5_ = NULL;
1407
1416
                        GValueArray* class;
1408
 
                        GValue* _tmp7_ = NULL;
1409
 
                        GValue* _tmp8_;
 
1417
                        GValue* _tmp6_ = NULL;
 
1418
                        GValue* _tmp7_;
1410
1419
                        GValue* val;
1411
 
                        if (!_tmp4_) {
 
1420
                        if (!_tmp3_) {
1412
1421
                                i++;
1413
1422
                        }
1414
 
                        _tmp4_ = FALSE;
1415
 
                        _tmp5_ = g_ptr_array_get_length (v);
1416
 
                        if (!(i < _tmp5_)) {
 
1423
                        _tmp3_ = FALSE;
 
1424
                        _tmp4_ = g_ptr_array_get_length (v);
 
1425
                        if (!(i < _tmp4_)) {
1417
1426
                                break;
1418
1427
                        }
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_);
1423
 
                        val = _tmp8_;
 
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_);
 
1432
                        val = _tmp7_;
1424
1433
                        if (val != NULL) {
1425
 
                                void* _tmp9_ = NULL;
1426
 
                                GHashTable* _tmp10_;
 
1434
                                void* _tmp8_ = NULL;
 
1435
                                GHashTable* _tmp9_;
1427
1436
                                GHashTable* props;
1428
 
                                const gchar* _tmp11_ = NULL;
1429
 
                                gchar* _tmp12_;
 
1437
                                const gchar* _tmp10_ = NULL;
 
1438
                                gchar* _tmp11_;
1430
1439
                                gchar* channel_type;
1431
1440
                                gboolean handle_type_valid = FALSE;
1432
 
                                gboolean _tmp13_;
1433
 
                                guint32 _tmp14_;
 
1441
                                gboolean _tmp12_;
 
1442
                                guint32 _tmp13_;
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_);
1439
 
                                props = _tmp10_;
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_);
 
1448
                                props = _tmp9_;
 
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;
1448
 
                                } else {
1449
 
                                        _tmp16_ = FALSE;
1450
 
                                }
1451
 
                                if (_tmp16_) {
1452
 
                                        _tmp15_ = handle_type == TP_HANDLE_TYPE_GROUP;
 
1456
                                        _tmp15_ = handle_type_valid;
1453
1457
                                } else {
1454
1458
                                        _tmp15_ = FALSE;
1455
1459
                                }
1456
1460
                                if (_tmp15_) {
 
1461
                                        _tmp14_ = handle_type == TP_HANDLE_TYPE_GROUP;
 
1462
                                } else {
 
1463
                                        _tmp14_ = FALSE;
 
1464
                                }
 
1465
                                if (_tmp14_) {
1457
1466
                                        new_can_group = FOLKS_MAYBE_BOOL_TRUE;
1458
1467
                                        _g_free0 (channel_type);
1459
1468
                                        _g_hash_table_unref0 (props);
1472
1481
        __catch8_g_error:
1473
1482
        {
1474
1483
                GError * e3;
 
1484
                const gchar* _tmp16_ = NULL;
1475
1485
                const gchar* _tmp17_ = NULL;
1476
 
                const gchar* _tmp18_ = NULL;
1477
1486
                e3 = _inner_error_;
1478
1487
                _inner_error_ = NULL;
1479
 
                _tmp17_ = _ ("Failed to determine whether we can set groups on Telepathy account '%s" \
 
1488
                _tmp16_ = _ ("Failed to determine whether we can set groups on Telepathy account '%s" \
1480
1489
"': %s");
1481
 
                _tmp18_ = folks_persona_store_get_display_name ((FolksPersonaStore*) self);
1482
 
                g_warning (_tmp17_, _tmp18_, e3->message);
 
1490
                _tmp17_ = folks_persona_store_get_display_name ((FolksPersonaStore*) self);
 
1491
                g_warning (_tmp16_, _tmp17_, e3->message);
1483
1492
                _g_error_free0 (e3);
1484
1493
        }
1485
1494
        __finally8:
1508
1517
        TpConnection* _tmp0_;
1509
1518
        TpConnection* c;
1510
1519
        TpConnection* _tmp1_;
1511
 
        TpConnection* _tmp2_;
1512
 
        guint _tmp3_;
 
1520
        guint _tmp2_;
1513
1521
        g_return_if_fail (self != NULL);
1514
1522
        g_return_if_fail (s != NULL);
1515
1523
        _tmp0_ = _g_object_ref0 (TP_CONNECTION (s));
1521
1529
        _tpf_persona_store_add_standard_channel (self, c, "stored", NULL, NULL);
1522
1530
        _tpf_persona_store_add_standard_channel (self, c, "subscribe", NULL, NULL);
1523
1531
        _tmp1_ = _g_object_ref0 (c);
1524
 
        _tmp2_ = _tmp1_;
1525
1532
        _g_object_unref0 (self->priv->_conn);
1526
 
        self->priv->_conn = _tmp2_;
 
1533
        self->priv->_conn = _tmp1_;
1527
1534
        g_signal_connect_object ((GObject*) self->priv->_conn, "notify::self-handle", (GCallback) __tpf_persona_store_self_handle_changed_cb_g_object_notify, self, 0);
1528
 
        _tmp3_ = tp_connection_get_self_handle (self->priv->_conn);
1529
 
        if (_tmp3_ != 0) {
 
1535
        _tmp2_ = tp_connection_get_self_handle (self->priv->_conn);
 
1536
        if (_tmp2_ != 0) {
1530
1537
                _tpf_persona_store_self_handle_changed_cb (self, (GObject*) self->priv->_conn, NULL);
1531
1538
        }
1532
1539
        _tpf_persona_store_initialise_favourite_contacts (self, NULL, NULL);
1548
1555
        GList* personas;
1549
1556
        TpfPersona* _tmp4_;
1550
1557
        TpContact* _tmp5_;
1551
 
        TpContact* _tmp6_;
1552
1558
        g_return_if_fail (conn != NULL);
1553
1559
        g_return_if_fail (weak_object != NULL);
1554
1560
        if (_error_ != NULL) {
1559
1565
                g_warning (_tmp0_, _tmp1_, _error_->message);
1560
1566
                return;
1561
1567
        }
1562
 
        g_debug ("tpf-persona-store.vala:609: Creating persona from self-handle");
 
1568
        g_debug ("tpf-persona-store.vala:635: Creating persona from self-handle");
1563
1569
        _tmp2_ = _g_object_ref0 (contacts[0]);
1564
1570
        contact = _tmp2_;
1565
1571
        _tmp3_ = _tpf_persona_store_add_persona_from_contact (self, contact, FALSE);
1568
1574
        _tmp4_ = _g_object_ref0 (persona);
1569
1575
        personas = g_list_prepend (personas, _tmp4_);
1570
1576
        _tmp5_ = _g_object_ref0 (contact);
1571
 
        _tmp6_ = _tmp5_;
1572
1577
        _g_object_unref0 (self->priv->_self_contact);
1573
 
        self->priv->_self_contact = _tmp6_;
 
1578
        self->priv->_self_contact = _tmp5_;
1574
1579
        g_signal_emit_by_name ((FolksPersonaStore*) self, "personas-changed", personas, NULL, NULL, NULL, 0);
1575
1580
        __g_list_free__g_object_unref0_0 (personas);
1576
1581
        _g_object_unref0 (persona);
1623
1628
        if (channel == NULL) {
1624
1629
                const gchar* _tmp0_ = NULL;
1625
1630
                _tmp0_ = _ ("Error creating channel for NewChannels signal.");
1626
 
                g_warning ("tpf-persona-store.vala:631: %s", _tmp0_);
 
1631
                g_warning ("tpf-persona-store.vala:657: %s", _tmp0_);
1627
1632
                return;
1628
1633
        }
1629
1634
        _tpf_persona_store_set_up_new_group_channel (self, channel);
1652
1657
        change_maps = _tmp1_;
1653
1658
        _tmp2_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_group_outgoing_adds, group);
1654
1659
        _tmp3_ = (GeeHashSet*) _tmp2_;
1655
 
        if ((_tmp4_ = _tmp3_ != NULL, _g_object_unref0 (_tmp3_), _tmp4_)) {
 
1660
        _tmp4_ = _tmp3_ != NULL;
 
1661
        _g_object_unref0 (_tmp3_);
 
1662
        if (_tmp4_) {
1656
1663
                gpointer _tmp5_ = NULL;
1657
1664
                GeeHashSet* _tmp6_;
1658
1665
                _tmp5_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_group_outgoing_adds, group);
1662
1669
        }
1663
1670
        _tmp7_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_group_outgoing_removes, group);
1664
1671
        _tmp8_ = (GeeHashSet*) _tmp7_;
1665
 
        if ((_tmp9_ = _tmp8_ != NULL, _g_object_unref0 (_tmp8_), _tmp9_)) {
 
1672
        _tmp9_ = _tmp8_ != NULL;
 
1673
        _g_object_unref0 (_tmp8_);
 
1674
        if (_tmp9_) {
1666
1675
                gpointer _tmp10_ = NULL;
1667
1676
                GeeHashSet* _tmp11_;
1668
1677
                _tmp10_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_group_outgoing_removes, group);
1684
1693
                _tmp13_ = gee_map_get_entries ((GeeMap*) change_maps);
1685
1694
                _tmp14_ = _tmp13_;
1686
1695
                _tmp15_ = gee_iterable_iterator ((GeeIterable*) _tmp14_);
1687
 
                _entry_it = (_tmp16_ = _tmp15_, _g_object_unref0 (_tmp14_), _tmp16_);
 
1696
                _tmp16_ = _tmp15_;
 
1697
                _g_object_unref0 (_tmp14_);
 
1698
                _entry_it = _tmp16_;
1688
1699
                while (TRUE) {
1689
1700
                        gboolean _tmp17_;
1690
1701
                        gpointer _tmp18_ = NULL;
1795
1806
}
1796
1807
 
1797
1808
 
1798
 
static void __tpf_persona_store_channel_invalidated_cb_tp_proxy_invalidated (TpProxy* _sender, guint domain, gint code, const gchar* message, gpointer self) {
1799
 
        _tpf_persona_store_channel_invalidated_cb (self, _sender, domain, code, message);
1800
 
}
1801
 
 
1802
 
 
1803
1809
static void _lambda8_ (GObject* s, GParamSpec* p, TpfPersonaStore* self) {
1804
1810
        TpChannel* _tmp0_;
1805
1811
        TpChannel* c;
1806
1812
        const gchar* _tmp1_ = NULL;
1807
1813
        const gchar* name;
1808
 
        TpIntset* _tmp9_ = NULL;
 
1814
        TpIntset* _tmp6_ = NULL;
1809
1815
        TpIntset* members;
1810
1816
        g_return_if_fail (s != NULL);
1811
1817
        g_return_if_fail (p != NULL);
1813
1819
        c = _tmp0_;
1814
1820
        _tmp1_ = tp_channel_get_identifier (c);
1815
1821
        name = _tmp1_;
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_;
1819
 
                TpChannel* _tmp3_;
1820
1825
                _tmp2_ = _g_object_ref0 (c);
1821
 
                _tmp3_ = _tmp2_;
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);
1825
1829
        } else {
1826
1830
                if (g_strcmp0 (name, "stored") == 0) {
1827
 
                        TpChannel* _tmp4_;
1828
 
                        TpChannel* _tmp5_;
1829
 
                        _tmp4_ = _g_object_ref0 (c);
1830
 
                        _tmp5_ = _tmp4_;
 
1831
                        TpChannel* _tmp3_;
 
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);
1834
1836
                } else {
1835
1837
                        if (g_strcmp0 (name, "subscribe") == 0) {
1836
 
                                TpChannel* _tmp6_;
1837
 
                                TpChannel* _tmp7_;
1838
 
                                TpChannelGroupFlags _tmp8_;
1839
 
                                _tmp6_ = _g_object_ref0 (c);
1840
 
                                _tmp7_ = _tmp6_;
 
1838
                                TpChannel* _tmp4_;
 
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);
1847
1847
                        }
1848
1848
                }
1849
1849
        }
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);
1853
 
        members = _tmp9_;
 
1852
        _tmp6_ = tp_channel_group_get_members (c);
 
1853
        members = _tmp6_;
1854
1854
        if (members != NULL) {
1855
 
                GArray* _tmp10_ = NULL;
1856
 
                GArray* _tmp11_;
1857
 
                _tmp10_ = tp_intset_to_array (members);
1858
 
                _tmp11_ = _tmp10_;
1859
 
                _tpf_persona_store_channel_group_pend_incoming_adds (self, c, _tmp11_, TRUE, NULL, NULL);
1860
 
                _g_array_unref0 (_tmp11_);
 
1855
                GArray* _tmp7_ = NULL;
 
1856
                GArray* _tmp8_;
 
1857
                _tmp7_ = tp_intset_to_array (members);
 
1858
                _tmp8_ = _tmp7_;
 
1859
                _tpf_persona_store_channel_group_pend_incoming_adds (self, c, _tmp8_, TRUE, NULL, NULL);
 
1860
                _g_array_unref0 (_tmp8_);
1861
1861
        }
1862
1862
        _g_object_unref0 (c);
1863
1863
}
1874
1874
        g_return_if_fail (self != NULL);
1875
1875
        g_return_if_fail (channel != NULL);
1876
1876
        _tmp0_ = tp_channel_get_identifier (channel);
1877
 
        g_debug ("tpf-persona-store.vala:690: Setting up new standard channel '%s'.", _tmp0_);
 
1877
        g_debug ("tpf-persona-store.vala:716: Setting up new standard channel '%s'.", _tmp0_);
1878
1878
        _tmp1_ = tp_channel_get_identifier (channel);
1879
1879
        gee_abstract_map_set ((GeeAbstractMap*) self->priv->_standard_channels_unready, _tmp1_, channel);
1880
1880
        g_signal_connect_object ((GObject*) channel, "notify::channel-ready", (GCallback) __lambda8__g_object_notify, self, 0);
2028
2028
        gee_abstract_map_unset ((GeeAbstractMap*) self->priv->_channel_group_personas_map, channel, NULL);
2029
2029
        gee_abstract_map_unset ((GeeAbstractMap*) self->priv->_channel_group_incoming_adds, channel, NULL);
2030
2030
        if (proxy == TP_PROXY (self->priv->_publish)) {
2031
 
                TpChannel* _tmp1_;
2032
 
                _tmp1_ = NULL;
2033
2031
                _g_object_unref0 (self->priv->_publish);
2034
 
                self->priv->_publish = _tmp1_;
 
2032
                self->priv->_publish = NULL;
2035
2033
        } else {
2036
2034
                if (proxy == TP_PROXY (self->priv->_stored)) {
2037
 
                        TpChannel* _tmp2_;
2038
 
                        _tmp2_ = NULL;
2039
2035
                        _g_object_unref0 (self->priv->_stored);
2040
 
                        self->priv->_stored = _tmp2_;
 
2036
                        self->priv->_stored = NULL;
2041
2037
                } else {
2042
2038
                        if (proxy == TP_PROXY (self->priv->_subscribe)) {
2043
 
                                TpChannel* _tmp3_;
2044
 
                                _tmp3_ = NULL;
2045
2039
                                _g_object_unref0 (self->priv->_subscribe);
2046
 
                                self->priv->_subscribe = _tmp3_;
 
2040
                                self->priv->_subscribe = NULL;
2047
2041
                        } else {
2048
 
                                GError* _tmp4_ = NULL;
 
2042
                                GError* _tmp1_ = NULL;
2049
2043
                                GError* _error_;
2050
 
                                const gchar* _tmp5_ = NULL;
2051
 
                                gchar* _tmp6_;
 
2044
                                const gchar* _tmp2_ = NULL;
 
2045
                                gchar* _tmp3_;
2052
2046
                                gchar* name;
2053
 
                                _tmp4_ = g_error_new ((GQuark) domain, code, "%s", message);
2054
 
                                _error_ = _tmp4_;
2055
 
                                _tmp5_ = tp_channel_get_identifier (channel);
2056
 
                                _tmp6_ = g_strdup (_tmp5_);
2057
 
                                name = _tmp6_;
 
2047
                                _tmp1_ = g_error_new ((GQuark) domain, code, "%s", message);
 
2048
                                _error_ = _tmp1_;
 
2049
                                _tmp2_ = tp_channel_get_identifier (channel);
 
2050
                                _tmp3_ = g_strdup (_tmp2_);
 
2051
                                name = _tmp3_;
2058
2052
                                g_signal_emit_by_name (self, "group-removed", name, _error_);
2059
2053
                                gee_abstract_map_unset ((GeeAbstractMap*) self->priv->_groups, name, NULL);
2060
2054
                                _g_free0 (name);
2077
2071
        guint32 actor_handle;
2078
2072
        gboolean _tmp9_ = FALSE;
2079
2073
        FolksGroupDetailsChangeReason reason;
2080
 
        gboolean _tmp12_;
2081
 
        guint32 _tmp13_;
 
2074
        gboolean _tmp11_;
 
2075
        guint32 _tmp12_;
2082
2076
        guint32 tp_reason;
2083
2077
        g_return_if_fail (self != NULL);
2084
2078
        g_return_if_fail (details != NULL);
2123
2117
        }
2124
2118
        if (_tmp9_) {
2125
2119
                gpointer _tmp10_ = NULL;
2126
 
                TpfPersona* _tmp11_;
2127
2120
                _tmp10_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_handle_persona_map, GUINT_TO_POINTER ((guint) actor_handle));
2128
 
                _tmp11_ = (TpfPersona*) _tmp10_;
2129
2121
                _g_object_unref0 (actor);
2130
 
                actor = _tmp11_;
 
2122
                actor = (TpfPersona*) _tmp10_;
2131
2123
        }
2132
2124
        reason = FOLKS_GROUP_DETAILS_CHANGE_REASON_NONE;
2133
 
        _tmp13_ = tp_asv_get_uint32 (details, "change-reason", &_tmp12_);
2134
 
        valid = _tmp12_;
2135
 
        tp_reason = _tmp13_;
 
2125
        _tmp12_ = tp_asv_get_uint32 (details, "change-reason", &_tmp11_);
 
2126
        valid = _tmp11_;
 
2127
        tp_reason = _tmp12_;
2136
2128
        if (valid) {
2137
 
                FolksGroupDetailsChangeReason _tmp14_;
2138
 
                _tmp14_ = _tpf_persona_store_change_reason_from_tp_reason ((guint) tp_reason);
2139
 
                reason = _tmp14_;
 
2129
                FolksGroupDetailsChangeReason _tmp13_;
 
2130
                _tmp13_ = _tpf_persona_store_change_reason_from_tp_reason ((guint) tp_reason);
 
2131
                reason = _tmp13_;
2140
2132
        }
2141
2133
        _tpf_persona_store_ignore_by_handle (self, handle, message, actor, reason);
2142
2134
        _g_object_unref0 (actor);
2155
2147
        TpfPersona* persona;
2156
2148
        gboolean _tmp1_ = FALSE;
2157
2149
        GList* personas;
2158
 
        TpfPersona* _tmp18_;
2159
 
        const gchar* _tmp19_ = NULL;
 
2150
        TpfPersona* _tmp17_;
 
2151
        const gchar* _tmp18_ = NULL;
2160
2152
        g_return_if_fail (self != NULL);
2161
2153
        _tmp0_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_handle_persona_map, GUINT_TO_POINTER (handle));
2162
2154
        persona = (TpfPersona*) _tmp0_;
2163
 
        g_debug ("tpf-persona-store.vala:928: Ignoring handle %u (persona: %p)", handle, persona);
 
2155
        g_debug ("tpf-persona-store.vala:954: Ignoring handle %u (persona: %p)", handle, persona);
2164
2156
        if (self->priv->_self_contact != NULL) {
2165
2157
                guint _tmp2_;
2166
2158
                _tmp2_ = tp_contact_get_handle (self->priv->_self_contact);
2169
2161
                _tmp1_ = FALSE;
2170
2162
        }
2171
2163
        if (_tmp1_) {
2172
 
                TpContact* _tmp3_;
2173
 
                _tmp3_ = NULL;
2174
2164
                _g_object_unref0 (self->priv->_self_contact);
2175
 
                self->priv->_self_contact = _tmp3_;
 
2165
                self->priv->_self_contact = NULL;
2176
2166
        }
2177
2167
        gee_abstract_map_unset ((GeeAbstractMap*) self->priv->_handle_persona_map, GUINT_TO_POINTER (handle), NULL);
2178
2168
        if (persona == NULL) {
2180
2170
                return;
2181
2171
        }
2182
2172
        {
2183
 
                GeeSet* _tmp4_ = NULL;
2184
 
                GeeSet* _tmp5_;
2185
 
                GeeIterator* _tmp6_ = NULL;
2186
 
                GeeIterator* _tmp7_;
 
2173
                GeeSet* _tmp3_ = NULL;
 
2174
                GeeSet* _tmp4_;
 
2175
                GeeIterator* _tmp5_ = NULL;
 
2176
                GeeIterator* _tmp6_;
2187
2177
                GeeIterator* _channel_it;
2188
 
                _tmp4_ = gee_map_get_keys ((GeeMap*) self->priv->_channel_group_personas_map);
2189
 
                _tmp5_ = _tmp4_;
2190
 
                _tmp6_ = gee_iterable_iterator ((GeeIterable*) _tmp5_);
2191
 
                _channel_it = (_tmp7_ = _tmp6_, _g_object_unref0 (_tmp5_), _tmp7_);
 
2178
                _tmp3_ = gee_map_get_keys ((GeeMap*) self->priv->_channel_group_personas_map);
 
2179
                _tmp4_ = _tmp3_;
 
2180
                _tmp5_ = gee_iterable_iterator ((GeeIterable*) _tmp4_);
 
2181
                _tmp6_ = _tmp5_;
 
2182
                _g_object_unref0 (_tmp4_);
 
2183
                _channel_it = _tmp6_;
2192
2184
                while (TRUE) {
2193
 
                        gboolean _tmp8_;
 
2185
                        gboolean _tmp7_;
 
2186
                        gpointer _tmp8_ = NULL;
 
2187
                        TpChannel* channel;
2194
2188
                        gpointer _tmp9_ = NULL;
2195
 
                        TpChannel* channel;
2196
 
                        gpointer _tmp10_ = NULL;
2197
2189
                        GeeHashSet* members;
2198
 
                        _tmp8_ = gee_iterator_next (_channel_it);
2199
 
                        if (!_tmp8_) {
 
2190
                        _tmp7_ = gee_iterator_next (_channel_it);
 
2191
                        if (!_tmp7_) {
2200
2192
                                break;
2201
2193
                        }
2202
 
                        _tmp9_ = gee_iterator_get (_channel_it);
2203
 
                        channel = (TpChannel*) _tmp9_;
2204
 
                        _tmp10_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_channel_group_personas_map, channel);
2205
 
                        members = (GeeHashSet*) _tmp10_;
 
2194
                        _tmp8_ = gee_iterator_get (_channel_it);
 
2195
                        channel = (TpChannel*) _tmp8_;
 
2196
                        _tmp9_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_channel_group_personas_map, channel);
 
2197
                        members = (GeeHashSet*) _tmp9_;
2206
2198
                        if (members != NULL) {
2207
2199
                                gee_abstract_collection_remove ((GeeAbstractCollection*) members, persona);
2208
2200
                        }
2212
2204
                _g_object_unref0 (_channel_it);
2213
2205
        }
2214
2206
        {
2215
 
                GeeSet* _tmp11_ = NULL;
2216
 
                GeeSet* _tmp12_;
2217
 
                GeeIterator* _tmp13_ = NULL;
2218
 
                GeeIterator* _tmp14_;
 
2207
                GeeSet* _tmp10_ = NULL;
 
2208
                GeeSet* _tmp11_;
 
2209
                GeeIterator* _tmp12_ = NULL;
 
2210
                GeeIterator* _tmp13_;
2219
2211
                GeeIterator* _name_it;
2220
 
                _tmp11_ = gee_map_get_keys ((GeeMap*) self->priv->_group_outgoing_adds);
2221
 
                _tmp12_ = _tmp11_;
2222
 
                _tmp13_ = gee_iterable_iterator ((GeeIterable*) _tmp12_);
2223
 
                _name_it = (_tmp14_ = _tmp13_, _g_object_unref0 (_tmp12_), _tmp14_);
 
2212
                _tmp10_ = gee_map_get_keys ((GeeMap*) self->priv->_group_outgoing_adds);
 
2213
                _tmp11_ = _tmp10_;
 
2214
                _tmp12_ = gee_iterable_iterator ((GeeIterable*) _tmp11_);
 
2215
                _tmp13_ = _tmp12_;
 
2216
                _g_object_unref0 (_tmp11_);
 
2217
                _name_it = _tmp13_;
2224
2218
                while (TRUE) {
2225
 
                        gboolean _tmp15_;
 
2219
                        gboolean _tmp14_;
 
2220
                        gpointer _tmp15_ = NULL;
 
2221
                        gchar* name;
2226
2222
                        gpointer _tmp16_ = NULL;
2227
 
                        gchar* name;
2228
 
                        gpointer _tmp17_ = NULL;
2229
2223
                        GeeHashSet* members;
2230
 
                        _tmp15_ = gee_iterator_next (_name_it);
2231
 
                        if (!_tmp15_) {
 
2224
                        _tmp14_ = gee_iterator_next (_name_it);
 
2225
                        if (!_tmp14_) {
2232
2226
                                break;
2233
2227
                        }
2234
 
                        _tmp16_ = gee_iterator_get (_name_it);
2235
 
                        name = (gchar*) _tmp16_;
2236
 
                        _tmp17_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_group_outgoing_adds, name);
2237
 
                        members = (GeeHashSet*) _tmp17_;
 
2228
                        _tmp15_ = gee_iterator_get (_name_it);
 
2229
                        name = (gchar*) _tmp15_;
 
2230
                        _tmp16_ = gee_abstract_map_get ((GeeAbstractMap*) self->priv->_group_outgoing_adds, name);
 
2231
                        members = (GeeHashSet*) _tmp16_;
2238
2232
                        if (members != NULL) {
2239
2233
                                gee_abstract_collection_remove ((GeeAbstractCollection*) members, persona);
2240
2234
                        }
2244
2238
                _g_object_unref0 (_name_it);
2245
2239
        }
2246
2240
        personas = NULL;
2247
 
        _tmp18_ = _g_object_ref0 (persona);
2248
 
        personas = g_list_append (personas, _tmp18_);
 
2241
        _tmp17_ = _g_object_ref0 (persona);
 
2242
        personas = g_list_append (personas, _tmp17_);
2249
2243
        g_signal_emit_by_name ((FolksPersonaStore*) self, "personas-changed", NULL, personas, message, (FolksPersona*) actor, reason);
2250
 
        _tmp19_ = folks_persona_get_iid ((FolksPersona*) persona);
2251
 
        g_hash_table_remove (self->priv->_personas, _tmp19_);
 
2244
        _tmp18_ = folks_persona_get_iid ((FolksPersona*) persona);
 
2245
        g_hash_table_remove (self->priv->_personas, _tmp18_);
2252
2246
        __g_list_free__g_object_unref0_0 (personas);
2253
2247
        _g_object_unref0 (persona);
2254
2248
}
2559
2553
                                                if (data->contact_handles == NULL) {
2560
2554
                                                        data->_tmp6_ = NULL;
2561
2555
                                                        data->_tmp6_ = gee_hash_set_new (G_TYPE_UINT, NULL, NULL, NULL, NULL);
2562
 
                                                        data->_tmp7_ = data->_tmp6_;
2563
2556
                                                        _g_object_unref0 (data->contact_handles);
2564
 
                                                        data->contact_handles = data->_tmp7_;
 
2557
                                                        data->contact_handles = data->_tmp6_;
2565
2558
                                                        gee_abstract_map_set ((GeeAbstractMap*) data->self->priv->_channel_group_incoming_adds, data->channel, data->contact_handles);
2566
2559
                                                }
2567
2560
                                                gee_abstract_collection_add ((GeeAbstractCollection*) data->contact_handles, GUINT_TO_POINTER ((guint) data->contact_handle));
2706
2699
        if (data->change_set == NULL) {
2707
2700
                data->_tmp5_ = NULL;
2708
2701
                data->_tmp5_ = gee_hash_set_new (TPF_TYPE_PERSONA, (GBoxedCopyFunc) g_object_ref, g_object_unref, NULL, NULL);
2709
 
                data->_tmp6_ = data->_tmp5_;
2710
2702
                _g_object_unref0 (data->change_set);
2711
 
                data->change_set = data->_tmp6_;
 
2703
                data->change_set = data->_tmp5_;
2712
2704
                gee_abstract_map_set ((GeeAbstractMap*) data->change_map, data->group, data->change_set);
2713
2705
        }
2714
2706
        gee_abstract_collection_add ((GeeAbstractCollection*) data->change_set, data->tp_persona);
2715
2707
        if (data->channel == NULL) {
2716
 
                data->_tmp7_ = NULL;
2717
 
                data->_tmp7_ = tp_account_get_connection (data->self->priv->_account);
2718
 
                folks_tp_lowlevel_connection_create_group_async (data->self->priv->_ll, data->_tmp7_, data->group);
 
2708
                data->_tmp6_ = NULL;
 
2709
                data->_tmp6_ = tp_account_get_connection (data->self->priv->_account);
 
2710
                folks_tp_lowlevel_connection_create_group_async (data->self->priv->_ll, data->_tmp6_, data->group);
2719
2711
        } else {
2720
2712
                _tpf_persona_store_channel_group_changes_resolve (data->self, data->channel);
2721
2713
        }
2839
2831
        }
2840
2832
        _state_0:
2841
2833
        data->channel = NULL;
2842
 
        g_debug ("tpf-persona-store.vala:1184: Adding standard channel '%s' to connectio" \
 
2834
        g_debug ("tpf-persona-store.vala:1210: Adding standard channel '%s' to connectio" \
2843
2835
"n %p", data->name, data->conn);
2844
2836
        data->_state_ = 1;
2845
2837
        folks_tp_lowlevel_connection_open_contact_list_channel_async (data->self->priv->_ll, data->conn, data->name, _tpf_persona_store_add_standard_channel_ready, data);
2852
2844
                goto __catch14_g_error;
2853
2845
        }
2854
2846
        data->_tmp2_ = _g_object_ref0 (data->_tmp1_);
2855
 
        data->_tmp3_ = data->_tmp2_;
2856
2847
        _g_object_unref0 (data->channel);
2857
 
        data->channel = data->_tmp3_;
 
2848
        data->channel = data->_tmp2_;
2858
2849
        goto __finally14;
2859
2850
        __catch14_g_error:
2860
2851
        {
2861
2852
                data->e = data->_inner_error_;
2862
2853
                data->_inner_error_ = NULL;
2863
 
                g_debug ("tpf-persona-store.vala:1194: Failed to add channel '%s': %s\n", data->name, data->e->message);
 
2854
                g_debug ("tpf-persona-store.vala:1220: Failed to add channel '%s': %s\n", data->name, data->e->message);
2864
2855
                data->result = NULL;
2865
2856
                _g_error_free0 (data->e);
2866
2857
                _g_object_unref0 (data->channel);
2984
2975
                                } else {
2985
2976
                                        data->_tmp5_ = NULL;
2986
2977
                                        data->_tmp5_ = folks_persona_get_uid ((FolksPersona*) data->persona);
2987
 
                                        g_debug ("tpf-persona-store.vala:1230: Setting is-in-contact-list for '%s' to tr" \
 
2978
                                        g_debug ("tpf-persona-store.vala:1256: Setting is-in-contact-list for '%s' to tr" \
2988
2979
"ue", data->_tmp5_);
2989
2980
                                        tpf_persona_set_is_in_contact_list (data->persona, TRUE);
2990
2981
                                }
3191
3182
                                data->contact = data->_tmp3_;
3192
3183
                                data->_tmp4_ = NULL;
3193
3184
                                data->_tmp4_ = tp_contact_get_identifier (data->contact);
3194
 
                                g_debug ("tpf-persona-store.vala:1286: Creating persona from contact '%s'", data->_tmp4_);
 
3185
                                g_debug ("tpf-persona-store.vala:1312: Creating persona from contact '%s'", data->_tmp4_);
3195
3186
                                data->_tmp5_ = NULL;
3196
3187
                                data->_tmp5_ = _tpf_persona_store_add_persona_from_contact (data->self, data->contact, TRUE);
3197
3188
                                data->persona = data->_tmp5_;
3261
3252
        TpfPersona* persona;
3262
3253
        const gchar* _tmp1_ = NULL;
3263
3254
        gpointer _tmp2_ = NULL;
3264
 
        TpfPersona* _tmp3_;
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);
3268
3258
        h = _tmp0_;
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);
3275
 
        persona = _tmp3_;
 
3264
        persona = (TpfPersona*) _tmp2_;
3276
3265
        if (persona == NULL) {
3277
 
                TpfPersona* _tmp4_ = NULL;
3278
 
                TpfPersona* _tmp5_;
3279
 
                const gchar* _tmp6_ = NULL;
3280
 
                gchar* _tmp7_;
3281
 
                TpfPersona* _tmp8_;
3282
 
                gboolean _tmp9_;
3283
 
                _tmp4_ = tpf_persona_new (contact, self);
3284
 
                _tmp5_ = _tmp4_;
 
3266
                TpfPersona* _tmp3_ = NULL;
 
3267
                const gchar* _tmp4_ = NULL;
 
3268
                gchar* _tmp5_;
 
3269
                TpfPersona* _tmp6_;
 
3270
                gboolean _tmp7_;
 
3271
                _tmp3_ = tpf_persona_new (contact, self);
3285
3272
                _g_object_unref0 (persona);
3286
 
                persona = _tmp5_;
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_);
 
3273
                persona = _tmp3_;
 
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");
3296
3283
                }
3297
3284
                tpf_persona_set_is_in_contact_list (persona, from_contact_list);
3298
3285
                result = persona;
3299
3286
                return result;
3300
3287
        } else {
3301
 
                gboolean _tmp10_ = FALSE;
3302
 
                gboolean _tmp11_;
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;
 
3289
                gboolean _tmp9_;
 
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;
3307
3294
                } else {
3308
 
                        _tmp10_ = FALSE;
 
3295
                        _tmp8_ = FALSE;
3309
3296
                }
3310
 
                if (_tmp10_) {
3311
 
                        g_debug ("tpf-persona-store.vala:1359:     Setting is-in-contact-list to true");
 
3297
                if (_tmp8_) {
 
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);
3313
3300
                }
3314
3301
                result = NULL;
3368
3355
                _tmp0_ = gee_map_get_entries ((GeeMap*) self->priv->_channel_group_incoming_adds);
3369
3356
                _tmp1_ = _tmp0_;
3370
3357
                _tmp2_ = gee_iterable_iterator ((GeeIterable*) _tmp1_);
3371
 
                _entry_it = (_tmp3_ = _tmp2_, _g_object_unref0 (_tmp1_), _tmp3_);
 
3358
                _tmp3_ = _tmp2_;
 
3359
                _g_object_unref0 (_tmp1_);
 
3360
                _entry_it = _tmp3_;
3372
3361
                while (TRUE) {
3373
3362
                        gboolean _tmp4_;
3374
3363
                        gpointer _tmp5_ = NULL;
3379
3368
                        GList* members_added;
3380
3369
                        gpointer _tmp8_ = NULL;
3381
3370
                        GeeHashSet* members;
3382
 
                        const gchar* _tmp11_ = NULL;
3383
 
                        gconstpointer _tmp12_ = NULL;
3384
 
                        GeeHashSet* _tmp13_;
 
3371
                        const gchar* _tmp10_ = NULL;
 
3372
                        gconstpointer _tmp11_ = NULL;
 
3373
                        GeeHashSet* _tmp12_;
3385
3374
                        GeeHashSet* contact_handles;
3386
 
                        gboolean _tmp14_ = FALSE;
3387
 
                        gint _tmp26_;
3388
 
                        const gchar* _tmp27_ = NULL;
3389
 
                        gchar* _tmp28_;
 
3375
                        gboolean _tmp13_ = FALSE;
 
3376
                        gint _tmp25_;
 
3377
                        const gchar* _tmp26_ = NULL;
 
3378
                        gchar* _tmp27_;
3390
3379
                        gchar* name;
3391
 
                        gboolean _tmp29_ = FALSE;
3392
 
                        gboolean _tmp30_;
 
3380
                        gboolean _tmp28_ = FALSE;
 
3381
                        gboolean _tmp29_;
3393
3382
                        _tmp4_ = gee_iterator_next (_entry_it);
3394
3383
                        if (!_tmp4_) {
3395
3384
                                break;
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);
3409
 
                                _tmp10_ = _tmp9_;
3410
3397
                                _g_object_unref0 (members);
3411
 
                                members = _tmp10_;
 
3398
                                members = _tmp9_;
3412
3399
                        }
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) {
3419
 
                                gint _tmp15_;
3420
 
                                _tmp15_ = gee_collection_get_size ((GeeCollection*) contact_handles);
3421
 
                                _tmp14_ = _tmp15_ > 0;
 
3406
                                gint _tmp14_;
 
3407
                                _tmp14_ = gee_collection_get_size ((GeeCollection*) contact_handles);
 
3408
                                _tmp13_ = _tmp14_ > 0;
3422
3409
                        } else {
3423
 
                                _tmp14_ = FALSE;
 
3410
                                _tmp13_ = FALSE;
3424
3411
                        }
3425
 
                        if (_tmp14_) {
3426
 
                                GeeHashSet* _tmp16_ = NULL;
 
3412
                        if (_tmp13_) {
 
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_;
3430
3417
                                {
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_;
3435
3422
                                        while (TRUE) {
3436
 
                                                gboolean _tmp18_;
 
3423
                                                gboolean _tmp17_;
 
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);
3442
 
                                                if (!_tmp18_) {
 
3428
                                                _tmp17_ = gee_iterator_next (_contact_handle_it);
 
3429
                                                if (!_tmp17_) {
3443
3430
                                                        break;
3444
3431
                                                }
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));
3458
3445
                                                }
3459
3446
                                                _g_object_unref0 (persona);
3461
3448
                                        _g_object_unref0 (_contact_handle_it);
3462
3449
                                }
3463
3450
                                {
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_;
3468
3455
                                        while (TRUE) {
3469
 
                                                gboolean _tmp24_;
3470
 
                                                gpointer _tmp25_ = NULL;
 
3456
                                                gboolean _tmp23_;
 
3457
                                                gpointer _tmp24_ = NULL;
3471
3458
                                                guint handle;
3472
 
                                                _tmp24_ = gee_iterator_next (_handle_it);
3473
 
                                                if (!_tmp24_) {
 
3459
                                                _tmp23_ = gee_iterator_next (_handle_it);
 
3460
                                                if (!_tmp23_) {
3474
3461
                                                        break;
3475
3462
                                                }
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));
3479
3466
                                        }
3480
3467
                                        _g_object_unref0 (_handle_it);
3481
3468
                                }
3482
3469
                                _g_object_unref0 (contact_handles_added);
3483
3470
                        }
3484
 
                        _tmp26_ = gee_collection_get_size ((GeeCollection*) members);
3485
 
                        if (_tmp26_ > 0) {
 
3471
                        _tmp25_ = gee_collection_get_size ((GeeCollection*) members);
 
3472
                        if (_tmp25_ > 0) {
3486
3473
                                gee_abstract_map_set ((GeeAbstractMap*) self->priv->_channel_group_personas_map, channel, members);
3487
3474
                        }
3488
 
                        _tmp27_ = tp_channel_get_identifier (channel);
3489
 
                        _tmp28_ = g_strdup (_tmp27_);
3490
 
                        name = _tmp28_;
3491
 
                        _tmp30_ = _tpf_persona_store_group_is_display_group (self, name);
3492
 
                        if (_tmp30_) {
3493
 
                                guint _tmp31_;
3494
 
                                _tmp31_ = g_list_length (members_added);
3495
 
                                _tmp29_ = _tmp31_ > 0;
3496
 
                        } else {
3497
 
                                _tmp29_ = FALSE;
3498
 
                        }
 
3475
                        _tmp26_ = tp_channel_get_identifier (channel);
 
3476
                        _tmp27_ = g_strdup (_tmp26_);
 
3477
                        name = _tmp27_;
 
3478
                        _tmp29_ = _tpf_persona_store_group_is_display_group (self, name);
3499
3479
                        if (_tmp29_) {
 
3480
                                guint _tmp30_;
 
3481
                                _tmp30_ = g_list_length (members_added);
 
3482
                                _tmp28_ = _tmp30_ > 0;
 
3483
                        } else {
 
3484
                                _tmp28_ = FALSE;
 
3485
                        }
 
3486
                        if (_tmp28_) {
3500
3487
                                members_added = g_list_reverse (members_added);
3501
3488
                                g_signal_emit_by_name (self, "group-members-changed", name, members_added, NULL);
3502
3489
                        }
3640
3627
        data->_tmp7_ = g_strdup (data->_tmp6_);
3641
3628
        data->add_message = data->_tmp7_;
3642
3629
        if (g_strcmp0 (data->add_message, "") == 0) {
3643
 
                data->_tmp8_ = NULL;
3644
3630
                _g_free0 (data->add_message);
3645
 
                data->add_message = data->_tmp8_;
 
3631
                data->add_message = NULL;
3646
3632
        }
3647
 
        data->_tmp9_ = tp_account_get_connection_status (data->self->priv->_account, NULL);
3648
 
        data->status = data->_tmp9_;
 
3633
        data->_tmp8_ = tp_account_get_connection_status (data->self->priv->_account, NULL);
 
3634
        data->status = data->_tmp8_;
3649
3635
        if (data->status == TP_CONNECTION_STATUS_DISCONNECTED) {
3650
 
                data->_tmp11_ = TRUE;
3651
 
        } else {
3652
 
                data->_tmp11_ = data->status == TP_CONNECTION_STATUS_CONNECTING;
3653
 
        }
3654
 
        if (data->_tmp11_) {
3655
3636
                data->_tmp10_ = TRUE;
3656
3637
        } else {
3657
 
                data->_tmp10_ = data->self->priv->_conn == NULL;
 
3638
                data->_tmp10_ = data->status == TP_CONNECTION_STATUS_CONNECTING;
3658
3639
        }
3659
3640
        if (data->_tmp10_) {
 
3641
                data->_tmp9_ = TRUE;
 
3642
        } else {
 
3643
                data->_tmp9_ = data->self->priv->_conn == NULL;
 
3644
        }
 
3645
        if (data->_tmp9_) {
 
3646
                data->_tmp11_ = NULL;
 
3647
                data->_tmp11_ = _ ("Cannot create a new persona while offline.");
3660
3648
                data->_tmp12_ = NULL;
3661
 
                data->_tmp12_ = _ ("Cannot create a new persona while offline.");
3662
 
                data->_tmp13_ = NULL;
3663
 
                data->_tmp13_ = g_error_new_literal (FOLKS_PERSONA_STORE_ERROR, FOLKS_PERSONA_STORE_ERROR_STORE_OFFLINE, data->_tmp12_);
3664
 
                data->_inner_error_ = data->_tmp13_;
 
3649
                data->_tmp12_ = g_error_new_literal (FOLKS_PERSONA_STORE_ERROR, FOLKS_PERSONA_STORE_ERROR_STORE_OFFLINE, data->_tmp11_);
 
3650
                data->_inner_error_ = data->_tmp12_;
3665
3651
                if (data->_inner_error_->domain == FOLKS_PERSONA_STORE_ERROR) {
3666
3652
                        g_simple_async_result_set_from_error (data->_async_result, data->_inner_error_);
3667
3653
                        g_error_free (data->_inner_error_);
3682
3668
                        return FALSE;
3683
3669
                }
3684
3670
        }
3685
 
        data->_tmp14_ = NULL;
3686
 
        data->_tmp14_ = g_new0 (gchar*, 1 + 1);
3687
 
        data->contact_ids = data->_tmp14_;
 
3671
        data->_tmp13_ = NULL;
 
3672
        data->_tmp13_ = g_new0 (gchar*, 1 + 1);
 
3673
        data->contact_ids = data->_tmp13_;
3688
3674
        data->contact_ids_length1 = 1;
3689
3675
        data->_contact_ids_size_ = 1;
3690
 
        data->_tmp15_ = g_strdup (data->contact_id);
3691
 
        data->_tmp16_ = data->_tmp15_;
 
3676
        data->_tmp14_ = g_strdup (data->contact_id);
 
3677
        data->_tmp15_ = data->_tmp14_;
3692
3678
        _g_free0 (data->contact_ids[0]);
3693
 
        data->contact_ids[0] = data->_tmp16_;
 
3679
        data->contact_ids[0] = data->_tmp15_;
3694
3680
        data->_state_ = 1;
3695
3681
        _tpf_persona_store_create_personas_from_contact_ids (data->self, data->contact_ids, data->contact_ids_length1, tpf_persona_store_add_persona_from_details_ready, data);
3696
3682
        return FALSE;
3697
3683
        _state_1:
3698
 
        data->_tmp17_ = NULL;
3699
 
        data->_tmp17_ = _tpf_persona_store_create_personas_from_contact_ids_finish (data->self, data->_res_, &data->_inner_error_);
3700
 
        data->personas = data->_tmp17_;
 
3684
        data->_tmp16_ = NULL;
 
3685
        data->_tmp16_ = _tpf_persona_store_create_personas_from_contact_ids_finish (data->self, data->_res_, &data->_inner_error_);
 
3686
        data->personas = data->_tmp16_;
3701
3687
        if (data->_inner_error_ != NULL) {
3702
3688
                goto __catch16_g_error;
3703
3689
        }
3715
3701
                g_object_unref (data->_async_result);
3716
3702
                return FALSE;
3717
3703
        } else {
3718
 
                data->_tmp18_ = g_list_length (data->personas);
3719
 
                if (data->_tmp18_ == 1) {
3720
 
                        data->_tmp19_ = _g_object_ref0 ((TpfPersona*) data->personas->data);
3721
 
                        data->persona = data->_tmp19_;
 
3704
                data->_tmp17_ = g_list_length (data->personas);
 
3705
                if (data->_tmp17_ == 1) {
 
3706
                        data->_tmp18_ = _g_object_ref0 ((TpfPersona*) data->personas->data);
 
3707
                        data->persona = data->_tmp18_;
3722
3708
                        if (data->self->priv->_subscribe != NULL) {
3723
3709
                                _tpf_persona_store_change_standard_contact_list_membership (data->self, data->self->priv->_subscribe, (FolksPersona*) data->persona, TRUE, data->add_message);
3724
3710
                        }
3725
3711
                        if (data->self->priv->_publish != NULL) {
3726
 
                                data->_tmp20_ = tp_channel_group_get_flags (data->self->priv->_publish);
3727
 
                                data->flags = data->_tmp20_;
 
3712
                                data->_tmp19_ = tp_channel_group_get_flags (data->self->priv->_publish);
 
3713
                                data->flags = data->_tmp19_;
3728
3714
                                if ((data->flags & TP_CHANNEL_GROUP_FLAG_CAN_ADD) == TP_CHANNEL_GROUP_FLAG_CAN_ADD) {
3729
3715
                                        _tpf_persona_store_change_standard_contact_list_membership (data->self, data->self->priv->_publish, (FolksPersona*) data->persona, TRUE, data->add_message);
3730
3716
                                }
3742
3728
                        g_object_unref (data->_async_result);
3743
3729
                        return FALSE;
3744
3730
                } else {
3745
 
                        data->_tmp21_ = g_list_length (data->personas);
3746
 
                        data->num_personas = data->_tmp21_;
3747
 
                        data->_tmp22_ = NULL;
3748
 
                        data->_tmp22_ = ngettext ("Requested a single persona, but got %u persona back.", "Requested a single persona, but got %u personas back.", (gulong) data->num_personas);
3749
 
                        data->_tmp23_ = g_strdup (data->_tmp22_);
3750
 
                        data->message = data->_tmp23_;
3751
 
                        data->_tmp24_ = NULL;
3752
 
                        data->_tmp24_ = g_error_new (FOLKS_PERSONA_STORE_ERROR, FOLKS_PERSONA_STORE_ERROR_CREATE_FAILED, data->message, data->num_personas);
3753
 
                        data->_inner_error_ = data->_tmp24_;
 
3731
                        data->_tmp20_ = g_list_length (data->personas);
 
3732
                        data->num_personas = data->_tmp20_;
 
3733
                        data->_tmp21_ = NULL;
 
3734
                        data->_tmp21_ = ngettext ("Requested a single persona, but got %u persona back.", "Requested a single persona, but got %u personas back.", (gulong) data->num_personas);
 
3735
                        data->_tmp22_ = g_strdup (data->_tmp21_);
 
3736
                        data->message = data->_tmp22_;
 
3737
                        data->_tmp23_ = NULL;
 
3738
                        data->_tmp23_ = g_error_new (FOLKS_PERSONA_STORE_ERROR, FOLKS_PERSONA_STORE_ERROR_CREATE_FAILED, data->message, data->num_personas);
 
3739
                        data->_inner_error_ = data->_tmp23_;
3754
3740
                        _g_free0 (data->message);
3755
3741
                        __g_list_free__g_object_unref0_0 (data->personas);
3756
3742
                        goto __catch16_g_error;
3762
3748
        {
3763
3749
                data->e = data->_inner_error_;
3764
3750
                data->_inner_error_ = NULL;
 
3751
                data->_tmp24_ = NULL;
 
3752
                data->_tmp24_ = _ ("Failed to add a persona from details: %s");
3765
3753
                data->_tmp25_ = NULL;
3766
 
                data->_tmp25_ = _ ("Failed to add a persona from details: %s");
3767
 
                data->_tmp26_ = NULL;
3768
 
                data->_tmp26_ = g_error_new (FOLKS_PERSONA_STORE_ERROR, FOLKS_PERSONA_STORE_ERROR_CREATE_FAILED, data->_tmp25_, data->e->message);
3769
 
                data->_inner_error_ = data->_tmp26_;
 
3754
                data->_tmp25_ = g_error_new (FOLKS_PERSONA_STORE_ERROR, FOLKS_PERSONA_STORE_ERROR_CREATE_FAILED, data->_tmp24_, data->e->message);
 
3755
                data->_inner_error_ = data->_tmp25_;
3770
3756
                _g_error_free0 (data->e);
3771
3757
                goto __finally16;
3772
3758
        }
3863
3849
                data->_tmp0_ = NULL;
3864
3850
                data->_tmp0_ = _ ("Failed to change favorite without a connection to the telepathy-logger" \
3865
3851
" service.");
3866
 
                g_warning ("tpf-persona-store.vala:1543: %s", data->_tmp0_);
 
3852
                g_warning ("tpf-persona-store.vala:1569: %s", data->_tmp0_);
3867
3853
                if (data->_state_ == 0) {
3868
3854
                        g_simple_async_result_complete_in_idle (data->_async_result);
3869
3855
                } else {
3913
3899
                data->_inner_error_ = NULL;
3914
3900
                data->_tmp3_ = NULL;
3915
3901
                data->_tmp3_ = _ ("Failed to change a persona's favorite status.");
3916
 
                g_warning ("tpf-persona-store.vala:1563: %s", data->_tmp3_);
 
3902
                g_warning ("tpf-persona-store.vala:1589: %s", data->_tmp3_);
3917
3903
                _g_error_free0 (data->e);
3918
3904
        }
3919
3905
        __finally17:
3971
3957
        data->_tmp0_ = NULL;
3972
3958
        data->_tmp0_ = tpf_persona_get_contact (data->persona);
3973
3959
        data->_tmp1_ = tp_contact_get_handle (data->_tmp0_);
3974
 
        g_debug ("tpf-persona-store.vala:1569: Changing alias of persona %u to '%s'.", data->_tmp1_, data->alias);
 
3960
        g_debug ("tpf-persona-store.vala:1595: Changing alias of persona %u to '%s'.", data->_tmp1_, data->alias);
3975
3961
        data->_tmp2_ = NULL;
3976
3962
        data->_tmp2_ = tpf_persona_get_contact (data->persona);
3977
3963
        data->_tmp3_ = tp_contact_get_handle (data->_tmp2_);
3996
3982
 
3997
3983
static void tpf_persona_store_set_account (TpfPersonaStore* self, TpAccount* value) {
3998
3984
        TpAccount* _tmp0_;
3999
 
        TpAccount* _tmp1_;
4000
3985
        g_return_if_fail (self != NULL);
4001
3986
        _tmp0_ = _g_object_ref0 (value);
4002
 
        _tmp1_ = _tmp0_;
4003
3987
        _g_object_unref0 (self->priv->_account);
4004
 
        self->priv->_account = _tmp1_;
 
3988
        self->priv->_account = _tmp0_;
4005
3989
        g_object_notify ((GObject *) self, "account");
4006
3990
}
4007
3991
 
4112
4096
        gchar* _tmp1_;
4113
4097
        gchar* _tmp2_;
4114
4098
        gchar* _tmp3_;
4115
 
        gchar** _tmp4_ = NULL;
4116
 
        TpContactFeature* _tmp5_ = NULL;
 
4099
        gchar* _tmp4_;
 
4100
        gchar* _tmp5_;
 
4101
        gchar* _tmp6_;
 
4102
        gchar** _tmp7_ = NULL;
 
4103
        TpContactFeature* _tmp8_ = NULL;
4117
4104
        tpf_persona_store_parent_class = g_type_class_peek_parent (klass);
4118
4105
        g_type_class_add_private (klass, sizeof (TpfPersonaStorePrivate));
4119
4106
        FOLKS_PERSONA_STORE_CLASS (klass)->prepare = tpf_persona_store_real_prepare;
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);
4202
 
        _tmp4_[0] = _tmp1_;
4203
 
        _tmp4_[1] = _tmp2_;
4204
 
        _tmp4_[2] = _tmp3_;
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);
 
4192
        _tmp7_[0] = _tmp4_;
 
4193
        _tmp7_[1] = _tmp5_;
 
4194
        _tmp7_[2] = _tmp6_;
 
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;
4216
4206
}
4217
4207