@@ -1,9 +1,10 @@ /* - * Copyright (c) 2011, 2012, Jonathan Schleifer + * Copyright (c) 2011, 2012, 2013, 2016, Jonathan Schleifer + * Copyright (c) 2012, Florian Zeitz * - * 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 * copyright notice and this permission notice is present in all copies. * @@ -33,32 +34,21 @@ OFString *_name; OFString *_subscription; OFArray *_groups; } -#ifdef OF_HAVE_PROPERTIES /// \brief The JID of the roster item @property (copy) XMPPJID *JID; /// \brief The name of the roster item to show to the user @property (copy) OFString *name; /// \brief The subscription for the roster item @property (copy) OFString *subscription; /// \brief An array of groups in which the roster item is @property (copy) OFArray *groups; -#endif /** * \brief Creates a new autoreleased roster item. * * \return A new autoreleased roster item. */ + (instancetype)rosterItem; - -- (void)setJID: (XMPPJID*)JID; -- (XMPPJID*)JID; -- (void)setName: (OFString*)name; -- (OFString*)name; -- (void)setSubscription: (OFString*)subscription; -- (OFString*)subscription; -- (void)setGroups: (OFArray*)groups; -- (OFArray*)groups; @end