Add stanza classes XMPPStanza, XMPPIQ, XMPPMessage and XMPPPresence

This commit is contained in:
Florian Zeitz 2011-02-10 03:54:08 +01:00
parent dde9ac7d85
commit 31f444510d
5 changed files with 313 additions and 3 deletions

View file

@ -1,4 +1,5 @@
#import "XMPPConnection.h"
#import "XMPPStanza.h"
#define NS_BIND @"urn:ietf:params:xml:ns:xmpp-bind"
#define NS_CLIENT @"jabber:client"
@ -135,8 +136,7 @@
- (void)_sendResourceBind
{
OFXMLElement *iq = [OFXMLElement elementWithName: @"iq"];
[iq addAttributeWithName: @"type" stringValue: @"set"];
XMPPIQ *iq = [XMPPIQ IQWithType: @"set" ID: @"bind0"];
[iq addChild: [OFXMLElement elementWithName: @"bind"
namespace: NS_BIND]];