13 * |
13 * |
14 * Description: mailbox branding object |
14 * Description: mailbox branding object |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 #include "emailtrace.h" |
|
19 |
18 #include "emailmailboxinfo.h" |
20 #include "emailmailboxinfo.h" |
19 #include "emailmailboxinfo_p.h" |
21 #include "emailmailboxinfo_p.h" |
20 |
22 |
21 /*! |
23 /*! |
22 private constructor of EmailMailboxInfo |
24 private constructor of EmailMailboxInfo |
23 */ |
25 */ |
24 EmailMailboxInfo::EmailMailboxInfo() |
26 EmailMailboxInfo::EmailMailboxInfo() |
25 { |
27 { |
|
28 NM_FUNCTION; |
|
29 |
26 d = EmailMailboxInfoPrivate::getInstance(); |
30 d = EmailMailboxInfoPrivate::getInstance(); |
27 } |
31 } |
28 |
32 |
29 /*! |
33 /*! |
30 destructor of EmailMailboxInfo |
34 destructor of EmailMailboxInfo |
31 */ |
35 */ |
32 EmailMailboxInfo::~EmailMailboxInfo() |
36 EmailMailboxInfo::~EmailMailboxInfo() |
33 { |
37 { |
|
38 NM_FUNCTION; |
|
39 |
34 EmailMailboxInfoPrivate::releaseInstance(d); |
40 EmailMailboxInfoPrivate::releaseInstance(d); |
35 } |
41 } |
36 |
42 |
37 /*! |
43 /*! |
38 Returns mailbox icon name |
44 Returns mailbox icon name |
39 \param identifier can be domain name or mailbox id (NmId from nmailbase) |
45 \param identifier can be domain name or mailbox id (NmId from nmailbase) |
40 \return mailbox icon name that can be used to construct HbIcon |
46 \return mailbox icon name that can be used to construct HbIcon |
41 */ |
47 */ |
42 QString EmailMailboxInfo::mailboxIcon(const QVariant &identifier) const |
48 QString EmailMailboxInfo::mailboxIcon(const QVariant &identifier) const |
43 { |
49 { |
|
50 NM_FUNCTION; |
|
51 |
44 return d->icon(identifier); |
52 return d->icon(identifier); |
45 } |
53 } |
46 |
54 |
47 /*! |
55 /*! |
48 Returns branded mailbox name |
56 Returns branded mailbox name |
49 \param identifier can be domain name or mailbox id (NmId from nmailbase) |
57 \param identifier can be domain name or mailbox id (NmId from nmailbase) |
50 \return mailbox name |
58 \return mailbox name |
51 */ |
59 */ |
52 QString EmailMailboxInfo::mailboxName(const QVariant &identifier) const |
60 QString EmailMailboxInfo::mailboxName(const QVariant &identifier) const |
53 { |
61 { |
|
62 NM_FUNCTION; |
|
63 |
54 return d->name(identifier); |
64 return d->name(identifier); |
55 } |
65 } |
56 |
66 |