Adjust to ObjFW changes
This commit is contained in:
parent
4b6e5e25ed
commit
1cf318f91e
31 changed files with 180 additions and 601 deletions
|
@ -1,7 +1,8 @@
|
|||
/*
|
||||
* Copyright (c) 2013, Florian Zeitz <florob@babelmonkeys.de>
|
||||
* Copyright (c) 2013, 2016, Jonathan Schleifer <js@heap.zone>
|
||||
*
|
||||
* https://webkeks.org/git/?p=objxmpp.git
|
||||
* https://heap.zone/git/?p=objxmpp.git
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
|
@ -29,6 +30,10 @@
|
|||
#import "namespaces.h"
|
||||
|
||||
@implementation XMPPDiscoNode
|
||||
|
||||
@synthesize JID = _JID, node = _node, name = _name, identities = _identities;
|
||||
@synthesize features = _features, childNodes = _childNodes;
|
||||
|
||||
+ (instancetype)discoNodeWithJID: (XMPPJID*)JID
|
||||
node: (OFString*)node;
|
||||
{
|
||||
|
@ -36,7 +41,6 @@
|
|||
node: node] autorelease];
|
||||
}
|
||||
|
||||
|
||||
+ (instancetype)discoNodeWithJID: (XMPPJID*)JID
|
||||
node: (OFString*)node
|
||||
name: (OFString*)name
|
||||
|
@ -94,36 +98,6 @@
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (XMPPJID*)JID
|
||||
{
|
||||
OF_GETTER(_JID, true)
|
||||
}
|
||||
|
||||
- (OFString*)node
|
||||
{
|
||||
OF_GETTER(_node, true)
|
||||
}
|
||||
|
||||
- (OFString*)name
|
||||
{
|
||||
OF_GETTER(_name, true)
|
||||
}
|
||||
|
||||
- (OFSortedList*)identities
|
||||
{
|
||||
OF_GETTER(_identities, true)
|
||||
}
|
||||
|
||||
- (OFSortedList*)features
|
||||
{
|
||||
OF_GETTER(_features, true)
|
||||
}
|
||||
|
||||
- (OFDictionary*)childNodes
|
||||
{
|
||||
OF_GETTER(_childNodes, true)
|
||||
}
|
||||
|
||||
- (void)addIdentity: (XMPPDiscoIdentity*)identity
|
||||
{
|
||||
[_identities insertObject: identity];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue