This class represents a message attachment. More...
#include <attachment.h>
Public Member Functions | |
attachment (message &mapi_message, const uint32_t attach_num) throw (mapi_exception) | |
Constructor. | |
const uint8_t * | get_data () const |
the contents of the attachment | |
uint32_t | get_data_size () const |
the size of the attachment | |
std::string | get_filename () const |
the filename of the attachment | |
uint32_t | get_num () const |
The attachment number. | |
virtual | ~attachment () throw () |
Destructor. |
This class represents a message attachment.
A message can contain both text content, and also have attached (embedded) files and messages. This class represents the attachments for one messaage.
You may not need to create the attachments yourself, since you can create a container with all the attachments using message::fetch_attachments().
libmapipp::attachment::attachment | ( | message & | mapi_message, |
const uint32_t | attach_num | ||
) | throw (mapi_exception) [inline] |
Constructor.
mapi_message | the message that this attachment belongs to. |
attach_num | Attachment Number. |
References libmapipp::property_container::fetch(), libmapipp::object::get_property_container(), and libmapipp::object::m_object.
virtual libmapipp::attachment::~attachment | ( | ) | throw () [inline, virtual] |
Destructor.
const uint8_t* libmapipp::attachment::get_data | ( | ) | const [inline] |
the contents of the attachment
uint32_t libmapipp::attachment::get_data_size | ( | ) | const [inline] |
the size of the attachment
std::string libmapipp::attachment::get_filename | ( | ) | const [inline] |
the filename of the attachment
uint32_t libmapipp::attachment::get_num | ( | ) | const [inline] |
The attachment number.
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |