Authors: Jean-Sébastien Pédron (js.pedron@meetic-corp.com).
available/0 | Create a presence stanza to tell that the sender is available. |
error/2 | Prepare a presence stanza to notify an error. |
get_priority/1 | Return the priority attribute of the presence. |
get_show/1 | Return the show attribute of the presence. |
get_status/1 | Return the status attribute of the presence. |
get_type/1 | Return the type of the given presence stanza. |
is_presence/1 | Tell if El is a presence. |
presence/2 | Create a presence stanza with given type and status. |
probe/0 | Create a probe presence stanza. |
set_priority/2 | Set the <priority/> field of a presence stanza. |
set_show/2 | Set the <show/> field of a presence stanza. |
set_status/2 | Set the <status/> field of a presence stanza. |
subscribe/0 | Create a presence stanza to tell that the sender wants to subscribe to the receiver's presence. |
subscribed/0 | Create a presence stanza to tell that the receiver was subscribed from the sender's presence. |
unavailable/0 | Create a presence stanza to tell that the sender is not available. |
unsubscribe/0 | Create a presence stanza to tell that the sender wants to unsubscribe to the receiver's presence. |
unsubscribed/0 | Create a presence stanza to tell that the receiver was unsubscribed from the sender's presence. |
available() -> Presence
Create a presence stanza to tell that the sender is available.
error(Presence, Condition::Error) -> New_Presence
Prepare a presence stanza to notify an error.
IfError
is an atom, it must be a standard condition defined by
XMPP Core.
get_priority(Xmlel::Presence) -> Priority
Return the priority attribute of the presence.
get_show(Xmlel::Presence) -> Show | undefined
Return the show attribute of the presence.
get_status(Xmlel::Presence) -> Status | undefined
Return the status attribute of the presence.
get_type(Presence) -> Type
Return the type of the given presence stanza.
is_presence(Presence::El) -> bool
Tell if El
is a presence.
IS_PRESENCE(El)
guard expression.
presence(Type, Status) -> Presence
Create a presence stanza with given type and status.
probe() -> Presence
Create a probe presence stanza.
set_priority(Xmlel::Presence, Priority) -> New_Presence
Set the <priority/>
field of a presence stanza.
set_show(Xmlel::Presence, Show) -> New_Presence
Set the <show/>
field of a presence stanza.
Type
is an empty string or the atom online
, the <show/>
element is removed.
set_status(Xmlel::Presence, Status) -> New_Presence
Set the <status/>
field of a presence stanza.
Status
is an empty string (or an empty binary), the previous
status is removed.
subscribe() -> Presence
Create a presence stanza to tell that the sender wants to subscribe to the receiver's presence.
subscribed() -> Presence
Create a presence stanza to tell that the receiver was subscribed from the sender's presence.
unavailable() -> Presence
Create a presence stanza to tell that the sender is not available.
unsubscribe() -> Presence
Create a presence stanza to tell that the sender wants to unsubscribe to the receiver's presence.
unsubscribed() -> Presence
Create a presence stanza to tell that the receiver was unsubscribed from the sender's presence.
Generated by EDoc, Jan 21 2011, 01:43:50.