ObjXMPP  Diff

Differences From Artifact [55abb9bbde]:

To Artifact [b70c08218e]:


19
20
21
22
23
24
25


26
27
28
29
30
31
32

33
34

35
36
37
38
39
40
41
42


43
44
45
46
47
48
49
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

34
35

36
37
38
39
40
41
42


43
44
45
46
47
48
49
50
51







+
+






-
+

-
+






-
-
+
+







 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#import <ObjFW/ObjFW.h>

@class XMPPJID;

/**
 * \brief A class describing an XMPP Stanza.
 */
@interface XMPPStanza: OFXMLElement
{
	/// The value of the stanza's from attribute
	OFString *from;
	XMPPJID *from;
	/// The value of the stanza's to attribute
	OFString *to;
	XMPPJID *to;
	/// The value of the stanza's type attribute
	OFString *type;
	/// The value of the stanza's id attribute
	OFString *ID;
}

@property (copy) OFString *from;
@property (copy) OFString *to;
@property (copy) XMPPJID *from;
@property (copy) XMPPJID *to;
@property (copy) OFString *type;
@property (copy) OFString *ID;

/**
 * Creates a new autoreleased XMPPStanza with the specified name.
 *
 * \param name The stanza's name (one of iq, message or presence)