author | alwin <alwin> | 2003-12-13 21:03:45 (UTC) |
---|---|---|
committer | alwin <alwin> | 2003-12-13 21:03:45 (UTC) |
commit | c0e86973b0cd2d01163ccf60340c8d295aa645f4 (patch) (unidiff) | |
tree | 4ccb0f7b8071711bf7ebc5320ea5c2f6974d6fb4 /noncore/net/mail/mailtypes.cpp | |
parent | 85444223acfafd9d7955032b2cbdad3279ba27ad (diff) | |
download | opie-c0e86973b0cd2d01163ccf60340c8d295aa645f4.zip opie-c0e86973b0cd2d01163ccf60340c8d295aa645f4.tar.gz opie-c0e86973b0cd2d01163ccf60340c8d295aa645f4.tar.bz2 |
the RecMail class get on creation a mailwrapper assigened
Diffstat (limited to 'noncore/net/mail/mailtypes.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/mailtypes.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/noncore/net/mail/mailtypes.cpp b/noncore/net/mail/mailtypes.cpp index 5cd45ed..94f5d6f 100644 --- a/noncore/net/mail/mailtypes.cpp +++ b/noncore/net/mail/mailtypes.cpp | |||
@@ -6,44 +6,61 @@ RecMail::RecMail() | |||
6 | { | 6 | { |
7 | init(); | 7 | init(); |
8 | } | 8 | } |
9 | 9 | ||
10 | RecMail::RecMail(const RecMail&old) | 10 | RecMail::RecMail(const RecMail&old) |
11 | :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) | 11 | :subject(""),date(""),from(""),mbox(""),msg_id(""),msg_number(0),msg_flags(7) |
12 | { | 12 | { |
13 | init(); | 13 | init(); |
14 | copy_old(old); | 14 | copy_old(old); |
15 | qDebug("Copy constructor RecMail"); | 15 | qDebug("Copy constructor RecMail"); |
16 | } | 16 | } |
17 | 17 | ||
18 | RecMail::~RecMail() | ||
19 | { | ||
20 | wrapper = 0; | ||
21 | } | ||
22 | |||
18 | void RecMail::copy_old(const RecMail&old) | 23 | void RecMail::copy_old(const RecMail&old) |
19 | { | 24 | { |
20 | subject = old.subject; | 25 | subject = old.subject; |
21 | date = old.date; | 26 | date = old.date; |
22 | mbox = old.mbox; | 27 | mbox = old.mbox; |
23 | msg_id = old.msg_id; | 28 | msg_id = old.msg_id; |
24 | msg_size = old.msg_size; | 29 | msg_size = old.msg_size; |
25 | msg_number = old.msg_number; | 30 | msg_number = old.msg_number; |
26 | from = old.from; | 31 | from = old.from; |
27 | msg_flags = old.msg_flags; | 32 | msg_flags = old.msg_flags; |
28 | to = old.to; | 33 | to = old.to; |
29 | cc = old.cc; | 34 | cc = old.cc; |
30 | bcc = old.bcc; | 35 | bcc = old.bcc; |
36 | wrapper = old.wrapper; | ||
31 | } | 37 | } |
32 | 38 | ||
33 | void RecMail::init() | 39 | void RecMail::init() |
34 | { | 40 | { |
35 | to.clear(); | 41 | to.clear(); |
36 | cc.clear(); | 42 | cc.clear(); |
37 | bcc.clear(); | 43 | bcc.clear(); |
44 | wrapper = 0; | ||
45 | } | ||
46 | |||
47 | void RecMail::setWrapper(AbstractMail*awrapper) | ||
48 | { | ||
49 | wrapper = awrapper; | ||
50 | } | ||
51 | |||
52 | AbstractMail* RecMail::Wrapper() | ||
53 | { | ||
54 | return wrapper; | ||
38 | } | 55 | } |
39 | 56 | ||
40 | void RecMail::setTo(const QStringList&list) | 57 | void RecMail::setTo(const QStringList&list) |
41 | { | 58 | { |
42 | to = list; | 59 | to = list; |
43 | } | 60 | } |
44 | 61 | ||
45 | const QStringList&RecMail::To()const | 62 | const QStringList&RecMail::To()const |
46 | { | 63 | { |
47 | return to; | 64 | return to; |
48 | } | 65 | } |
49 | 66 | ||