Add methods to generate error and result replies for IQ stanzas
This commit is contained in:
parent
39d57946d9
commit
7d3796c62f
4 changed files with 77 additions and 21 deletions
29
src/XMPPIQ.h
29
src/XMPPIQ.h
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue