ObjXMPP  Check-in [e009b1b5c8]

Overview
Comment:If a presence has no type, assume "available", as per RFC 6121.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e009b1b5c8cc71a2892c6cdeb661564073cc1cba34f11718aa7811d9765eac52
User & Date: js on 2012-01-25 20:55:23
Other Links: manifest | tags
Context
2012-01-26
13:52
Fix XMPPPresence's getter for type check-in: 9d27e39805 user: florob@babelmonkeys.de tags: trunk
12:34
Update Xcode project and reexport ObjOpenSSL. check-in: 42adbaeaf5 user: js tags: trunk
2012-01-25
20:55
If a presence has no type, assume "available", as per RFC 6121. check-in: e009b1b5c8 user: js tags: trunk
19:35
Fix a missing include. check-in: 102d421456 user: js tags: trunk
Changes

Modified src/XMPPPresence.m from [f27346ed8d] to [9d5fdb884e].

72
73
74
75
76
77
78






79
80
81
82
83
84
85
- initWithType: (OFString*)type_
	    ID: (OFString*)ID_
{
	return [super initWithName: @"presence"
			      type: type_
				ID: ID_];
}







- (void)addShow: (OFString*)show
{
	[self addChild: [OFXMLElement elementWithName: @"show"
					    namespace: XMPP_NS_CLIENT
					  stringValue: show]];
}







>
>
>
>
>
>







72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
- initWithType: (OFString*)type_
	    ID: (OFString*)ID_
{
	return [super initWithName: @"presence"
			      type: type_
				ID: ID_];
}

- (OFString*)type
{
	if (type == nil)
		return @"available";
}

- (void)addShow: (OFString*)show
{
	[self addChild: [OFXMLElement elementWithName: @"show"
					    namespace: XMPP_NS_CLIENT
					  stringValue: show]];
}