|
jabberd14 1.6.2
|
#include <jabberdlib.h>
Public Member Functions | |
| jabberid (const Glib::ustring &jid) | |
| void | set_node (const Glib::ustring &node) |
| void | set_domain (const Glib::ustring &domain) |
| void | set_resource (const Glib::ustring &resource) |
| const Glib::ustring & | get_node () |
| bool | has_node () |
| const Glib::ustring & | get_domain () |
| const Glib::ustring & | get_resource () |
| bool | has_resource () |
| bool | operator== (const jabberid &otherjid) |
| bool | compare (const jabberid &otherjid, bool compare_resource=false, bool compare_node=true, bool compare_domain=true) |
| jabberid | get_user () |
| Glib::ustring | full () |
The jabberid class represents a jid address on the xmpp network
| xmppd::jabberid::jabberid | ( | const Glib::ustring & | jid | ) |
create a new jabberid instance initializing the address by parsing a string
| jid | the initial address value |
| std::invalid_argument | if the jid cannot be prepared |
References set_domain(), set_node(), and set_resource().
| bool xmppd::jabberid::compare | ( | const jabberid & | otherjid, |
| bool | compare_resource = false, |
||
| bool | compare_node = true, |
||
| bool | compare_domain = true |
||
| ) |
compare some parts of two jabberid instances
| otherjid | the other jabberid to compare with |
| compare_resource | true if the resource part should get compared |
| compare_node | true if the node part should get compared |
| compare_domain | true if the domain part should get compared |
Referenced by jid_cmpx(), and operator==().
| Glib::ustring xmppd::jabberid::full | ( | ) |
get the textual representation of a jabberid
Referenced by xmppd::jabberid_pool::full_pooled().
| const Glib::ustring& xmppd::jabberid::get_domain | ( | ) | [inline] |
get the domain part of a jabberid
Referenced by _dialback_miod_hash_cleanup(), _js_jidscanner(), deliver(), dialback_in_read_db(), dialback_ip_get(), dialback_ip_set(), dialback_miod_hash(), dialback_out_connection(), dialback_out_connection_cleanup(), dialback_out_packet(), dialback_out_read(), dialback_packets(), dnsrv_deliver(), dpacket_new(), js_deliver(), js_islocal(), js_user(), and xdb_file_phandler().
| const Glib::ustring& xmppd::jabberid::get_node | ( | ) | [inline] |
get the node part of a jabberid
Referenced by _js_jidscanner(), _js_users_del(), deliver(), js_user(), and xdb_file_phandler().
| const Glib::ustring& xmppd::jabberid::get_resource | ( | ) | [inline] |
get the resource part of a jabberid
Referenced by _dialback_miod_hash_cleanup(), _js_jidscanner(), _js_routed_packet(), dialback_in_verify(), dialback_out_connection(), dialback_out_read(), js_sc_session_new(), js_session_new(), and xdb_file_phandler().
| jabberid xmppd::jabberid::get_user | ( | ) |
get a copy of the jid without the resource
References set_resource().
Referenced by jid_user_pool().
| bool xmppd::jabberid::has_node | ( | ) | [inline] |
returns if a jabberid has a node
Referenced by _js_authreg_register(), _js_jidscanner(), deliver(), dialback_in_read_db(), js_authreg(), js_deliver(), js_islocal(), js_session_new(), js_user(), and xdb_file_phandler().
| bool xmppd::jabberid::has_resource | ( | ) | [inline] |
returns if a jabberid has a resource
Referenced by _js_jidscanner(), _js_routed_error_packet(), dialback_in_read_db(), js_authreg(), js_session_new(), and xdb_file_phandler().
| bool xmppd::jabberid::operator== | ( | const jabberid & | otherjid | ) |
compare jabberid instance with another instance
| otherjid | the other jabberid to compare with |
References compare().
| void xmppd::jabberid::set_domain | ( | const Glib::ustring & | domain | ) |
sets the domain part of a jabberid
| domain | the domain to set |
| std::invalid_argument | if the domain cannot be prepared |
Reimplemented in xmppd::jabberid_pool.
References xmppd::preparation_cache::prepare_domain().
Referenced by jabberid().
| void xmppd::jabberid::set_node | ( | const Glib::ustring & | node | ) |
sets the node part of a jabberid
| node | the node to set (empty string to clear node) |
| std::invalid_argument | if the node cannot be prepared |
Reimplemented in xmppd::jabberid_pool.
References xmppd::preparation_cache::prepare_node().
Referenced by jabberid().
| void xmppd::jabberid::set_resource | ( | const Glib::ustring & | resource | ) |
sets the resource part of a jabberid
| resource | the resource to set (empty string to clear resource) |
| std::invalid_argument | if the resource cannot be prepared |
Reimplemented in xmppd::jabberid_pool.
References xmppd::preparation_cache::prepare_resource().
Referenced by get_user(), and jabberid().
1.7.4