Make use of optional protocols.

This commit is contained in:
Jonathan Schleifer 2011-03-21 14:56:06 +01:00
parent 932d805e95
commit b6314ccbc9
2 changed files with 4 additions and 2 deletions

View file

@ -31,6 +31,7 @@
@class XMPPAuthenticator;
@protocol XMPPConnectionDelegate
@optional
- (void)connectionWasClosed: (XMPPConnection*)conn;
- (void)connection: (XMPPConnection*)conn
didReceiveIQ: (XMPPIQ*)iq;
@ -43,7 +44,8 @@
/**
* \brief A class which abstracts a connection to an XMPP service.
*/
@interface XMPPConnection: OFObject <OFXMLElementBuilderDelegate>
@interface XMPPConnection: OFObject <OFXMLParserDelegate,
OFXMLElementBuilderDelegate>
{
OFTCPSocket *sock;
OFXMLParser *parser;