emailservices/nmutilities/src/emailmailboxinfo.cpp
changeset 74 6c59112cfd31
parent 43 99bcbff212ad
equal deleted inserted replaced
69:4e54af54a4a1 74:6c59112cfd31
    13  *
    13  *
    14  * Description:  mailbox branding object
    14  * Description:  mailbox branding object
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #include "emailtrace.h"
    18 #include "nmutilitiescommonheaders.h"
    19 
       
    20 #include "emailmailboxinfo.h"
       
    21 #include "emailmailboxinfo_p.h"
       
    22 
    19 
    23 /*!
    20 /*!
    24     private constructor of EmailMailboxInfo
    21     private constructor of EmailMailboxInfo
    25  */
    22  */
    26 EmailMailboxInfo::EmailMailboxInfo()
    23 EmailMailboxInfo::EmailMailboxInfo()
    40     EmailMailboxInfoPrivate::releaseInstance(d);
    37     EmailMailboxInfoPrivate::releaseInstance(d);
    41 }
    38 }
    42 
    39 
    43 /*!
    40 /*!
    44     Returns mailbox icon name 
    41     Returns mailbox icon name 
    45     \param identifier can be domain name or mailbox id (NmId from nmailbase)
    42     \param identifier should be a domain name
    46     \return mailbox icon name that can be used to construct HbIcon
    43     \return mailbox icon name that can be used to construct HbIcon
    47  */
    44  */
    48 QString EmailMailboxInfo::mailboxIcon(const QVariant &identifier) const
    45 QString EmailMailboxInfo::mailboxIcon(const QString &identifier) const
    49 {
    46 {
    50     NM_FUNCTION;
    47     NM_FUNCTION;
    51     
    48     
    52     return d->icon(identifier);
    49     return d->icon(identifier);
    53 }
    50 }
    54 
    51 
    55 /*!
    52 /*!
    56     Returns branded mailbox name
    53     Returns branded mailbox name
    57     \param identifier can be domain name or mailbox id (NmId from nmailbase)
    54     \param identifier should be a domain name
    58     \return mailbox name
    55     \return mailbox name
    59  */
    56  */
    60 QString EmailMailboxInfo::mailboxName(const QVariant &identifier) const
    57 QString EmailMailboxInfo::mailboxName(const QString &identifier) const
    61 {
    58 {
    62     NM_FUNCTION;
    59     NM_FUNCTION;
    63     
    60     
    64     return d->name(identifier);
    61     return d->name(identifier);
    65 }
    62 }