ObjXMPP  Check-in [86a0735116]

Overview
Comment:Use self for XMPPStanza's init
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 86a0735116e402949ee5b4156666e2d18b6f009d71de082e37322bafe181b2e9
User & Date: florob@babelmonkeys.de on 2011-02-12 16:58:43
Other Links: manifest | tags
Context
2011-02-13
00:36
Add a class for handling JIDs. check-in: 150f2fa932 user: florob@babelmonkeys.de tags: trunk
2011-02-12
16:58
Use self for XMPPStanza's init check-in: 86a0735116 user: florob@babelmonkeys.de tags: trunk
00:25
Do more checking on handling the resource bind check-in: 38ff5b873e user: florob@babelmonkeys.de tags: trunk
Changes

Modified src/XMPPStanza.m from [5d5d301074] to [ac1bee5248].

66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
	    ID: (OFString*)ID_
{
	if (!([name_ isEqual: @"iq"] ||
	      [name_ isEqual: @"message"] ||
	      [name_ isEqual: @"presence"]))
		of_log(@"Invalid stanza name!");

	id ret;
	ret = [super initWithName: name_];
	[self setDefaultNamespace: @"jabber:client"];
	if (type_)
		[ret setType: type_];
	if (ID_)
		[ret setID: ID_];
	return ret;
}

- initWithElement: (OFXMLElement*)elem
{
	self = [super initWithName: elem.name
			 namespace: elem.namespace];








<
|


|

|
|







66
67
68
69
70
71
72

73
74
75
76
77
78
79
80
81
82
83
84
85
86
	    ID: (OFString*)ID_
{
	if (!([name_ isEqual: @"iq"] ||
	      [name_ isEqual: @"message"] ||
	      [name_ isEqual: @"presence"]))
		of_log(@"Invalid stanza name!");


	self = [super initWithName: name_];
	[self setDefaultNamespace: @"jabber:client"];
	if (type_)
		[self setType: type_];
	if (ID_)
		[self setID: ID_];
	return self;
}

- initWithElement: (OFXMLElement*)elem
{
	self = [super initWithName: elem.name
			 namespace: elem.namespace];