Authors: Jean-Sébastien Pédron (js.pedron@meetic-corp.com).
chat/0 | Create an empty chat message stanza. |
chat/1 | Create a chat message stanza with a given body. |
chat/2 | Create a chat message stanza with given subject and body. |
error/2 | Prepare a message stanza to notify an error. |
get_body/1 | Return the body of the message. |
get_subject/1 | Return the subject of the message. |
get_thread/1 | Return the thread of the message. |
get_type/1 | Return the type of the given <message/> . |
groupchat/0 | Create an empty groupchat message stanza. |
groupchat/1 | Create a groupchat message stanza with a given body. |
groupchat/2 | Create a groupchat message stanza with given subject and body. |
headline/0 | Create an empty headline message stanza. |
headline/1 | Create a headline message stanza with a given body. |
headline/2 | Create a headline message stanza with given subject and body. |
is_message/1 | Tell if El is a message. |
make_chat/1 | Create an empty chat message stanza. |
make_chat/2 | Create a chat message stanza with a given body. |
make_chat/3 | Create a chat message stanza with given subject and body. |
make_groupchat/1 | Create an empty groupchat message stanza. |
make_groupchat/2 | Create a groupchat message stanza with a given body. |
make_groupchat/3 | Create a groupchat message stanza with given subject and body. |
make_headline/1 | Create an empty headline message stanza. |
make_headline/2 | Create a headline message stanza with a given body. |
make_headline/3 | Create a headline message stanza with given subject and body. |
make_normal/1 | Create an empty message stanza. |
make_normal/2 | Create a message stanza with a given body. |
make_normal/3 | Create a message stanza with given subject and body. |
normal/0 | Create an empty message stanza. |
normal/1 | Create a message stanza with a given body. |
normal/2 | Create a message stanza with given subject and body. |
set_body/2 | Set the <body/> field of a message stanza. |
set_subject/2 | Set the <subject/> field of a message stanza. |
set_thread/2 | Set the <thread/> field of a message stanza. |
set_type/2 | Set the type of the given <message/> . |
chat() -> Message
Create an empty chat message stanza.
The default namespace isjabber:client
.
chat(Body) -> Message
Create a chat message stanza with a given body.
The default namespace isjabber:client
.
chat(Subject, Body) -> Message
Create a chat message stanza with given subject and body.
The default namespace isjabber:client
.
error(Message, Condition::Error) -> New_Message
Prepare a message stanza to notify an error.
IfError
is an atom, it must be a standard condition defined by
XMPP Core.
get_body(Xmlel::Message) -> Body | undefined
Return the body of the message.
get_subject(Xmlel::Message) -> Subject | undefined
Return the subject of the message.
get_thread(Xmlel::Message) -> Thread | undefined
Return the thread of the message.
get_type(Message) -> Type
Return the type of the given <message/>
.
groupchat() -> Message
Create an empty groupchat message stanza.
The default namespace isjabber:client
.
groupchat(Body) -> Message
Create a groupchat message stanza with a given body.
The default namespace isjabber:client
.
groupchat(Subject, Body) -> Message
Create a groupchat message stanza with given subject and body.
The default namespace isjabber:client
.
headline() -> Message
Create an empty headline message stanza.
The default namespace isjabber:client
.
headline(Body) -> Message
Create a headline message stanza with a given body.
The default namespace isjabber:client
.
headline(Subject, Body) -> Message
Create a headline message stanza with given subject and body.
The default namespace isjabber:client
.
is_message(Message::El) -> bool
Tell if El
is a message.
IS_MESSAGE(El)
guard expression.
make_chat(NS) -> Message
Create an empty chat message stanza.
make_chat(NS, Body) -> Message
Create a chat message stanza with a given body.
make_chat(NS, Subject, Body) -> Message
Create a chat message stanza with given subject and body.
make_groupchat(NS) -> Message
Create an empty groupchat message stanza.
make_groupchat(NS, Body) -> Message
Create a groupchat message stanza with a given body.
make_groupchat(NS, Subject, Body) -> Message
Create a groupchat message stanza with given subject and body.
make_headline(NS) -> Message
Create an empty headline message stanza.
make_headline(NS, Body) -> Message
Create a headline message stanza with a given body.
make_headline(NS, Subject, Body) -> Message
Create a headline message stanza with given subject and body.
make_normal(NS) -> Message
Create an empty message stanza.
make_normal(NS, Body) -> Message
Create a message stanza with a given body.
make_normal(NS, Subject, Body) -> Message
Create a message stanza with given subject and body.
normal() -> Message
Create an empty message stanza.
The default namespace isjabber:client
.
normal(Body) -> Message
Create a message stanza with a given body.
The default namespace isjabber:client
.
normal(Subject, Body) -> Message
Create a message stanza with given subject and body.
The default namespace isjabber:client
.
set_body(Xmlel::Message, Body) -> New_Message
Set the <body/>
field of a message stanza.
Body
is an empty string (or an empty binary), the previous
body is removed.
set_subject(Xmlel::Message, Subject) -> New_Message
Set the <subject/>
field of a message stanza.
Subject
is an empty string (or an empty binary), the previous
subject is removed.
set_thread(Xmlel::Message, Thread) -> New_Message
Set the <thread/>
field of a message stanza.
Thread
is an empty string (or an empty binary), the previous
thread is removed.
set_type(Message, Type) -> New_Message
Set the type of the given <message/>
.
Type
isn't a valid, the type is set to normal
.
Generated by EDoc, Jan 21 2011, 01:43:52.