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. More... | |
const uint8_t * | get_data () const |
the contents of the attachment More... | |
uint32_t | get_data_size () const |
the size of the attachment More... | |
std::string | get_filename () const |
the filename of the attachment More... | |
uint32_t | get_num () const |
The attachment number. More... | |
virtual | ~attachment () throw () |
Destructor. More... | |
![]() | |
virtual mapi_object_t & | data () throw () |
Obtain a reference to the mapi_object_t associated with this object. More... | |
virtual property_container | get_property_container () |
Obtain a property_container to be used with this object. More... | |
virtual session & | get_session () |
Obtain the session associated with this object. More... | |
object (session &mapi_session, const std::string &object_type="") throw () | |
Object Constructor. More... | |
virtual | ~object () throw () |
Destructor. More... | |
Additional Inherited Members | |
![]() | |
mapi_object_t | m_object |
session & | m_session |
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 | |
) |
Constructor.
mapi_message | the message that this attachment belongs to. |
attach_num | Attachment Number. |
|
inlinevirtual |
Destructor.
|
inline |
the contents of the attachment
|
inline |
the size of the attachment
|
inline |
the filename of the attachment
|
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/ |