Add methods to generate error and result replies for IQ stanzas

This commit is contained in:
Florian Zeitz 2011-05-12 23:04:49 +02:00
parent 39d57946d9
commit 7d3796c62f
4 changed files with 77 additions and 21 deletions

View file

@ -46,4 +46,33 @@
*/
- initWithType: (OFString*)type
ID: (OFString*)ID;
/**
* Generates a result IQ for the receiving object
*
* \return A new autoreleased XMPPIQ
*/
- (XMPPIQ*)resultIQ;
/**
* Generates a error IQ for the receiving object
*
* \param type A error type as defined by RFC 6120
* \param condition A error condition as defined by RFC 6120
* \param text A descriptive text
* \return A new autoreleased XMPPIQ
*/
- (XMPPIQ*)errorIQWithType: (OFString*)type
condition: (OFString*)condition
text: (OFString*)text;
/**
* Generates a error IQ for the receiving object
*
* \param type A error type as defined by RFC 6120
* \param condition A defined conditions from RFC 6120
* \return A new autoreleased XMPPIQ
*/
- (XMPPIQ*)errorIQWithType: (OFString*)type
condition: (OFString*)condition;
@end