NAWA 0.9
Web Application Framework for C++
nawa::mail::MimeEmail::MimePartOrList Class Reference

#include <nawa/mail/Email/impl/MimeEmail.h>

Public Member Functions

virtual ~MimePartOrList ()
 
 MimePartOrList ()
 
 MimePartOrList (MimePartOrList const &other)
 
MimePartOrListoperator= (const MimePartOrList &other)
 
 MimePartOrList (MimePartOrList &&other) noexcept
 
MimePartOrListoperator= (MimePartOrList &&other) noexcept
 
 MimePartOrList (MimePart const &_mimePart)
 
 MimePartOrList (MimePartList const &_mimePartList)
 
MimePartOrListoperator= (MimePart const &otherMimePart)
 
MimePartOrListoperator= (MimePartList const &otherMimePartList)
 
std::unique_ptr< MimePart > & mimePart () noexcept
 
std::unique_ptr< MimePart > const & mimePart () const noexcept
 
MimePartOrListmimePart (std::unique_ptr< MimePart > value) noexcept
 
std::unique_ptr< MimePartList > & mimePartList () noexcept
 
std::unique_ptr< MimePartList > const & mimePartList () const noexcept
 
MimePartOrListmimePartList (std::unique_ptr< MimePartList > value) noexcept
 

Detailed Description

This struct can save either a MimePart or a MimePartList object and acts as a basis for the MimePartList. You don't have to deal with this object directly, you can just use the MimePartList::mimePart.emplace_back() function to add a MimePart or another MimePartList object to the list.

Definition at line 125 of file MimeEmail.h.

Constructor & Destructor Documentation

◆ ~MimePartOrList()

virtual nawa::mail::MimeEmail::MimePartOrList::~MimePartOrList ( )
virtual

◆ MimePartOrList() [1/5]

nawa::mail::MimeEmail::MimePartOrList::MimePartOrList ( )

◆ MimePartOrList() [2/5]

nawa::mail::MimeEmail::MimePartOrList::MimePartOrList ( MimePartOrList const &  other)

◆ MimePartOrList() [3/5]

nawa::mail::MimeEmail::MimePartOrList::MimePartOrList ( MimePartOrList &&  other)
noexcept

◆ MimePartOrList() [4/5]

nawa::mail::MimeEmail::MimePartOrList::MimePartOrList ( MimePart const &  _mimePart)

Construct a MimePartOrList from a MimePart (also implicitly).

Parameters
_mimePartThe MimePart object this MimePartOrList should refer to.

◆ MimePartOrList() [5/5]

nawa::mail::MimeEmail::MimePartOrList::MimePartOrList ( MimePartList const &  _mimePartList)

Construct a MimePartOrList from a MimePartList (also implicitly).

Parameters
_mimePartListThe MimePartList object this MimePartOrList should refer to.

Member Function Documentation

◆ operator=() [1/4]

MimePartOrList & nawa::mail::MimeEmail::MimePartOrList::operator= ( const MimePartOrList other)

◆ operator=() [2/4]

MimePartOrList & nawa::mail::MimeEmail::MimePartOrList::operator= ( MimePartOrList &&  other)
noexcept

◆ operator=() [3/4]

MimePartOrList & nawa::mail::MimeEmail::MimePartOrList::operator= ( MimePart const &  otherMimePart)

Assign a MimePart object to this MimePartOrList.

Parameters
otherMimePartObject to assign.
Returns
This object.

◆ operator=() [4/4]

MimePartOrList & nawa::mail::MimeEmail::MimePartOrList::operator= ( MimePartList const &  otherMimePartList)

Assign a MimePartList object to this MimePartOrList.

Parameters
otherMimePartListObject to assign.
Returns
This object.

◆ mimePart() [1/3]

std::unique_ptr< MimePart > & nawa::mail::MimeEmail::MimePartOrList::mimePart ( )
noexcept

Create a MIME part containing data. If this pointer contains a MimePart object, the second pointer (for another MimePartList object) will be ignored (and not copied together with the object). Please use the assignment operator for assigning a new object, that function will make sure that the old object will be destroyed properly.

◆ mimePart() [2/3]

std::unique_ptr< MimePart > const & nawa::mail::MimeEmail::MimePartOrList::mimePart ( ) const
noexcept

◆ mimePart() [3/3]

MimePartOrList & nawa::mail::MimeEmail::MimePartOrList::mimePart ( std::unique_ptr< MimePart value)
noexcept

◆ mimePartList() [1/3]

std::unique_ptr< MimePartList > & nawa::mail::MimeEmail::MimePartOrList::mimePartList ( )
noexcept

Create a MIME part containing another MIME container with (possibly) multiple MIME parts. Please use the assignment operator for assigning a new object, that function will make sure that the old object will be destroyed properly.

◆ mimePartList() [2/3]

std::unique_ptr< MimePartList > const & nawa::mail::MimeEmail::MimePartOrList::mimePartList ( ) const
noexcept

◆ mimePartList() [3/3]

MimePartOrList & nawa::mail::MimeEmail::MimePartOrList::mimePartList ( std::unique_ptr< MimePartList value)
noexcept

The documentation for this class was generated from the following file: