ObjXMPP  Diff

Differences From Artifact [e5a3313b65]:

To Artifact [1ae4e0c618]:


157
158
159
160
161
162
163


164
165


166
167
168
169
170
171
172
173
174


175
176


177
178
179
180
181
182
183
184
185


186
187


188
189
190
191
192
193
194
195
196


197
198


199
200
157
158
159
160
161
162
163
164
165


166
167
168
169
170
171
172
173
174
175
176
177
178


179
180
181
182
183
184
185
186
187
188
189
190
191


192
193
194
195
196
197
198
199
200
201
202
203
204


205
206
207
208







+
+
-
-
+
+









+
+
-
-
+
+









+
+
-
-
+
+









+
+
-
-
+
+


- (void)setFrom: (XMPPJID*)from_
{
	XMPPJID *old = from;
	from = [from_ copy];
	[old release];

	[self removeAttributeForName: @"from"];

	if (from_ != nil)
	[self addAttributeWithName: @"from"
		       stringValue: from_.fullJID];
		[self addAttributeWithName: @"from"
			       stringValue: from_.fullJID];
}

- (void)setTo: (XMPPJID*)to_
{
	XMPPJID *old = to;
	to = [to_ copy];
	[old release];

	[self removeAttributeForName: @"to"];

	if (to_ != nil)
	[self addAttributeWithName: @"to"
		       stringValue: to_.fullJID];
		[self addAttributeWithName: @"to"
			       stringValue: to_.fullJID];
}

- (void)setType: (OFString*)type_
{
	OFString *old = type;
	type = [type_ copy];
	[old release];

	[self removeAttributeForName: @"type"];

	if (type_ != nil)
	[self addAttributeWithName: @"type"
		       stringValue: type];
		[self addAttributeWithName: @"type"
			       stringValue: type];
}

- (void)setID: (OFString*)ID_
{
	OFString* old = ID;
	ID = [ID_ copy];
	[old release];

	[self removeAttributeForName: @"id"];

	if (ID_ != nil)
	[self addAttributeWithName: @"id"
		       stringValue: ID];
		[self addAttributeWithName: @"id"
			       stringValue: ID];
}
@end