Add a delegate for incoming/outgoing elements.

This commit is contained in:
Jonathan Schleifer 2011-12-12 00:27:32 +01:00
parent 4aaa754a4d
commit fdf33f356a
3 changed files with 25 additions and 2 deletions

View file

@ -111,6 +111,18 @@ OF_APPLICATION_DELEGATE(AppDelegate)
}
}
- (void)connection: (XMPPConnection*)conn
didReceiveElement: (OFXMLElement*)element
{
of_log(@"In: %@", element);
}
- (void)connection: (XMPPConnection*)conn
didSendElement: (OFXMLElement*)element
{
of_log(@"Out: %@", element);
}
- (void)connectionWasAuthenticated: (XMPPConnection*)conn
{
of_log(@"Auth successful");