diff --git a/src/mimehtml.cpp b/src/mimehtml.cpp index edc3779..bd4c5ad 100644 --- a/src/mimehtml.cpp +++ b/src/mimehtml.cpp @@ -18,9 +18,9 @@ /* [1] Constructors and Destructors */ -MimeHtml::MimeHtml() +MimeHtml::MimeHtml(const QString &html) { - this->html = ""; + this->html = html; this->encoding = PlainText; this->charset = "utf-8"; } diff --git a/src/mimehtml.h b/src/mimehtml.h index 6dc4c1b..00335bd 100644 --- a/src/mimehtml.h +++ b/src/mimehtml.h @@ -26,7 +26,7 @@ public: /* [1] Constructors and Destructors */ - MimeHtml(); + MimeHtml(const QString &html = ""); ~MimeHtml(); /* [1] --- */ diff --git a/src/mimetext.cpp b/src/mimetext.cpp index 578fd74..8c34509 100644 --- a/src/mimetext.cpp +++ b/src/mimetext.cpp @@ -18,8 +18,9 @@ /* [1] Constructors and Destructors */ -MimeText::MimeText() +MimeText::MimeText(const QString &text) { + this->text = text; this->charset = "utf-8"; this->encoding = PlainText; } diff --git a/src/mimetext.h b/src/mimetext.h index 7f94d5c..198374f 100644 --- a/src/mimetext.h +++ b/src/mimetext.h @@ -25,7 +25,7 @@ public: /* [1] Constructors and Destructors */ - MimeText(); + MimeText(const QString &text = ""); ~MimeText(); /* [1] --- */