Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailtypes.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/libmailwrapper/mailtypes.cpp | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.cpp b/noncore/net/mail/libmailwrapper/mailtypes.cpp index f9e5794..0e3174d 100644 --- a/noncore/net/mail/libmailwrapper/mailtypes.cpp +++ b/noncore/net/mail/libmailwrapper/mailtypes.cpp @@ -4,3 +4,3 @@ 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) { @@ -23,2 +23,3 @@ void RecMail::copy_old(const RecMail&old) msg_id = old.msg_id; + msg_size = old.msg_size; msg_number = old.msg_number; @@ -69,3 +70,3 @@ const QStringList& RecMail::Bcc()const RecPart::RecPart() - : m_type(""),m_subtype(""),m_identifier(""),m_encoding("") + : m_type(""),m_subtype(""),m_identifier(""),m_encoding(""),m_lines(0) { @@ -73,4 +74,4 @@ RecPart::RecPart() -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) { @@ -82,2 +83,12 @@ 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 @@ -158 +169,21 @@ void RecBody::addPart(const RecPart& part) } + +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; +} |