ews-cpp
0.9
|
Represents a SMTP mailbox. More...
#include <ews.hpp>
Public Member Functions | |
mailbox (item_id id) | |
mailbox (std::string value, std::string name=std::string(), std::string routing_type=std::string(), std::string mailbox_type=std::string()) | |
const item_id & | id () const EWS_NOEXCEPT |
const std::string & | mailbox_type () const EWS_NOEXCEPT |
Returns the mailbox type. More... | |
const std::string & | name () const EWS_NOEXCEPT |
Returns the name of the mailbox user. More... | |
bool | none () const EWS_NOEXCEPT |
True if this mailbox is undefined. | |
const std::string & | routing_type () const EWS_NOEXCEPT |
Returns the routing type. More... | |
std::string | to_xml (const char *xmlns="t") const |
Returns the XML serialized string of this mailbox. More... | |
rapidxml::xml_node & | to_xml_element (rapidxml::xml_node<> &parent) const |
Creates a new <Mailbox> XML element and appends it to given parent node. More... | |
const std::string & | value () const EWS_NOEXCEPT |
Returns the email address. | |
Static Public Member Functions | |
static mailbox | from_xml_element (const rapidxml::xml_node<> &elem) |
Makes a mailbox instance from a <Mailbox> XML element. | |
Represents a SMTP mailbox.
Identifies a fully resolved email address. Usually represents a contact's email address, a message recipient, or the organizer of a meeting.
|
inline |
Returns the mailbox type.
This attribute is optional.
|
inline |
Returns the name of the mailbox user.
This attribute is optional.
|
inline |
Returns the routing type.
This attribute is optional. Default is SMTP
|
inline |
Returns the XML serialized string of this mailbox.
Note: <Mailbox> is a part of http://schemas.microsoft.com/exchange/services/2006/types namespace. At least that is what the documentation says. However, in the <GetDelegate> request the <Mailbox> element is expected to be part of http://schemas.microsoft.com/exchange/services/2006/messages. This is the reason for the extra argument.
|
inline |
Creates a new <Mailbox> XML element and appends it to given parent node.
Returns a reference to the newly created element.