diff --git a/SMTPEmail.pro b/SMTPEmail.pro index 10e70a2..2fc74d6 100644 --- a/SMTPEmail.pro +++ b/SMTPEmail.pro @@ -22,7 +22,6 @@ SOURCES += \ src/smtpclient.cpp \ src/quotedprintable.cpp \ src/mimemultipart.cpp \ - test.cpp \ src/mimecontentformatter.cpp HEADERS += \ diff --git a/src/mimemultipart.cpp b/src/mimemultipart.cpp index 099d11c..c7d1dbd 100644 --- a/src/mimemultipart.cpp +++ b/src/mimemultipart.cpp @@ -68,3 +68,11 @@ void MimeMultiPart::prepare() { MimePart::prepare(); } + +void MimeMultiPart::setMimeType(const MultiPartType type) { + this->type = type; +} + +MimeMultiPart::MultiPartType MimeMultiPart::getMimeType() const { + return type; +} diff --git a/src/mimemultipart.h b/src/mimemultipart.h index 8655afe..256af2c 100644 --- a/src/mimemultipart.h +++ b/src/mimemultipart.h @@ -48,6 +48,9 @@ public: /* [2] Getters and Setters */ + void setMimeType(const MultiPartType type); + MultiPartType getMimeType() const; + const QList & getParts() const; /* [2] --- */