Added getter and setter for multi-part type in MimeMultiPart class.

This commit is contained in:
Tőkés Attila 2012-08-09 21:15:17 +03:00 committed by Attila
parent c4e94b885e
commit 9bd83ace6f
3 changed files with 11 additions and 1 deletions

View File

@ -22,7 +22,6 @@ SOURCES += \
src/smtpclient.cpp \
src/quotedprintable.cpp \
src/mimemultipart.cpp \
test.cpp \
src/mimecontentformatter.cpp
HEADERS += \

View File

@ -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;
}

View File

@ -48,6 +48,9 @@ public:
/* [2] Getters and Setters */
void setMimeType(const MultiPartType type);
MultiPartType getMimeType() const;
const QList<MimePart*> & getParts() const;
/* [2] --- */