Move auth and bound handling to delegate.

This commit is contained in:
Jonathan Schleifer 2011-03-21 15:44:42 +01:00
parent b6314ccbc9
commit 4eb4d6bc9c
3 changed files with 40 additions and 13 deletions

View file

@ -105,9 +105,15 @@ OF_APPLICATION_DELEGATE(AppDelegate)
}
}
- (void)connectionWasClosed: (XMPPConnection*)conn
- (void)connectionWasAuthenticated: (XMPPConnection*)conn
{
of_log(@"Connection was closed!");
of_log(@"Auth successful");
}
- (void)connection: (XMPPConnection*)conn
wasBoundToJID: (XMPPJID*)jid
{
of_log(@"Bound to JID: %@", [jid fullJID]);
}
- (void)connection: (XMPPConnection*)conn
@ -127,4 +133,9 @@ OF_APPLICATION_DELEGATE(AppDelegate)
{
of_log(@"Presence: %@", pres);
}
- (void)connectionWasClosed: (XMPPConnection*)conn
{
of_log(@"Connection was closed!");
}
@end