StropheCappuccino API 1.0.0
TNStropheStanza Class Reference

#import <TNStropheStanza.h>

Inheritance diagram for TNStropheStanza:

List of all members.

Public Member Functions

(CPDate) - delayTime [implementation]
(CPString) - from [implementation]
(CPString) - fromBare [implementation]
(CPString) - fromDomain [implementation]
(CPString) - fromResource [implementation]
(CPString) - fromUser [implementation]
(CPString) - ID [implementation]
(TNStropheStanza- initWithName:to:attributes:bare: [implementation]
(void) - setFrom: [implementation]
(void) - setID: [implementation]
(void) - setTo: [implementation]
(void) - setType: [implementation]
(CPString) - to [implementation]
(CPString) - type [implementation]

Static Public Member Functions

(TNStropheStanza+ iq [implementation]
(TNStropheStanza+ iqTo: [implementation]
(TNStropheStanza+ iqTo:withAttributes: [implementation]
(TNStropheStanza+ iqTo:withAttributes:bare: [implementation]
(TNStropheStanza+ iqTo:withType: [implementation]
(TNStropheStanza+ iqWithAttributes: [implementation]
(TNStropheStanza+ iqWithType: [implementation]
(TNStropheStanza+ message [implementation]
(TNStropheStanza+ messageTo: [implementation]
(TNStropheStanza+ messageTo:withAttributes: [implementation]
(TNStropheStanza+ messageTo:withAttributes:bare: [implementation]
(TNStropheStanza+ messageWithAttributes: [implementation]
(TNStropheStanza+ presence [implementation]
(TNStropheStanza+ presenceTo: [implementation]
(TNStropheStanza+ presenceTo:withAttributes: [implementation]
(TNStropheStanza+ presenceTo:withAttributes:bare: [implementation]
(TNStropheStanza+ presenceWithAttributes: [implementation]
(TNStropheStanza+ stanzaWithName:andAttributes: [implementation]
(TNStropheStanza+ stanzaWithName:to:attributes: [implementation]
(TNStropheStanza+ stanzaWithName:to:attributes:bare: [implementation]

Detailed Description

this is an implementation of a basic XMPP Stanza

Definition at line 2 of file TNStropheStanza.h.


Member Function Documentation

- (CPDate) delayTime [implementation]

get the time the stanza was sent if it was delayed

Returns:
delayTime from stanza

Definition at line 370 of file TNStropheStanza.j.

- (CPString) from [implementation]

get the from field of the stanza

Returns:
from field of stanza

Definition at line 263 of file TNStropheStanza.j.

- (CPString) fromBare [implementation]

get the bare from JID of the stanza

Returns:
bare from JID of stanza

Definition at line 284 of file TNStropheStanza.j.

- (CPString) fromDomain [implementation]

get the domain of the form field

Returns:
domain field of stanza

Definition at line 300 of file TNStropheStanza.j.

- (CPString) fromResource [implementation]

get the resource part of the from field of the stanza

Returns:
resource of from field

Definition at line 308 of file TNStropheStanza.j.

- (CPString) fromUser [implementation]

return the the bare user name

Returns:
from user field of stanza

Definition at line 292 of file TNStropheStanza.j.

- (CPString) ID [implementation]

get the id field of the stanza

Returns:
id field of stanza

Definition at line 353 of file TNStropheStanza.j.

- (TNStropheStanza) initWithName: (CPString)  aName
to: (TNStropheJID aJID
attributes: (CPDictionary)  someAttributes
bare: (BOOL)  sendToBareJID 
[implementation]

Definition at line 240 of file TNStropheStanza.j.

+ (TNStropheStanza) iq [implementation]

instanciate a TNStropheStanza with name IQ

Returns:
instance of TNStropheStanza

Definition at line 88 of file TNStropheStanza.j.

+ (TNStropheStanza) iqTo: (TNStropheJID aJID [implementation]

instanciate a TNStropheStanza with name IQ

Parameters:
aJIDthe destination JID
Returns:
instance of TNStropheStanza

Definition at line 97 of file TNStropheStanza.j.

+ (TNStropheStanza) iqTo: (TNStropheJID aJID
withAttributes: (CPDictionary)  attributes 
[implementation]

instanciate a TNStropheStanza with name IQ

Parameters:
aJIDthe destination JID
attributesCPDictionary of attributes
Returns:
instance of TNStropheStanza

Definition at line 126 of file TNStropheStanza.j.

+ (TNStropheStanza) iqTo: (TNStropheJID aJID
withAttributes: (CPDictionary)  attributes
bare: (BOOL)  sendToBareJID 
[implementation]

instanciate a TNStropheStanza with name IQ

Parameters:
aJIDthe destination JID
attributesCPDictionary of attributes
sendToBareJIDif YES send to bare JID
Returns:
instance of TNStropheStanza

Definition at line 137 of file TNStropheStanza.j.

+ (TNStropheStanza) iqTo: (TNStropheJID aJID
withType: (CPString)  aType 
[implementation]

instanciate a TNStropheStanza with name IQ

Parameters:
aJIDthe destination JID
aTypeCPString the type of the query
Returns:
instance of TNStropheStanza

Definition at line 116 of file TNStropheStanza.j.

+ (TNStropheStanza) iqWithAttributes: (CPDictionary)  attributes [implementation]

instanciate a TNStropheStanza with name IQ

Parameters:
attributesCPDictionary of attributes
Returns:
instance of TNStropheStanza

Definition at line 80 of file TNStropheStanza.j.

+ (TNStropheStanza) iqWithType: (CPString)  aType [implementation]

instanciate a TNStropheStanza with name IQ

Parameters:
aTypeCPString the type of the query
Returns:
instance of TNStropheStanza

Definition at line 106 of file TNStropheStanza.j.

+ (TNStropheStanza) message [implementation]

instanciate a TNStropheStanza with name message

Returns:
instance of TNStropheStanza

Definition at line 201 of file TNStropheStanza.j.

+ (TNStropheStanza) messageTo: (TNStropheJID aJID [implementation]

instanciate a TNStropheStanza with name message

Parameters:
aJIDthe destination JID
Returns:
instance of TNStropheStanza

Definition at line 210 of file TNStropheStanza.j.

+ (TNStropheStanza) messageTo: (TNStropheJID aJID
withAttributes: (CPDictionary)  attributes 
[implementation]

instanciate a TNStropheStanza with name message

Parameters:
aJIDthe destination JID
attributesCPDictionary of attributes
Returns:
instance of TNStropheStanza

Definition at line 220 of file TNStropheStanza.j.

+ (TNStropheStanza) messageTo: (TNStropheJID aJID
withAttributes: (CPDictionary)  attributes
bare: (BOOL)  sendToBareJID 
[implementation]

instanciate a TNStropheStanza with name message

Parameters:
aJIDthe destination JID
attributesCPDictionary of attributes
sendToBareJIDif YES send to bare JID
Returns:
instance of TNStropheStanza

Definition at line 231 of file TNStropheStanza.j.

+ (TNStropheStanza) messageWithAttributes: (CPDictionary)  attributes [implementation]

instanciate a TNStropheStanza with name message

Parameters:
attributesCPDictionary of attributes
Returns:
instance of TNStropheStanza

Definition at line 193 of file TNStropheStanza.j.

+ (TNStropheStanza) presence [implementation]

instanciate a TNStropheStanza with name presence

Returns:
instance of TNStropheStanza

Definition at line 154 of file TNStropheStanza.j.

+ (TNStropheStanza) presenceTo: (TNStropheJID aJID [implementation]

instanciate a TNStropheStanza with name presence

Parameters:
aJIDthe destination JID
Returns:
instance of TNStropheStanza

Definition at line 163 of file TNStropheStanza.j.

+ (TNStropheStanza) presenceTo: (TNStropheJID aJID
withAttributes: (CPDictionary)  attributes 
[implementation]

instanciate a TNStropheStanza with name presence

Parameters:
aJIDthe destination JID
attributesCPDictionary of attributes
Returns:
instance of TNStropheStanza

Definition at line 173 of file TNStropheStanza.j.

+ (TNStropheStanza) presenceTo: (TNStropheJID aJID
withAttributes: (CPDictionary)  attributes
bare: (BOOL)  sendToBareJID 
[implementation]

instanciate a TNStropheStanza with name presence

Parameters:
aJIDthe destination JID
attributesCPDictionary of attributes
sendToBareJIDif YES send to bare JID
Returns:
instance of TNStropheStanza

Definition at line 184 of file TNStropheStanza.j.

+ (TNStropheStanza) presenceWithAttributes: (CPDictionary)  attributes [implementation]

instanciate a TNStropheStanza with name presence

Parameters:
attributesCPDictionary of attributes
Returns:
instance of TNStropheStanza

Definition at line 146 of file TNStropheStanza.j.

- (void) setFrom: (id)  aFrom [implementation]

set the from field of the stanza

Parameters:
thenew from value

Definition at line 272 of file TNStropheStanza.j.

- (void) setID: (CPString)  anID [implementation]

set the id field of the stanza

Parameters:
thenew id value

Definition at line 361 of file TNStropheStanza.j.

- (void) setTo: (id)  aTo [implementation]

set the to field of the stanza

Parameters:
thenew To value

Definition at line 325 of file TNStropheStanza.j.

- (void) setType: (CPString)  aType [implementation]

set the type field of the stanza

Parameters:
thenew type value

Definition at line 345 of file TNStropheStanza.j.

+ (TNStropheStanza) stanzaWithName: (CPString)  aName
andAttributes: (CPDictionary)  attributes 
[implementation]

instanciate a TNStropheStanza

Parameters:
aNamethe root name
attributesCPDictionary of attributes
Returns:
instance of TNStropheStanza

Definition at line 47 of file TNStropheStanza.j.

+ (TNStropheStanza) stanzaWithName: (CPString)  aName
to: (TNStropheJID aJID
attributes: (CPDictionary)  attributes 
[implementation]

instanciate a TNStropheStanza

Parameters:
aNamethe root name
aJIDthe destination JID
attributesCPDictionary of attributes
Returns:
instance of TNStropheStanza

Definition at line 58 of file TNStropheStanza.j.

+ (TNStropheStanza) stanzaWithName: (CPString)  aName
to: (TNStropheJID aJID
attributes: (CPDictionary)  attributes
bare: (BOOL)  sendToBareJID 
[implementation]

instanciate a TNStropheStanza

Parameters:
aNamethe root name
aJIDthe destination JID
attributesCPDictionary of attributes
sendToBareJIDif YES send to bare JID
Returns:
instance of TNStropheStanza

Definition at line 70 of file TNStropheStanza.j.

- (CPString) to [implementation]

get the to field of the stanza

Returns:
to field of stanza

Definition at line 316 of file TNStropheStanza.j.

- (CPString) type [implementation]

get the type field of the stanza

Returns:
type field of stanza

Definition at line 337 of file TNStropheStanza.j.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables