diff options
Diffstat (limited to 'src/text.cpp')
-rw-r--r-- | src/text.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/text.cpp b/src/text.cpp index 51593763..8436c44b 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -36,7 +36,7 @@ text::text() text::text(const text& t) - : component() + : headerFieldValue() { copyFrom(t); } @@ -383,4 +383,18 @@ const std::vector <ref <const component> > text::getChildComponents() const } +const string text::getWholeBuffer() const +{ + string res; + + for (std::vector <ref <word> >::const_iterator it = m_words.begin() ; + it != m_words.end() ; ++it) + { + res += (*it)->getBuffer(); + } + + return res; +} + + } // vmime |