Differences From Artifact [025bb21619]:
- File src/XMPPRoster.m — part of check-in [8dfcb87717] at 2013-02-12 21:36:39 on branch trunk — Prefix all ivars with an underscore. (user: js, size: 9985) [annotate] [blame] [check-ins using]
To Artifact [1fa0d01ca6]:
- File
src/XMPPRoster.m
— part of check-in
[c9bb52e823]
at
2013-02-23 13:49:32
on branch trunk
— Rename XMPPJSONFileStorage to XMPPFileStorage.
It uses BinaryPack instead of JSON now. (user: js, size: 9982) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
301 302 303 304 305 306 307 | if ([groups count] > 0) [rosterItem setGroups: groups]; return rosterItem; } | | | | | | 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 | if ([groups count] > 0) [rosterItem setGroups: groups]; return rosterItem; } - (void)XMPP_handleInitialRosterForConnection: (XMPPConnection*)connection IQ: (XMPPIQ*)IQ { OFXMLElement *rosterElement; OFEnumerator *enumerator; OFXMLElement *element; rosterElement = [IQ elementForName: @"query" namespace: XMPP_NS_ROSTER]; if ([connection supportsRosterVersioning]) { if (rosterElement == nil) { OFDictionary *items = [_dataStorage dictionaryForPath: @"roster.items"]; OFEnumerator *enumerator = [items objectEnumerator]; OFDictionary *item; while ((item = [enumerator nextObject]) != nil) { |
︙ | ︙ | |||
357 358 359 360 361 362 363 | pool = [OFAutoreleasePool new]; rosterItem = [self XMPP_rosterItemWithXMLElement: element]; [self XMPP_updateRosterItem: rosterItem]; [pool release]; } | | | 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 | pool = [OFAutoreleasePool new]; rosterItem = [self XMPP_rosterItemWithXMLElement: element]; [self XMPP_updateRosterItem: rosterItem]; [pool release]; } if ([connection supportsRosterVersioning] && rosterElement != nil) { OFString *ver = [[rosterElement attributeForName: @"ver"] stringValue]; [_dataStorage setStringValue: ver forPath: @"roster.ver"]; [_dataStorage save]; } [_delegates broadcastSelector: @selector(rosterWasReceived:) withObject: self]; } @end |