Mercurial > thymian
comparison 3rdparty/vmime/src/vmime/plainTextPart.hpp @ 0:a4671277546c tip
created the repository for the thymian project
| author | ferencd |
|---|---|
| date | Tue, 17 Aug 2021 11:19:54 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:a4671277546c |
|---|---|
| 1 // | |
| 2 // VMime library (http://www.vmime.org) | |
| 3 // Copyright (C) 2002-2013 Vincent Richard <vincent@vmime.org> | |
| 4 // | |
| 5 // This program is free software; you can redistribute it and/or | |
| 6 // modify it under the terms of the GNU General Public License as | |
| 7 // published by the Free Software Foundation; either version 3 of | |
| 8 // the License, or (at your option) any later version. | |
| 9 // | |
| 10 // This program is distributed in the hope that it will be useful, | |
| 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 13 // General Public License for more details. | |
| 14 // | |
| 15 // You should have received a copy of the GNU General Public License along | |
| 16 // with this program; if not, write to the Free Software Foundation, Inc., | |
| 17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
| 18 // | |
| 19 // Linking this library statically or dynamically with other modules is making | |
| 20 // a combined work based on this library. Thus, the terms and conditions of | |
| 21 // the GNU General Public License cover the whole combination. | |
| 22 // | |
| 23 | |
| 24 #ifndef VMIME_PLAINTEXTPART_HPP_INCLUDED | |
| 25 #define VMIME_PLAINTEXTPART_HPP_INCLUDED | |
| 26 | |
| 27 | |
| 28 #include "vmime/textPart.hpp" | |
| 29 | |
| 30 | |
| 31 namespace vmime | |
| 32 { | |
| 33 | |
| 34 | |
| 35 /** Text part of type 'text/plain'. | |
| 36 */ | |
| 37 | |
| 38 class VMIME_EXPORT plainTextPart : public textPart | |
| 39 { | |
| 40 public: | |
| 41 | |
| 42 plainTextPart(); | |
| 43 ~plainTextPart(); | |
| 44 | |
| 45 const mediaType getType() const; | |
| 46 | |
| 47 const charset& getCharset() const; | |
| 48 void setCharset(const charset& ch); | |
| 49 | |
| 50 const shared_ptr <const contentHandler> getText() const; | |
| 51 void setText(shared_ptr <contentHandler> text); | |
| 52 | |
| 53 size_t getPartCount() const; | |
| 54 | |
| 55 void generateIn(shared_ptr <bodyPart> message, shared_ptr <bodyPart> parent) const; | |
| 56 void parse(shared_ptr <const bodyPart> message, shared_ptr <const bodyPart> parent, shared_ptr <const bodyPart> textPart); | |
| 57 | |
| 58 private: | |
| 59 | |
| 60 shared_ptr <contentHandler> m_text; | |
| 61 charset m_charset; | |
| 62 }; | |
| 63 | |
| 64 | |
| 65 } // vmime | |
| 66 | |
| 67 | |
| 68 #endif // VMIME_PLAINTEXTPART_HPP_INCLUDED |
