Diffstat (limited to 'noncore/net/mail/mailtypes.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mailtypes.cpp | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/noncore/net/mail/mailtypes.cpp b/noncore/net/mail/mailtypes.cpp index f9e5794..0e3174d 100644 --- a/noncore/net/mail/mailtypes.cpp +++ b/noncore/net/mail/mailtypes.cpp @@ -1,11 +1,11 @@ #include "mailtypes.h" RecMail::RecMail() - :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) + :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_size(0),msg_flags(7) { init(); } RecMail::RecMail(const RecMail&old) :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) @@ -18,12 +18,13 @@ RecMail::RecMail(const RecMail&old) void RecMail::copy_old(const RecMail&old) { subject = old.subject; date = old.date; mbox = old.mbox; msg_id = old.msg_id; + msg_size = old.msg_size; msg_number = old.msg_number; from = old.from; msg_flags = old.msg_flags; to = old.to; cc = old.cc; bcc = old.bcc; @@ -64,25 +65,35 @@ void RecMail::setBcc(const QStringList&list) const QStringList& RecMail::Bcc()const { return bcc; } RecPart::RecPart() - : m_type(""),m_subtype(""),m_identifier(""),m_encoding("") + : m_type(""),m_subtype(""),m_identifier(""),m_encoding(""),m_lines(0) { } -RecPart::RecPart(const QString&identifier,const QString&type,const QString&subtype,const QString&encoding) - : m_type(type),m_subtype(subtype),m_identifier(identifier),m_encoding(encoding) +RecPart::RecPart(const QString&identifier,const QString&type,const QString&subtype,const QString&encoding,unsigned int lines) + : m_type(type),m_subtype(subtype),m_identifier(identifier),m_encoding(encoding),m_lines(lines) { } RecPart::~RecPart() { } +void RecPart::setLines(unsigned int lines) +{ + m_lines = lines; +} + +const unsigned int RecPart::Lines()const +{ + return m_lines; +} + const QString& RecPart::Type()const { return m_type; } void RecPart::setType(const QString&type) @@ -153,6 +164,26 @@ const QList<RecPart>& RecBody::Parts()const void RecBody::addPart(const RecPart& part) { RecPart*p = new RecPart(part); m_PartsList.append(p); } + +void RecBody::setType(const QString&type) +{ + m_type = type; +} + +const QString& RecBody::Type()const +{ + return m_type; +} + +void RecBody::setSubtype(const QString&type) +{ + m_subtype = type; +} + +const QString& RecBody::Subtype()const +{ + return m_subtype; +} |