Use one file per class.
This commit is contained in:
parent
2fa82b833c
commit
fa59d3ce32
11 changed files with 361 additions and 355 deletions
82
src/XMPPMessage.h
Normal file
82
src/XMPPMessage.h
Normal file
|
@ -0,0 +1,82 @@
|
|||
#import "XMPPStanza.h"
|
||||
|
||||
/**
|
||||
* \brief A class describing a message stanza
|
||||
*/
|
||||
@interface XMPPMessage: XMPPStanza
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new XMPPMessage
|
||||
*
|
||||
* \return A new autoreleased XMPPMessage
|
||||
*/
|
||||
+ message;
|
||||
|
||||
/**
|
||||
* Creates a new XMPPMessage with a certain id
|
||||
*
|
||||
* \param ID The value for the stanza's id attribute
|
||||
* \return A new autoreleased XMPPMessage
|
||||
*/
|
||||
+ messageWithID: (OFString*)ID;
|
||||
|
||||
/**
|
||||
* Creates a new XMPPMessage with a certain type
|
||||
*
|
||||
* \param type The value for the stanza's type attribute
|
||||
* \return A new autoreleased XMPPMessage
|
||||
*/
|
||||
+ messageWithType: (OFString*)type;
|
||||
|
||||
/**
|
||||
* Creates a new XMPPMessage with a certain type and id
|
||||
*
|
||||
* \param type The value for the stanza's type attribute
|
||||
* \param ID The value for the stanza's id attribute
|
||||
* \return A new autoreleased XMPPMessage
|
||||
*/
|
||||
+ messageWithType: (OFString*)type
|
||||
ID: (OFString*)ID;
|
||||
|
||||
/**
|
||||
* Initializes an already allocated XMPPMessage
|
||||
*
|
||||
* \return A initialized XMPPMessage
|
||||
*/
|
||||
- init;
|
||||
|
||||
/**
|
||||
* Initializes an already allocated XMPPMessage with a certain id
|
||||
*
|
||||
* \param ID The value for the stanza's id attribute
|
||||
* \return A initialized XMPPMessage
|
||||
*/
|
||||
- initWithID: (OFString*)ID;
|
||||
|
||||
/**
|
||||
* Initializes an already allocated XMPPMessage with a certain type
|
||||
*
|
||||
* \param type The value for the stanza's type attribute
|
||||
* \return A initialized XMPPMessage
|
||||
*/
|
||||
- initWithType: (OFString*)type;
|
||||
|
||||
/**
|
||||
* Initializes an already allocated XMPPMessage with a certain type and id
|
||||
*
|
||||
* \param type The value for the stanza's type attribute
|
||||
* \param ID The value for the stanza's id attribute
|
||||
* \return A initialized XMPPMessage
|
||||
*/
|
||||
- initWithType: (OFString*)type
|
||||
ID: (OFString*)ID;
|
||||
|
||||
/**
|
||||
* Adds a body element to the XMPPMessage
|
||||
*
|
||||
* \param body The text content of the body element
|
||||
*/
|
||||
- (void)addBody: (OFString*)body;
|
||||
@end
|
Loading…
Add table
Add a link
Reference in a new issue