qt_demoe/tool/3rd_smtpclient/mimetext.cpp

29 lines
443 B
C++
Raw Normal View History

2019-11-21 06:28:56 +00:00
#include "mimetext.h"
MimeText::MimeText(const QString &txt)
{
this->text = txt;
this->cType = "text/plain";
this->cCharset = "utf-8";
this->cEncoding = _8Bit;
}
MimeText::~MimeText() { }
void MimeText::setText(const QString &text)
{
this->text = text;
}
const QString &MimeText::getText() const
{
return text;
}
void MimeText::prepare()
{
this->content.clear();
2021-05-30 07:59:42 +00:00
this->content.append(text.toUtf8());
2019-11-21 06:28:56 +00:00
MimePart::prepare();
}