Add/use init functions in the XMPPStanza classes
This commit is contained in:
parent
4e73c4a229
commit
3f2a22140e
3 changed files with 158 additions and 39 deletions
29
XMPPStanza.h
29
XMPPStanza.h
|
@ -14,9 +14,23 @@
|
|||
@property (copy) OFString *ID;
|
||||
|
||||
+ stanzaWithName: (OFString*)name;
|
||||
+ stanzaWithName: (OFString*)name
|
||||
type: (OFString*)type_;
|
||||
+ stanzaWithName: (OFString*)name
|
||||
ID: (OFString*)ID_;
|
||||
+ stanzaWithName: (OFString*)name
|
||||
type: (OFString*)type_
|
||||
ID: (OFString*)ID_;
|
||||
+ stanzaWithElement: (OFXMLElement*)elem;
|
||||
|
||||
- initWithName: (OFString*)name;
|
||||
- initWithName: (OFString*)name
|
||||
type: (OFString*)type_;
|
||||
- initWithName: (OFString*)name
|
||||
ID: (OFString*)ID_;
|
||||
- initWithName: (OFString*)name
|
||||
type: (OFString*)type_
|
||||
ID: (OFString*)ID_;
|
||||
- initWithElement: (OFXMLElement*)elem;
|
||||
@end
|
||||
|
||||
|
@ -26,6 +40,9 @@
|
|||
|
||||
+ IQWithType: (OFString*)type_
|
||||
ID: (OFString*)ID_;
|
||||
|
||||
- initWithType: (OFString*)type_
|
||||
ID: (OFString*)ID_;
|
||||
@end
|
||||
|
||||
@interface XMPPMessage: XMPPStanza
|
||||
|
@ -38,6 +55,12 @@
|
|||
+ messageWithType: (OFString*)type_
|
||||
ID: (OFString*)ID_;
|
||||
|
||||
- init;
|
||||
- initWithID: (OFString*)ID_;
|
||||
- initWithType: (OFString*)type_;
|
||||
- initWithType: (OFString*)type_
|
||||
ID: (OFString*)ID_;
|
||||
|
||||
- (void)addBody: (OFString*)body;
|
||||
@end
|
||||
|
||||
|
@ -51,6 +74,12 @@
|
|||
+ presenceWithType: (OFString*)type_
|
||||
ID: (OFString*)ID_;
|
||||
|
||||
- init;
|
||||
- initWithID: (OFString*)ID_;
|
||||
- initWithType: (OFString*)type_;
|
||||
- initWithType: (OFString*)type_
|
||||
ID: (OFString*)ID_;
|
||||
|
||||
- (void)addShow: (OFString*)show;
|
||||
- (void)addStatus: (OFString*)status;
|
||||
- (void)addPriority: (int8_t)priority;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue