From 9bd83ace6fe0516166fdc4b4b16299f624ba7058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C5=91k=C3=A9s=20Attila?= Date: Thu, 9 Aug 2012 21:15:17 +0300 Subject: [PATCH] Added getter and setter for multi-part type in MimeMultiPart class. --- SMTPEmail.pro | 1 - src/mimemultipart.cpp | 8 ++++++++ src/mimemultipart.h | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) 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] --- */