emailservices/nmutilities/src/emailmailboxinfo.cpp
changeset 23 2dc6caa42ec3
child 30 759dc5235cdb
equal deleted inserted replaced
20:ecc8def7944a 23:2dc6caa42ec3
       
     1 /*
       
     2  * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  mailbox branding object
       
    15  *
       
    16  */
       
    17 
       
    18 #include "emailmailboxinfo.h"
       
    19 #include "emailmailboxinfo_p.h"
       
    20 
       
    21 /*!
       
    22     private constructor of EmailMailboxInfo
       
    23  */
       
    24 EmailMailboxInfo::EmailMailboxInfo()
       
    25 {
       
    26     d = EmailMailboxInfoPrivate::getInstance();
       
    27 }
       
    28 
       
    29 /*!
       
    30     destructor of EmailMailboxInfo
       
    31  */
       
    32 EmailMailboxInfo::~EmailMailboxInfo()
       
    33 {
       
    34     EmailMailboxInfoPrivate::releaseInstance(d);
       
    35 }
       
    36 
       
    37 /*!
       
    38     Returns mailbox icon name 
       
    39     \param identifier can be domain name or mailbox id (NmId from nmailbase)
       
    40     \return mailbox icon name that can be used to construct HbIcon
       
    41  */
       
    42 QString EmailMailboxInfo::mailboxIcon(const QVariant &identifier) const
       
    43 {
       
    44     return d->icon(identifier);
       
    45 }
       
    46 
       
    47 /*!
       
    48     Returns branded mailbox name
       
    49     \param identifier can be domain name or mailbox id (NmId from nmailbase)
       
    50     \return mailbox name
       
    51  */
       
    52 QString EmailMailboxInfo::mailboxName(const QVariant &identifier) const
       
    53 {
       
    54     return d->name(identifier);
       
    55 }
       
    56