Add a class for handling JIDs.

This commit is contained in:
Florian Zeitz 2011-02-13 01:36:25 +01:00
parent b64ae746e6
commit 6dc9e5e217
5 changed files with 200 additions and 4 deletions

View file

@ -13,6 +13,7 @@
@synthesize password;
@synthesize server;
@synthesize resource;
@synthesize JID;
@synthesize port;
@synthesize useTLS;
@synthesize delegate;
@ -218,8 +219,9 @@
if ([bindElem.name isEqual: @"bind"] &&
[bindElem.namespace isEqual: NS_BIND]) {
OFXMLElement *jidElem = bindElem.children.firstObject;
of_log(@"Bound to JID: %@", [jidElem.children.firstObject
stringValue]);
JID = [[XMPPJID alloc] initWithString:
[jidElem.children.firstObject stringValue]];
of_log(@"Bound to JID: %@", [JID fullJID]);
}
}