ObjXMPP  Diff

Differences From Artifact [8346a27c76]:

To Artifact [e5cbaf0e95]:


30
31
32
33
34
35
36
37

38
39

40
41
42

43
44

45
46
47
48


49
50
51


52
53
54
55
56
57
58
59
60

61
62
63

64
65
66

67
68

69
70
71
72
73


74
75
76
77


78
79
80
81
82
83
84
30
31
32
33
34
35
36

37
38

39
40
41

42
43

44
45
46


47
48
49


50
51
52
53
54
55
56
57
58
59

60
61
62

63
64
65

66
67

68
69
70
71


72
73
74
75


76
77
78
79
80
81
82
83
84







-
+

-
+


-
+

-
+


-
-
+
+

-
-
+
+








-
+


-
+


-
+

-
+



-
-
+
+


-
-
+
+








@implementation XMPPMessage
+ message
{
	return [[[self alloc] init] autorelease];
}

+ messageWithID: (OFString*)ID_
+ messageWithID: (OFString*)ID
{
	return [[[self alloc] initWithID: ID_] autorelease];
	return [[[self alloc] initWithID: ID] autorelease];
}

+ messageWithType: (OFString*)type_
+ messageWithType: (OFString*)type
{
	return [[[self alloc] initWithType: type_] autorelease];
	return [[[self alloc] initWithType: type] autorelease];
}

+ messageWithType: (OFString*)type_
	       ID: (OFString*)ID_
+ messageWithType: (OFString*)type
	       ID: (OFString*)ID
{
	return [[[self alloc] initWithType: type_
					ID: ID_] autorelease];
	return [[[self alloc] initWithType: type
					ID: ID] autorelease];
}

- init
{
	return [self initWithType: nil
			       ID: nil];
}

- initWithID: (OFString*)ID_
- initWithID: (OFString*)ID
{
	return [self initWithType: nil
			       ID: ID_];
			       ID: ID];
}

- initWithType: (OFString*)type_
- initWithType: (OFString*)type
{
	return [self initWithType: type_
	return [self initWithType: type
			       ID: nil];
}

- initWithType: (OFString*)type_
	    ID: (OFString*)ID_
- initWithType: (OFString*)type
	    ID: (OFString*)ID
{
	return [super initWithName: @"message"
			      type: type_
				ID: ID_];
			      type: type
				ID: ID];
}

- (void)setBody: (OFString*)body
{
	OFXMLElement *oldBody = [self elementForName: @"body"
					   namespace: XMPP_NS_CLIENT];