This class represents a message in Exchange. More...
#include <message.h>
Public Types | |
typedef std::vector < attachment_shared_ptr > | attachment_container_type |
typedef boost::shared_ptr < attachment > | attachment_shared_ptr |
Public Member Functions | |
attachment_container_type | fetch_attachments () |
Fetches all attachments in this message. | |
mapi_id_t | get_folder_id () const |
Get this message's parent folder ID. | |
mapi_id_t | get_id () const |
Get this message's ID. | |
message (session &mapi_session, const mapi_id_t folder_id, const mapi_id_t message_id) throw (mapi_exception) | |
Constructor. | |
virtual | ~message () throw () |
Destructor. |
This class represents a message in Exchange.
It is important to note that a message is not necessarily an email message. It could be a contact, journal or anything else that is not a folder.
typedef std::vector<attachment_shared_ptr> libmapipp::message::attachment_container_type |
typedef boost::shared_ptr<attachment> libmapipp::message::attachment_shared_ptr |
libmapipp::message::message | ( | session & | mapi_session, |
const mapi_id_t | folder_id, | ||
const mapi_id_t | message_id | ||
) | throw (mapi_exception) [inline] |
Constructor.
mapi_session | The session to use to retrieve this message. |
folder_id | The id of the folder this message belongs to. |
message_id | The message id. |
References libmapipp::object::m_object.
virtual libmapipp::message::~message | ( | ) | throw () [inline, virtual] |
Destructor.
Fetches all attachments in this message.
mapi_id_t libmapipp::message::get_folder_id | ( | ) | const [inline] |
Get this message's parent folder ID.
mapi_id_t libmapipp::message::get_id | ( | ) | const [inline] |
Get this message's ID.
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |