~ubuntu-branches/ubuntu/saucy/folks/saucy

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Sjoerd Simons
  • Date: 2012-03-30 20:03:30 UTC
  • mfrom: (1.1.29) (4.1.16 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120330200330-avl20v75pckn02v3
* d/p/0001-tpf-persona-use-tp_connection_get_account.patch
  + Added, fixes crash when accounts are disconnecting/connecting
* Target unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* tpf-persona.c generated by valac 0.15.1, the Vala compiler
 
1
/* tpf-persona.c generated by valac 0.16.0, the Vala compiler
2
2
 * generated from tpf-persona.vala, do not modify */
3
3
 
4
4
/*
461
461
TpfPersona* tpf_persona_construct_from_cache (GType object_type, TpfPersonaStore* store, const gchar* uid, const gchar* iid, const gchar* im_address, const gchar* protocol, GeeHashSet* groups, gboolean is_favourite, const gchar* alias, gboolean is_in_contact_list, gboolean is_user, GLoadableIcon* avatar, GDateTime* birthday, const gchar* full_name, GeeHashSet* email_addresses, GeeHashSet* phone_numbers, GeeHashSet* urls);
462
462
void tpf_persona_set_is_in_contact_list (TpfPersona* self, gboolean value);
463
463
static Block1Data* block1_data_ref (Block1Data* _data1_);
464
 
static void block1_data_unref (Block1Data* _data1_);
 
464
static void block1_data_unref (void * _userdata_);
465
465
static void __lambda20_ (Block1Data* _data1_, TpAccount* l);
466
466
static void ___lambda20__gfunc (gconstpointer data, gpointer self);
467
467
static void _tpf_persona_contact_notify_presence_message (TpfPersona* self);
1273
1273
        gboolean result = FALSE;
1274
1274
        gboolean changed;
1275
1275
        gboolean _tmp0_;
1276
 
        gboolean _tmp9_;
 
1276
        gboolean _tmp7_;
1277
1277
        g_return_val_if_fail (self != NULL, FALSE);
1278
1278
        g_return_val_if_fail (group != NULL, FALSE);
1279
1279
        changed = FALSE;
1284
1284
                gboolean _tmp3_ = FALSE;
1285
1285
                _tmp1_ = self->priv->_groups;
1286
1286
                _tmp2_ = group;
1287
 
                _tmp3_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _tmp1_, _tmp2_);
1288
 
                if (!_tmp3_) {
1289
 
                        GeeHashSet* _tmp4_;
1290
 
                        const gchar* _tmp5_;
1291
 
                        _tmp4_ = self->priv->_groups;
1292
 
                        _tmp5_ = group;
1293
 
                        gee_abstract_collection_add ((GeeAbstractCollection*) _tmp4_, _tmp5_);
1294
 
                        changed = TRUE;
1295
 
                }
 
1287
                _tmp3_ = gee_abstract_collection_add ((GeeAbstractCollection*) _tmp1_, _tmp2_);
 
1288
                changed = _tmp3_;
1296
1289
        } else {
1297
 
                GeeHashSet* _tmp6_;
1298
 
                const gchar* _tmp7_;
1299
 
                gboolean _tmp8_ = FALSE;
1300
 
                _tmp6_ = self->priv->_groups;
1301
 
                _tmp7_ = group;
1302
 
                _tmp8_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp6_, _tmp7_);
1303
 
                changed = _tmp8_;
 
1290
                GeeHashSet* _tmp4_;
 
1291
                const gchar* _tmp5_;
 
1292
                gboolean _tmp6_ = FALSE;
 
1293
                _tmp4_ = self->priv->_groups;
 
1294
                _tmp5_ = group;
 
1295
                _tmp6_ = gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp4_, _tmp5_);
 
1296
                changed = _tmp6_;
1304
1297
        }
1305
 
        _tmp9_ = changed;
1306
 
        if (_tmp9_ == TRUE) {
1307
 
                const gchar* _tmp10_;
1308
 
                gboolean _tmp11_;
1309
 
                _tmp10_ = group;
1310
 
                _tmp11_ = is_member;
1311
 
                g_signal_emit_by_name ((FolksGroupDetails*) self, "group-changed", _tmp10_, _tmp11_);
 
1298
        _tmp7_ = changed;
 
1299
        if (_tmp7_ == TRUE) {
 
1300
                const gchar* _tmp8_;
 
1301
                gboolean _tmp9_;
 
1302
                _tmp8_ = group;
 
1303
                _tmp9_ = is_member;
 
1304
                g_signal_emit_by_name ((FolksGroupDetails*) self, "group-changed", _tmp8_, _tmp9_);
1312
1305
        }
1313
1306
        result = changed;
1314
1307
        return result;
1461
1454
 
1462
1455
 
1463
1456
static void _tpf_persona_contact_weak_notify_cb (TpfPersona* self, GObject* obj) {
 
1457
        GObject* _tmp0_;
1464
1458
        g_return_if_fail (self != NULL);
1465
1459
        g_return_if_fail (obj != NULL);
 
1460
        _tmp0_ = obj;
 
1461
        g_debug ("tpf-persona.vala:471: TpContact %p destroyed; setting ._contact = null" \
 
1462
" in Persona %p", _tmp0_, self);
1466
1463
        self->priv->_contact = NULL;
1467
1464
        g_object_notify ((GObject*) self, "contact");
1468
1465
}
2123
2120
        GList* _tmp7_ = NULL;
2124
2121
        GList* contact_info;
2125
2122
        GList* _tmp8_;
2126
 
        const gchar* _tmp64_;
2127
 
        GeeHashSet* _tmp84_;
2128
 
        GeeHashSet* _tmp85_;
2129
 
        gboolean _tmp86_ = FALSE;
2130
 
        const gchar* _tmp92_;
2131
 
        const gchar* _tmp93_;
2132
 
        GeeHashSet* _tmp96_;
2133
 
        GeeHashSet* _tmp97_;
2134
 
        gboolean _tmp98_ = FALSE;
2135
 
        GeeHashSet* _tmp104_;
2136
 
        GeeHashSet* _tmp105_;
2137
 
        gboolean _tmp106_ = FALSE;
 
2123
        const gchar* _tmp69_;
 
2124
        GeeHashSet* _tmp89_;
 
2125
        GeeHashSet* _tmp90_;
 
2126
        gboolean _tmp91_ = FALSE;
 
2127
        const gchar* _tmp97_;
 
2128
        const gchar* _tmp98_;
 
2129
        GeeHashSet* _tmp101_;
 
2130
        GeeHashSet* _tmp102_;
 
2131
        gboolean _tmp103_ = FALSE;
 
2132
        GeeHashSet* _tmp109_;
 
2133
        GeeHashSet* _tmp110_;
 
2134
        gboolean _tmp111_ = FALSE;
2138
2135
        g_return_if_fail (self != NULL);
2139
2136
        _tmp0_ = g_strdup ("");
2140
2137
        new_birthday_str = _tmp0_;
2175
2172
                                                gint _tmp14__length1;
2176
2173
                                                const gchar* _tmp15_;
2177
2174
                                                gchar* _tmp16_;
 
2175
                                                gchar* _tmp17_;
 
2176
                                                const gchar* _tmp18_;
 
2177
                                                const gchar* _tmp20_;
 
2178
                                                gchar* _tmp21_;
2178
2179
                                                _tmp13_ = info;
2179
2180
                                                _tmp14_ = _tmp13_->field_value;
2180
2181
                                                _tmp14__length1 = _vala_array_length (_tmp13_->field_value);
2181
2182
                                                _tmp15_ = _tmp14_[0];
2182
2183
                                                _tmp16_ = g_strdup (_tmp15_);
 
2184
                                                _tmp17_ = _tmp16_;
 
2185
                                                _tmp18_ = _tmp17_;
 
2186
                                                if (_tmp18_ == NULL) {
 
2187
                                                        gchar* _tmp19_;
 
2188
                                                        _tmp19_ = g_strdup ("");
 
2189
                                                        _g_free0 (_tmp17_);
 
2190
                                                        _tmp17_ = _tmp19_;
 
2191
                                                }
 
2192
                                                _tmp20_ = _tmp17_;
 
2193
                                                _tmp21_ = g_strdup (_tmp20_);
2183
2194
                                                _g_free0 (new_birthday_str);
2184
 
                                                new_birthday_str = _tmp16_;
 
2195
                                                new_birthday_str = _tmp21_;
 
2196
                                                _g_free0 (_tmp17_);
2185
2197
                                        } else {
2186
 
                                                TpContactInfoField* _tmp17_;
2187
 
                                                const gchar* _tmp18_;
2188
 
                                                _tmp17_ = info;
2189
 
                                                _tmp18_ = _tmp17_->field_name;
2190
 
                                                if (g_strcmp0 (_tmp18_, "email") == 0) {
2191
 
                                                        TpContactInfoField* _tmp19_;
2192
 
                                                        gchar** _tmp20_;
2193
 
                                                        gint _tmp20__length1;
2194
 
                                                        _tmp19_ = info;
2195
 
                                                        _tmp20_ = _tmp19_->field_value;
2196
 
                                                        _tmp20__length1 = _vala_array_length (_tmp19_->field_value);
 
2198
                                                TpContactInfoField* _tmp22_;
 
2199
                                                const gchar* _tmp23_;
 
2200
                                                _tmp22_ = info;
 
2201
                                                _tmp23_ = _tmp22_->field_name;
 
2202
                                                if (g_strcmp0 (_tmp23_, "email") == 0) {
 
2203
                                                        TpContactInfoField* _tmp24_;
 
2204
                                                        gchar** _tmp25_;
 
2205
                                                        gint _tmp25__length1;
 
2206
                                                        _tmp24_ = info;
 
2207
                                                        _tmp25_ = _tmp24_->field_value;
 
2208
                                                        _tmp25__length1 = _vala_array_length (_tmp24_->field_value);
2197
2209
                                                        {
2198
2210
                                                                gchar** email_addr_collection = NULL;
2199
2211
                                                                gint email_addr_collection_length1 = 0;
2200
2212
                                                                gint _email_addr_collection_size_ = 0;
2201
2213
                                                                gint email_addr_it = 0;
2202
 
                                                                email_addr_collection = _tmp20_;
2203
 
                                                                email_addr_collection_length1 = _tmp20__length1;
2204
 
                                                                for (email_addr_it = 0; email_addr_it < _tmp20__length1; email_addr_it = email_addr_it + 1) {
2205
 
                                                                        gchar* _tmp21_;
 
2214
                                                                email_addr_collection = _tmp25_;
 
2215
                                                                email_addr_collection_length1 = _tmp25__length1;
 
2216
                                                                for (email_addr_it = 0; email_addr_it < _tmp25__length1; email_addr_it = email_addr_it + 1) {
 
2217
                                                                        gchar* _tmp26_;
2206
2218
                                                                        gchar* email_addr = NULL;
2207
 
                                                                        _tmp21_ = g_strdup (email_addr_collection[email_addr_it]);
2208
 
                                                                        email_addr = _tmp21_;
 
2219
                                                                        _tmp26_ = g_strdup (email_addr_collection[email_addr_it]);
 
2220
                                                                        email_addr = _tmp26_;
2209
2221
                                                                        {
2210
 
                                                                                TpContactInfoField* _tmp22_;
2211
 
                                                                                gchar** _tmp23_;
2212
 
                                                                                gint _tmp23__length1;
2213
 
                                                                                GeeMultiMap* _tmp24_ = NULL;
 
2222
                                                                                TpContactInfoField* _tmp27_;
 
2223
                                                                                gchar** _tmp28_;
 
2224
                                                                                gint _tmp28__length1;
 
2225
                                                                                GeeMultiMap* _tmp29_ = NULL;
2214
2226
                                                                                GeeMultiMap* parameters;
2215
 
                                                                                const gchar* _tmp25_;
2216
 
                                                                                GeeMultiMap* _tmp26_;
2217
 
                                                                                FolksEmailFieldDetails* _tmp27_;
 
2227
                                                                                const gchar* _tmp30_;
 
2228
                                                                                GeeMultiMap* _tmp31_;
 
2229
                                                                                FolksEmailFieldDetails* _tmp32_;
2218
2230
                                                                                FolksEmailFieldDetails* email_fd;
2219
 
                                                                                GeeHashSet* _tmp28_;
2220
 
                                                                                FolksEmailFieldDetails* _tmp29_;
2221
 
                                                                                _tmp22_ = info;
2222
 
                                                                                _tmp23_ = _tmp22_->parameters;
2223
 
                                                                                _tmp23__length1 = _vala_array_length (_tmp22_->parameters);
2224
 
                                                                                _tmp24_ = _tpf_persona_afd_params_from_strv (self, _tmp23_, _tmp23__length1);
2225
 
                                                                                parameters = _tmp24_;
2226
 
                                                                                _tmp25_ = email_addr;
2227
 
                                                                                _tmp26_ = parameters;
2228
 
                                                                                _tmp27_ = folks_email_field_details_new (_tmp25_, _tmp26_);
2229
 
                                                                                email_fd = _tmp27_;
2230
 
                                                                                _tmp28_ = new_email_addresses;
2231
 
                                                                                _tmp29_ = email_fd;
2232
 
                                                                                gee_abstract_collection_add ((GeeAbstractCollection*) _tmp28_, _tmp29_);
 
2231
                                                                                GeeHashSet* _tmp33_;
 
2232
                                                                                FolksEmailFieldDetails* _tmp34_;
 
2233
                                                                                _tmp27_ = info;
 
2234
                                                                                _tmp28_ = _tmp27_->parameters;
 
2235
                                                                                _tmp28__length1 = _vala_array_length (_tmp27_->parameters);
 
2236
                                                                                _tmp29_ = _tpf_persona_afd_params_from_strv (self, _tmp28_, _tmp28__length1);
 
2237
                                                                                parameters = _tmp29_;
 
2238
                                                                                _tmp30_ = email_addr;
 
2239
                                                                                _tmp31_ = parameters;
 
2240
                                                                                _tmp32_ = folks_email_field_details_new (_tmp30_, _tmp31_);
 
2241
                                                                                email_fd = _tmp32_;
 
2242
                                                                                _tmp33_ = new_email_addresses;
 
2243
                                                                                _tmp34_ = email_fd;
 
2244
                                                                                gee_abstract_collection_add ((GeeAbstractCollection*) _tmp33_, _tmp34_);
2233
2245
                                                                                _g_object_unref0 (email_fd);
2234
2246
                                                                                _g_object_unref0 (parameters);
2235
2247
                                                                                _g_free0 (email_addr);
2237
2249
                                                                }
2238
2250
                                                        }
2239
2251
                                                } else {
2240
 
                                                        TpContactInfoField* _tmp30_;
2241
 
                                                        const gchar* _tmp31_;
2242
 
                                                        _tmp30_ = info;
2243
 
                                                        _tmp31_ = _tmp30_->field_name;
2244
 
                                                        if (g_strcmp0 (_tmp31_, "fn") == 0) {
2245
 
                                                                TpContactInfoField* _tmp32_;
2246
 
                                                                gchar** _tmp33_;
2247
 
                                                                gint _tmp33__length1;
2248
 
                                                                const gchar* _tmp34_;
2249
 
                                                                gchar* _tmp35_;
2250
 
                                                                const gchar* _tmp36_;
2251
 
                                                                _tmp32_ = info;
2252
 
                                                                _tmp33_ = _tmp32_->field_value;
2253
 
                                                                _tmp33__length1 = _vala_array_length (_tmp32_->field_value);
2254
 
                                                                _tmp34_ = _tmp33_[0];
2255
 
                                                                _tmp35_ = g_strdup (_tmp34_);
 
2252
                                                        TpContactInfoField* _tmp35_;
 
2253
                                                        const gchar* _tmp36_;
 
2254
                                                        _tmp35_ = info;
 
2255
                                                        _tmp36_ = _tmp35_->field_name;
 
2256
                                                        if (g_strcmp0 (_tmp36_, "fn") == 0) {
 
2257
                                                                TpContactInfoField* _tmp37_;
 
2258
                                                                gchar** _tmp38_;
 
2259
                                                                gint _tmp38__length1;
 
2260
                                                                const gchar* _tmp39_;
 
2261
                                                                gchar* _tmp40_;
 
2262
                                                                const gchar* _tmp41_;
 
2263
                                                                _tmp37_ = info;
 
2264
                                                                _tmp38_ = _tmp37_->field_value;
 
2265
                                                                _tmp38__length1 = _vala_array_length (_tmp37_->field_value);
 
2266
                                                                _tmp39_ = _tmp38_[0];
 
2267
                                                                _tmp40_ = g_strdup (_tmp39_);
2256
2268
                                                                _g_free0 (new_full_name);
2257
 
                                                                new_full_name = _tmp35_;
2258
 
                                                                _tmp36_ = new_full_name;
2259
 
                                                                if (_tmp36_ == NULL) {
2260
 
                                                                        gchar* _tmp37_;
2261
 
                                                                        _tmp37_ = g_strdup ("");
 
2269
                                                                new_full_name = _tmp40_;
 
2270
                                                                _tmp41_ = new_full_name;
 
2271
                                                                if (_tmp41_ == NULL) {
 
2272
                                                                        gchar* _tmp42_;
 
2273
                                                                        _tmp42_ = g_strdup ("");
2262
2274
                                                                        _g_free0 (new_full_name);
2263
 
                                                                        new_full_name = _tmp37_;
 
2275
                                                                        new_full_name = _tmp42_;
2264
2276
                                                                }
2265
2277
                                                        } else {
2266
 
                                                                TpContactInfoField* _tmp38_;
2267
 
                                                                const gchar* _tmp39_;
2268
 
                                                                _tmp38_ = info;
2269
 
                                                                _tmp39_ = _tmp38_->field_name;
2270
 
                                                                if (g_strcmp0 (_tmp39_, "tel") == 0) {
2271
 
                                                                        TpContactInfoField* _tmp40_;
2272
 
                                                                        gchar** _tmp41_;
2273
 
                                                                        gint _tmp41__length1;
2274
 
                                                                        _tmp40_ = info;
2275
 
                                                                        _tmp41_ = _tmp40_->field_value;
2276
 
                                                                        _tmp41__length1 = _vala_array_length (_tmp40_->field_value);
 
2278
                                                                TpContactInfoField* _tmp43_;
 
2279
                                                                const gchar* _tmp44_;
 
2280
                                                                _tmp43_ = info;
 
2281
                                                                _tmp44_ = _tmp43_->field_name;
 
2282
                                                                if (g_strcmp0 (_tmp44_, "tel") == 0) {
 
2283
                                                                        TpContactInfoField* _tmp45_;
 
2284
                                                                        gchar** _tmp46_;
 
2285
                                                                        gint _tmp46__length1;
 
2286
                                                                        _tmp45_ = info;
 
2287
                                                                        _tmp46_ = _tmp45_->field_value;
 
2288
                                                                        _tmp46__length1 = _vala_array_length (_tmp45_->field_value);
2277
2289
                                                                        {
2278
2290
                                                                                gchar** phone_num_collection = NULL;
2279
2291
                                                                                gint phone_num_collection_length1 = 0;
2280
2292
                                                                                gint _phone_num_collection_size_ = 0;
2281
2293
                                                                                gint phone_num_it = 0;
2282
 
                                                                                phone_num_collection = _tmp41_;
2283
 
                                                                                phone_num_collection_length1 = _tmp41__length1;
2284
 
                                                                                for (phone_num_it = 0; phone_num_it < _tmp41__length1; phone_num_it = phone_num_it + 1) {
2285
 
                                                                                        gchar* _tmp42_;
 
2294
                                                                                phone_num_collection = _tmp46_;
 
2295
                                                                                phone_num_collection_length1 = _tmp46__length1;
 
2296
                                                                                for (phone_num_it = 0; phone_num_it < _tmp46__length1; phone_num_it = phone_num_it + 1) {
 
2297
                                                                                        gchar* _tmp47_;
2286
2298
                                                                                        gchar* phone_num = NULL;
2287
 
                                                                                        _tmp42_ = g_strdup (phone_num_collection[phone_num_it]);
2288
 
                                                                                        phone_num = _tmp42_;
 
2299
                                                                                        _tmp47_ = g_strdup (phone_num_collection[phone_num_it]);
 
2300
                                                                                        phone_num = _tmp47_;
2289
2301
                                                                                        {
2290
 
                                                                                                TpContactInfoField* _tmp43_;
2291
 
                                                                                                gchar** _tmp44_;
2292
 
                                                                                                gint _tmp44__length1;
2293
 
                                                                                                GeeMultiMap* _tmp45_ = NULL;
 
2302
                                                                                                TpContactInfoField* _tmp48_;
 
2303
                                                                                                gchar** _tmp49_;
 
2304
                                                                                                gint _tmp49__length1;
 
2305
                                                                                                GeeMultiMap* _tmp50_ = NULL;
2294
2306
                                                                                                GeeMultiMap* parameters;
2295
 
                                                                                                const gchar* _tmp46_;
2296
 
                                                                                                GeeMultiMap* _tmp47_;
2297
 
                                                                                                FolksPhoneFieldDetails* _tmp48_;
 
2307
                                                                                                const gchar* _tmp51_;
 
2308
                                                                                                GeeMultiMap* _tmp52_;
 
2309
                                                                                                FolksPhoneFieldDetails* _tmp53_;
2298
2310
                                                                                                FolksPhoneFieldDetails* phone_fd;
2299
 
                                                                                                GeeHashSet* _tmp49_;
2300
 
                                                                                                FolksPhoneFieldDetails* _tmp50_;
2301
 
                                                                                                _tmp43_ = info;
2302
 
                                                                                                _tmp44_ = _tmp43_->parameters;
2303
 
                                                                                                _tmp44__length1 = _vala_array_length (_tmp43_->parameters);
2304
 
                                                                                                _tmp45_ = _tpf_persona_afd_params_from_strv (self, _tmp44_, _tmp44__length1);
2305
 
                                                                                                parameters = _tmp45_;
2306
 
                                                                                                _tmp46_ = phone_num;
2307
 
                                                                                                _tmp47_ = parameters;
2308
 
                                                                                                _tmp48_ = folks_phone_field_details_new (_tmp46_, _tmp47_);
2309
 
                                                                                                phone_fd = _tmp48_;
2310
 
                                                                                                _tmp49_ = new_phone_numbers;
2311
 
                                                                                                _tmp50_ = phone_fd;
2312
 
                                                                                                gee_abstract_collection_add ((GeeAbstractCollection*) _tmp49_, _tmp50_);
 
2311
                                                                                                GeeHashSet* _tmp54_;
 
2312
                                                                                                FolksPhoneFieldDetails* _tmp55_;
 
2313
                                                                                                _tmp48_ = info;
 
2314
                                                                                                _tmp49_ = _tmp48_->parameters;
 
2315
                                                                                                _tmp49__length1 = _vala_array_length (_tmp48_->parameters);
 
2316
                                                                                                _tmp50_ = _tpf_persona_afd_params_from_strv (self, _tmp49_, _tmp49__length1);
 
2317
                                                                                                parameters = _tmp50_;
 
2318
                                                                                                _tmp51_ = phone_num;
 
2319
                                                                                                _tmp52_ = parameters;
 
2320
                                                                                                _tmp53_ = folks_phone_field_details_new (_tmp51_, _tmp52_);
 
2321
                                                                                                phone_fd = _tmp53_;
 
2322
                                                                                                _tmp54_ = new_phone_numbers;
 
2323
                                                                                                _tmp55_ = phone_fd;
 
2324
                                                                                                gee_abstract_collection_add ((GeeAbstractCollection*) _tmp54_, _tmp55_);
2313
2325
                                                                                                _g_object_unref0 (phone_fd);
2314
2326
                                                                                                _g_object_unref0 (parameters);
2315
2327
                                                                                                _g_free0 (phone_num);
2317
2329
                                                                                }
2318
2330
                                                                        }
2319
2331
                                                                } else {
2320
 
                                                                        TpContactInfoField* _tmp51_;
2321
 
                                                                        const gchar* _tmp52_;
2322
 
                                                                        _tmp51_ = info;
2323
 
                                                                        _tmp52_ = _tmp51_->field_name;
2324
 
                                                                        if (g_strcmp0 (_tmp52_, "url") == 0) {
2325
 
                                                                                TpContactInfoField* _tmp53_;
2326
 
                                                                                gchar** _tmp54_;
2327
 
                                                                                gint _tmp54__length1;
2328
 
                                                                                _tmp53_ = info;
2329
 
                                                                                _tmp54_ = _tmp53_->field_value;
2330
 
                                                                                _tmp54__length1 = _vala_array_length (_tmp53_->field_value);
 
2332
                                                                        TpContactInfoField* _tmp56_;
 
2333
                                                                        const gchar* _tmp57_;
 
2334
                                                                        _tmp56_ = info;
 
2335
                                                                        _tmp57_ = _tmp56_->field_name;
 
2336
                                                                        if (g_strcmp0 (_tmp57_, "url") == 0) {
 
2337
                                                                                TpContactInfoField* _tmp58_;
 
2338
                                                                                gchar** _tmp59_;
 
2339
                                                                                gint _tmp59__length1;
 
2340
                                                                                _tmp58_ = info;
 
2341
                                                                                _tmp59_ = _tmp58_->field_value;
 
2342
                                                                                _tmp59__length1 = _vala_array_length (_tmp58_->field_value);
2331
2343
                                                                                {
2332
2344
                                                                                        gchar** url_collection = NULL;
2333
2345
                                                                                        gint url_collection_length1 = 0;
2334
2346
                                                                                        gint _url_collection_size_ = 0;
2335
2347
                                                                                        gint url_it = 0;
2336
 
                                                                                        url_collection = _tmp54_;
2337
 
                                                                                        url_collection_length1 = _tmp54__length1;
2338
 
                                                                                        for (url_it = 0; url_it < _tmp54__length1; url_it = url_it + 1) {
2339
 
                                                                                                gchar* _tmp55_;
 
2348
                                                                                        url_collection = _tmp59_;
 
2349
                                                                                        url_collection_length1 = _tmp59__length1;
 
2350
                                                                                        for (url_it = 0; url_it < _tmp59__length1; url_it = url_it + 1) {
 
2351
                                                                                                gchar* _tmp60_;
2340
2352
                                                                                                gchar* url = NULL;
2341
 
                                                                                                _tmp55_ = g_strdup (url_collection[url_it]);
2342
 
                                                                                                url = _tmp55_;
 
2353
                                                                                                _tmp60_ = g_strdup (url_collection[url_it]);
 
2354
                                                                                                url = _tmp60_;
2343
2355
                                                                                                {
2344
 
                                                                                                        TpContactInfoField* _tmp56_;
2345
 
                                                                                                        gchar** _tmp57_;
2346
 
                                                                                                        gint _tmp57__length1;
2347
 
                                                                                                        GeeMultiMap* _tmp58_ = NULL;
 
2356
                                                                                                        TpContactInfoField* _tmp61_;
 
2357
                                                                                                        gchar** _tmp62_;
 
2358
                                                                                                        gint _tmp62__length1;
 
2359
                                                                                                        GeeMultiMap* _tmp63_ = NULL;
2348
2360
                                                                                                        GeeMultiMap* parameters;
2349
 
                                                                                                        const gchar* _tmp59_;
2350
 
                                                                                                        GeeMultiMap* _tmp60_;
2351
 
                                                                                                        FolksUrlFieldDetails* _tmp61_;
 
2361
                                                                                                        const gchar* _tmp64_;
 
2362
                                                                                                        GeeMultiMap* _tmp65_;
 
2363
                                                                                                        FolksUrlFieldDetails* _tmp66_;
2352
2364
                                                                                                        FolksUrlFieldDetails* url_fd;
2353
 
                                                                                                        GeeHashSet* _tmp62_;
2354
 
                                                                                                        FolksUrlFieldDetails* _tmp63_;
2355
 
                                                                                                        _tmp56_ = info;
2356
 
                                                                                                        _tmp57_ = _tmp56_->parameters;
2357
 
                                                                                                        _tmp57__length1 = _vala_array_length (_tmp56_->parameters);
2358
 
                                                                                                        _tmp58_ = _tpf_persona_afd_params_from_strv (self, _tmp57_, _tmp57__length1);
2359
 
                                                                                                        parameters = _tmp58_;
2360
 
                                                                                                        _tmp59_ = url;
2361
 
                                                                                                        _tmp60_ = parameters;
2362
 
                                                                                                        _tmp61_ = folks_url_field_details_new (_tmp59_, _tmp60_);
2363
 
                                                                                                        url_fd = _tmp61_;
2364
 
                                                                                                        _tmp62_ = new_urls;
2365
 
                                                                                                        _tmp63_ = url_fd;
2366
 
                                                                                                        gee_abstract_collection_add ((GeeAbstractCollection*) _tmp62_, _tmp63_);
 
2365
                                                                                                        GeeHashSet* _tmp67_;
 
2366
                                                                                                        FolksUrlFieldDetails* _tmp68_;
 
2367
                                                                                                        _tmp61_ = info;
 
2368
                                                                                                        _tmp62_ = _tmp61_->parameters;
 
2369
                                                                                                        _tmp62__length1 = _vala_array_length (_tmp61_->parameters);
 
2370
                                                                                                        _tmp63_ = _tpf_persona_afd_params_from_strv (self, _tmp62_, _tmp62__length1);
 
2371
                                                                                                        parameters = _tmp63_;
 
2372
                                                                                                        _tmp64_ = url;
 
2373
                                                                                                        _tmp65_ = parameters;
 
2374
                                                                                                        _tmp66_ = folks_url_field_details_new (_tmp64_, _tmp65_);
 
2375
                                                                                                        url_fd = _tmp66_;
 
2376
                                                                                                        _tmp67_ = new_urls;
 
2377
                                                                                                        _tmp68_ = url_fd;
 
2378
                                                                                                        gee_abstract_collection_add ((GeeAbstractCollection*) _tmp67_, _tmp68_);
2367
2379
                                                                                                        _g_object_unref0 (url_fd);
2368
2380
                                                                                                        _g_object_unref0 (parameters);
2369
2381
                                                                                                        _g_free0 (url);
2379
2391
                        }
2380
2392
                }
2381
2393
        }
2382
 
        _tmp64_ = new_birthday_str;
2383
 
        if (g_strcmp0 (_tmp64_, "") != 0) {
 
2394
        _tmp69_ = new_birthday_str;
 
2395
        if (g_strcmp0 (_tmp69_, "") != 0) {
2384
2396
                GTimeVal timeval = {0};
2385
 
                const gchar* _tmp65_;
2386
 
                gboolean _tmp66_ = FALSE;
 
2397
                const gchar* _tmp70_;
 
2398
                gboolean _tmp71_ = FALSE;
2387
2399
                g_get_current_time (&timeval);
2388
 
                _tmp65_ = new_birthday_str;
2389
 
                _tmp66_ = g_time_val_from_iso8601 (_tmp65_, &timeval);
2390
 
                if (_tmp66_) {
2391
 
                        GTimeVal _tmp67_;
2392
 
                        GDateTime* _tmp68_;
 
2400
                _tmp70_ = new_birthday_str;
 
2401
                _tmp71_ = g_time_val_from_iso8601 (_tmp70_, &timeval);
 
2402
                if (_tmp71_) {
 
2403
                        GTimeVal _tmp72_;
 
2404
                        GDateTime* _tmp73_;
2393
2405
                        GDateTime* d;
2394
 
                        gboolean _tmp69_ = FALSE;
2395
 
                        GDateTime* _tmp70_;
2396
 
                        gboolean _tmp79_;
2397
 
                        _tmp67_ = timeval;
2398
 
                        _tmp68_ = g_date_time_new_from_timeval_utc (&_tmp67_);
2399
 
                        d = _tmp68_;
2400
 
                        _tmp70_ = self->priv->_birthday;
2401
 
                        if (_tmp70_ == NULL) {
2402
 
                                _tmp69_ = TRUE;
 
2406
                        gboolean _tmp74_ = FALSE;
 
2407
                        GDateTime* _tmp75_;
 
2408
                        gboolean _tmp84_;
 
2409
                        _tmp72_ = timeval;
 
2410
                        _tmp73_ = g_date_time_new_from_timeval_utc (&_tmp72_);
 
2411
                        d = _tmp73_;
 
2412
                        _tmp75_ = self->priv->_birthday;
 
2413
                        if (_tmp75_ == NULL) {
 
2414
                                _tmp74_ = TRUE;
2403
2415
                        } else {
2404
 
                                gboolean _tmp71_ = FALSE;
2405
 
                                GDateTime* _tmp72_;
2406
 
                                gboolean _tmp78_;
2407
 
                                _tmp72_ = self->priv->_birthday;
2408
 
                                if (_tmp72_ != NULL) {
2409
 
                                        GDateTime* _tmp73_;
2410
 
                                        GDateTime* _tmp74_;
2411
 
                                        GDateTime* _tmp75_ = NULL;
2412
 
                                        GDateTime* _tmp76_;
2413
 
                                        gboolean _tmp77_ = FALSE;
2414
 
                                        _tmp73_ = self->priv->_birthday;
2415
 
                                        _tmp74_ = d;
2416
 
                                        _tmp75_ = g_date_time_to_utc (_tmp74_);
2417
 
                                        _tmp76_ = _tmp75_;
2418
 
                                        _tmp77_ = g_date_time_equal (_tmp73_, _tmp76_);
2419
 
                                        _tmp71_ = !_tmp77_;
2420
 
                                        _g_date_time_unref0 (_tmp76_);
 
2416
                                gboolean _tmp76_ = FALSE;
 
2417
                                GDateTime* _tmp77_;
 
2418
                                gboolean _tmp83_;
 
2419
                                _tmp77_ = self->priv->_birthday;
 
2420
                                if (_tmp77_ != NULL) {
 
2421
                                        GDateTime* _tmp78_;
 
2422
                                        GDateTime* _tmp79_;
 
2423
                                        GDateTime* _tmp80_ = NULL;
 
2424
                                        GDateTime* _tmp81_;
 
2425
                                        gboolean _tmp82_ = FALSE;
 
2426
                                        _tmp78_ = self->priv->_birthday;
 
2427
                                        _tmp79_ = d;
 
2428
                                        _tmp80_ = g_date_time_to_utc (_tmp79_);
 
2429
                                        _tmp81_ = _tmp80_;
 
2430
                                        _tmp82_ = g_date_time_equal (_tmp78_, _tmp81_);
 
2431
                                        _tmp76_ = !_tmp82_;
 
2432
                                        _g_date_time_unref0 (_tmp81_);
2421
2433
                                } else {
2422
 
                                        _tmp71_ = FALSE;
 
2434
                                        _tmp76_ = FALSE;
2423
2435
                                }
2424
 
                                _tmp78_ = _tmp71_;
2425
 
                                _tmp69_ = _tmp78_;
 
2436
                                _tmp83_ = _tmp76_;
 
2437
                                _tmp74_ = _tmp83_;
2426
2438
                        }
2427
 
                        _tmp79_ = _tmp69_;
2428
 
                        if (_tmp79_) {
2429
 
                                GDateTime* _tmp80_;
2430
 
                                GDateTime* _tmp81_ = NULL;
2431
 
                                _tmp80_ = d;
2432
 
                                _tmp81_ = g_date_time_to_utc (_tmp80_);
 
2439
                        _tmp84_ = _tmp74_;
 
2440
                        if (_tmp84_) {
 
2441
                                GDateTime* _tmp85_;
 
2442
                                GDateTime* _tmp86_ = NULL;
 
2443
                                _tmp85_ = d;
 
2444
                                _tmp86_ = g_date_time_to_utc (_tmp85_);
2433
2445
                                _g_date_time_unref0 (self->priv->_birthday);
2434
 
                                self->priv->_birthday = _tmp81_;
 
2446
                                self->priv->_birthday = _tmp86_;
2435
2447
                                g_object_notify ((GObject*) self, "birthday");
2436
2448
                        }
2437
2449
                        _g_date_time_unref0 (d);
2438
2450
                } else {
2439
 
                        const gchar* _tmp82_;
2440
 
                        _tmp82_ = new_birthday_str;
2441
 
                        g_warning ("tpf-persona.vala:841: Failed to parse new birthday string '%s'", _tmp82_);
 
2451
                        const gchar* _tmp87_;
 
2452
                        _tmp87_ = new_birthday_str;
 
2453
                        g_warning ("tpf-persona.vala:841: Failed to parse new birthday string '%s'", _tmp87_);
2442
2454
                }
2443
2455
        } else {
2444
 
                GDateTime* _tmp83_;
2445
 
                _tmp83_ = self->priv->_birthday;
2446
 
                if (_tmp83_ != NULL) {
 
2456
                GDateTime* _tmp88_;
 
2457
                _tmp88_ = self->priv->_birthday;
 
2458
                if (_tmp88_ != NULL) {
2447
2459
                        _g_date_time_unref0 (self->priv->_birthday);
2448
2460
                        self->priv->_birthday = NULL;
2449
2461
                        g_object_notify ((GObject*) self, "birthday");
2450
2462
                }
2451
2463
        }
2452
 
        _tmp84_ = new_email_addresses;
2453
 
        _tmp85_ = self->priv->_email_addresses;
2454
 
        _tmp86_ = folks_internal_equal_sets (FOLKS_TYPE_EMAIL_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GeeSet*) _tmp84_, (GeeSet*) _tmp85_);
2455
 
        if (!_tmp86_) {
2456
 
                GeeHashSet* _tmp87_;
2457
 
                GeeHashSet* _tmp88_;
2458
 
                GeeHashSet* _tmp89_;
2459
 
                GeeSet* _tmp90_;
2460
 
                GeeSet* _tmp91_;
2461
 
                _tmp87_ = new_email_addresses;
2462
 
                _tmp88_ = _g_object_ref0 (_tmp87_);
 
2464
        _tmp89_ = new_email_addresses;
 
2465
        _tmp90_ = self->priv->_email_addresses;
 
2466
        _tmp91_ = folks_internal_equal_sets (FOLKS_TYPE_EMAIL_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GeeSet*) _tmp89_, (GeeSet*) _tmp90_);
 
2467
        if (!_tmp91_) {
 
2468
                GeeHashSet* _tmp92_;
 
2469
                GeeHashSet* _tmp93_;
 
2470
                GeeHashSet* _tmp94_;
 
2471
                GeeSet* _tmp95_;
 
2472
                GeeSet* _tmp96_;
 
2473
                _tmp92_ = new_email_addresses;
 
2474
                _tmp93_ = _g_object_ref0 (_tmp92_);
2463
2475
                _g_object_unref0 (self->priv->_email_addresses);
2464
 
                self->priv->_email_addresses = _tmp88_;
2465
 
                _tmp89_ = new_email_addresses;
2466
 
                _tmp90_ = gee_abstract_set_get_read_only_view ((GeeAbstractSet*) _tmp89_);
2467
 
                _tmp91_ = _tmp90_;
 
2476
                self->priv->_email_addresses = _tmp93_;
 
2477
                _tmp94_ = new_email_addresses;
 
2478
                _tmp95_ = gee_abstract_set_get_read_only_view ((GeeAbstractSet*) _tmp94_);
 
2479
                _tmp96_ = _tmp95_;
2468
2480
                _g_object_unref0 (self->priv->_email_addresses_ro);
2469
 
                self->priv->_email_addresses_ro = _tmp91_;
 
2481
                self->priv->_email_addresses_ro = _tmp96_;
2470
2482
                g_object_notify ((GObject*) self, "email-addresses");
2471
2483
        }
2472
 
        _tmp92_ = new_full_name;
2473
 
        _tmp93_ = self->priv->_full_name;
2474
 
        if (g_strcmp0 (_tmp92_, _tmp93_) != 0) {
2475
 
                const gchar* _tmp94_;
2476
 
                gchar* _tmp95_;
2477
 
                _tmp94_ = new_full_name;
2478
 
                _tmp95_ = g_strdup (_tmp94_);
 
2484
        _tmp97_ = new_full_name;
 
2485
        _tmp98_ = self->priv->_full_name;
 
2486
        if (g_strcmp0 (_tmp97_, _tmp98_) != 0) {
 
2487
                const gchar* _tmp99_;
 
2488
                gchar* _tmp100_;
 
2489
                _tmp99_ = new_full_name;
 
2490
                _tmp100_ = g_strdup (_tmp99_);
2479
2491
                _g_free0 (self->priv->_full_name);
2480
 
                self->priv->_full_name = _tmp95_;
 
2492
                self->priv->_full_name = _tmp100_;
2481
2493
                g_object_notify ((GObject*) self, "full-name");
2482
2494
        }
2483
 
        _tmp96_ = new_phone_numbers;
2484
 
        _tmp97_ = self->priv->_phone_numbers;
2485
 
        _tmp98_ = folks_internal_equal_sets (FOLKS_TYPE_PHONE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GeeSet*) _tmp96_, (GeeSet*) _tmp97_);
2486
 
        if (!_tmp98_) {
2487
 
                GeeHashSet* _tmp99_;
2488
 
                GeeHashSet* _tmp100_;
2489
 
                GeeHashSet* _tmp101_;
2490
 
                GeeSet* _tmp102_;
2491
 
                GeeSet* _tmp103_;
2492
 
                _tmp99_ = new_phone_numbers;
2493
 
                _tmp100_ = _g_object_ref0 (_tmp99_);
 
2495
        _tmp101_ = new_phone_numbers;
 
2496
        _tmp102_ = self->priv->_phone_numbers;
 
2497
        _tmp103_ = folks_internal_equal_sets (FOLKS_TYPE_PHONE_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GeeSet*) _tmp101_, (GeeSet*) _tmp102_);
 
2498
        if (!_tmp103_) {
 
2499
                GeeHashSet* _tmp104_;
 
2500
                GeeHashSet* _tmp105_;
 
2501
                GeeHashSet* _tmp106_;
 
2502
                GeeSet* _tmp107_;
 
2503
                GeeSet* _tmp108_;
 
2504
                _tmp104_ = new_phone_numbers;
 
2505
                _tmp105_ = _g_object_ref0 (_tmp104_);
2494
2506
                _g_object_unref0 (self->priv->_phone_numbers);
2495
 
                self->priv->_phone_numbers = _tmp100_;
2496
 
                _tmp101_ = new_phone_numbers;
2497
 
                _tmp102_ = gee_abstract_set_get_read_only_view ((GeeAbstractSet*) _tmp101_);
2498
 
                _tmp103_ = _tmp102_;
 
2507
                self->priv->_phone_numbers = _tmp105_;
 
2508
                _tmp106_ = new_phone_numbers;
 
2509
                _tmp107_ = gee_abstract_set_get_read_only_view ((GeeAbstractSet*) _tmp106_);
 
2510
                _tmp108_ = _tmp107_;
2499
2511
                _g_object_unref0 (self->priv->_phone_numbers_ro);
2500
 
                self->priv->_phone_numbers_ro = _tmp103_;
 
2512
                self->priv->_phone_numbers_ro = _tmp108_;
2501
2513
                g_object_notify ((GObject*) self, "phone-numbers");
2502
2514
        }
2503
 
        _tmp104_ = new_urls;
2504
 
        _tmp105_ = self->priv->_urls;
2505
 
        _tmp106_ = folks_internal_equal_sets (FOLKS_TYPE_URL_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GeeSet*) _tmp104_, (GeeSet*) _tmp105_);
2506
 
        if (!_tmp106_) {
2507
 
                GeeHashSet* _tmp107_;
2508
 
                GeeHashSet* _tmp108_;
2509
 
                GeeHashSet* _tmp109_;
2510
 
                GeeSet* _tmp110_;
2511
 
                GeeSet* _tmp111_;
2512
 
                _tmp107_ = new_urls;
2513
 
                _tmp108_ = _g_object_ref0 (_tmp107_);
 
2515
        _tmp109_ = new_urls;
 
2516
        _tmp110_ = self->priv->_urls;
 
2517
        _tmp111_ = folks_internal_equal_sets (FOLKS_TYPE_URL_FIELD_DETAILS, (GBoxedCopyFunc) g_object_ref, g_object_unref, (GeeSet*) _tmp109_, (GeeSet*) _tmp110_);
 
2518
        if (!_tmp111_) {
 
2519
                GeeHashSet* _tmp112_;
 
2520
                GeeHashSet* _tmp113_;
 
2521
                GeeHashSet* _tmp114_;
 
2522
                GeeSet* _tmp115_;
 
2523
                GeeSet* _tmp116_;
 
2524
                _tmp112_ = new_urls;
 
2525
                _tmp113_ = _g_object_ref0 (_tmp112_);
2514
2526
                _g_object_unref0 (self->priv->_urls);
2515
 
                self->priv->_urls = _tmp108_;
2516
 
                _tmp109_ = new_urls;
2517
 
                _tmp110_ = gee_abstract_set_get_read_only_view ((GeeAbstractSet*) _tmp109_);
2518
 
                _tmp111_ = _tmp110_;
 
2527
                self->priv->_urls = _tmp113_;
 
2528
                _tmp114_ = new_urls;
 
2529
                _tmp115_ = gee_abstract_set_get_read_only_view ((GeeAbstractSet*) _tmp114_);
 
2530
                _tmp116_ = _tmp115_;
2519
2531
                _g_object_unref0 (self->priv->_urls_ro);
2520
 
                self->priv->_urls_ro = _tmp111_;
 
2532
                self->priv->_urls_ro = _tmp116_;
2521
2533
                g_object_notify ((GObject*) self, "urls");
2522
2534
        }
2523
2535
        _g_list_free0 (contact_info);
2785
2797
}
2786
2798
 
2787
2799
 
2788
 
static void block1_data_unref (Block1Data* _data1_) {
 
2800
static void block1_data_unref (void * _userdata_) {
 
2801
        Block1Data* _data1_;
 
2802
        _data1_ = (Block1Data*) _userdata_;
2789
2803
        if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
2790
2804
                _g_object_unref0 (_data1_->account_found);
2791
2805
                _g_object_unref0 (_data1_->conn);