Move auth and bound handling to delegate.
This commit is contained in:
parent
b6314ccbc9
commit
4eb4d6bc9c
3 changed files with 40 additions and 13 deletions
15
tests/test.m
15
tests/test.m
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue