summaryrefslogtreecommitdiff
path: root/noncore/net/mail/libmailwrapper/mailtypes.cpp
Unidiff
Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailtypes.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/mailtypes.cpp33
1 files changed, 31 insertions, 2 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailtypes.cpp b/noncore/net/mail/libmailwrapper/mailtypes.cpp
index 9f2c9e3..f9e5794 100644
--- a/noncore/net/mail/libmailwrapper/mailtypes.cpp
+++ b/noncore/net/mail/libmailwrapper/mailtypes.cpp
@@ -4,4 +4,34 @@
4RecMail::RecMail() 4RecMail::RecMail()
5 :subject(""),date(""),mbox(""),msg_number(0),msg_flags(7) 5 :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7)
6{ 6{
7 init();
8}
9
10RecMail::RecMail(const RecMail&old)
11 :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7)
12{
13 init();
14 copy_old(old);
15 qDebug("Copy constructor RecMail");
16}
17
18void RecMail::copy_old(const RecMail&old)
19{
20 subject = old.subject;
21 date = old.date;
22 mbox = old.mbox;
23 msg_id = old.msg_id;
24 msg_number = old.msg_number;
25 from = old.from;
26 msg_flags = old.msg_flags;
27 to = old.to;
28 cc = old.cc;
29 bcc = old.bcc;
30}
31
32void RecMail::init()
33{
34 to.clear();
35 cc.clear();
36 bcc.clear();
7} 37}
@@ -38,3 +68,2 @@ const QStringList& RecMail::Bcc()const
38 68
39
40RecPart::RecPart() 69RecPart::RecPart()