#include <packet.hh>
Inheritance diagram for jabberoo::Packet:
Public Member Functions | |
Packet (const std::string &name) | |
Jabber Packet constructor with a base element of name. | |
Packet (const judo::Element &t) | |
Jabber Packet constructor based upon a judo::Element Create a Jabber Packet based off of a judo::Element. | |
const std::string | getFrom () const |
from attribute on the base element. | |
const std::string | getTo () const |
to attribute on the base element. | |
const std::string | getID () const |
id attribute on the base element. | |
const std::string | getError () const |
error subelement of the base element. | |
const int | getErrorCode () const |
code attribute on the error subelement. | |
const std::string | toString () const |
XML string form of the Jabber Packet. | |
const judo::Element & | getBaseElement () const |
XML judo::Element form of the Jabber Packet. | |
void | setFrom (const std::string &from) |
from attribute on the base element. | |
void | setTo (const std::string &to) |
to attribute on the base element. | |
void | setID (const std::string &id) |
id attribute on the base element. | |
judo::Element * | addX () |
Add x element to the packet. | |
judo::Element * | addX (const std::string &tnamespace) |
Add x element to the packet. | |
judo::Element * | findX (const std::string &tnamespace) const |
Get the x (extension) element which has an xmlns of tnamespace. | |
void | eraseX (const std::string &tnamespace) |
Erase an x element from the packet. | |
judo::Element & | getBaseElement () |
Access to the base element. |
This class has accessors and modifiers for several common Jabber attributes and elements.
Definition at line 42 of file packet.hh.
|
Jabber Packet constructor with a base element of name. Create a Jabber Packet with a base element of name.
Definition at line 37 of file jabberoo-packet.cpp. |
|
Jabber Packet constructor based upon a judo::Element Create a Jabber Packet based off of a judo::Element.
Definition at line 41 of file jabberoo-packet.cpp. |
|
Add x element to the packet. Adds an x (extension) element to the Jabber Packet with the given namespace.
Definition at line 104 of file jabberoo-packet.cpp. References judo::Element::addElement(). |
|
Add x element to the packet. Adds an x (extension) element to the Jabber Packet. x elements should have an xmlns attribute.
Definition at line 99 of file jabberoo-packet.cpp. References judo::Element::addElement(). Referenced by jabberoo::Message::Message(), jabberoo::Message::requestComposing(), jabberoo::Message::requestDelivered(), and jabberoo::Message::requestDisplayed(). |
|
Erase an x element from the packet. Erases an x (extension) element to the Jabber Packet with the given namespace.
Definition at line 126 of file jabberoo-packet.cpp. References judo::Element::begin(), and judo::Element::end(). |
|
Get the x (extension) element which has an xmlns of tnamespace.
Definition at line 111 of file jabberoo-packet.cpp. References judo::Element::begin(), and judo::Element::end(). Referenced by jabberoo::Message::Message(), jabberoo::Message::requestComposing(), jabberoo::Message::requestDelivered(), and jabberoo::Message::requestDisplayed(). |
|
Access to the base element.
Definition at line 139 of file jabberoo-packet.cpp. |
|
XML judo::Element form of the Jabber Packet.
Definition at line 79 of file jabberoo-packet.cpp. Referenced by jabberoo::Session::operator<<(). |
|
error subelement of the base element.
Definition at line 60 of file jabberoo-packet.cpp. References judo::Element::getChildCData(). |
|
code attribute on the error subelement.
Definition at line 65 of file jabberoo-packet.cpp. References judo::Element::findElement(). |
|
from attribute on the base element.
Definition at line 45 of file jabberoo-packet.cpp. References judo::Element::getAttrib(). Referenced by jabberoo::PresenceDB::insert(), jabberoo::Message::Message(), jabberoo::Session::operator<<(), and jabberoo::Roster::update(). |
|
id attribute on the base element.
Definition at line 55 of file jabberoo-packet.cpp. References judo::Element::getAttrib(). |
|
to attribute on the base element.
Definition at line 50 of file jabberoo-packet.cpp. References judo::Element::getAttrib(). Referenced by jabberoo::Session::operator<<(). |
|
from attribute on the base element.
Definition at line 84 of file jabberoo-packet.cpp. References judo::Element::putAttrib(). |
|
id attribute on the base element.
Definition at line 94 of file jabberoo-packet.cpp. References judo::Element::putAttrib(). |
|
to attribute on the base element.
Definition at line 89 of file jabberoo-packet.cpp. References judo::Element::putAttrib(). Referenced by jabberoo::Message::Message(), and jabberoo::Presence::Presence(). |
|
XML string form of the Jabber Packet.
Definition at line 74 of file jabberoo-packet.cpp. References judo::Element::toString(). Referenced by jabberoo::Session::operator<<(). |