@@ -1,10 +1,10 @@ /* - * Copyright (c) 2011, Jonathan Schleifer - * Copyright (c) 2011, Florian Zeitz + * Copyright (c) 2011, 2012, 2013, 2016, Jonathan Schleifer + * Copyright (c) 2011, 2013, 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. * @@ -26,18 +26,28 @@ /** * \brief A class describing a presence stanza. */ @interface XMPPPresence: XMPPStanza { - OFString *_status, *_show, *_priority; + OFString *_status, *_show; + OFNumber *_priority; } -#ifdef OF_HAVE_PROPERTIES +/** + * The text content of the status element. + */ @property (copy) OFString *status; + +/** + * The text content of the show element of the presence stanza. + */ @property (copy) OFString *show; + +/** + * The numeric content of the priority element. + */ @property (copy) OFNumber *priority; -#endif /** * \brief Creates a new autoreleased XMPPPresence. * * \return A new autoreleased XMPPPresence @@ -95,49 +105,6 @@ * \param ID The value for the stanza's id attribute * \return A initialized XMPPPresence */ - initWithType: (OFString*)type ID: (OFString*)ID; - -/** - * \brief Sets/Adds the show element of the presence stanza. - * - * \param show The text content of the show element - */ -- (void)setShow: (OFString*)show; - -/** - * \brief Returns the text content of the show element of the presence stanza. - * - * \return The text content of the show element of the presence stanza. - */ -- (OFString*)show; - -/** - * \brief Sets/Adds the status element of the presence stanza. - * - * \param status The text content of the status element - */ -- (void)setStatus: (OFString*)status; - -/** - * \brief Returns the text content of the status element of the presence stanza. - * - * \return The text content of the status element of the presence stanza. - */ -- (OFString*)status; - -/** - * \brief Sets/Adds the priority element of the presence stanza. - * - * \param priority The numeric content of the priority element - */ -- (void)setPriority: (OFNumber*)priority; - -/** - * \brief Returns the numeric content of the priority element of the presence - * stanza. - * - * \return The numeric content of the priority element of the presence stanza. - */ -- (OFNumber*)priority; @end