From 635dfb65a976b7bb4d354a4554dc944276e03021 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 8 Sep 2011 19:06:32 +0300 Subject: [PATCH] modified contstructors. --- src/mimehtml.cpp | 4 ++-- src/mimehtml.h | 2 +- src/mimetext.cpp | 3 ++- src/mimetext.h | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) 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] --- */