emailservices/nmutilities/inc/emailmailboxinfo.h
changeset 23 2dc6caa42ec3
child 74 6c59112cfd31
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 #ifndef EMAILMAILBOXINFO_H_
       
    19 #define EMAILMAILBOXINFO_H_
       
    20 
       
    21 #include <QString>
       
    22 #include <QVariant>
       
    23 
       
    24 #include "emailutilitiesdef.h"
       
    25 
       
    26 class EmailMailboxInfoPrivate;
       
    27 
       
    28 class EMAIL_UTILITIES_EXPORT EmailMailboxInfo
       
    29 {
       
    30 public:
       
    31 
       
    32     /*!
       
    33         constructs object
       
    34      */
       
    35     EmailMailboxInfo();
       
    36 
       
    37     /*!
       
    38         destroys object 
       
    39      */
       
    40     ~EmailMailboxInfo();
       
    41 
       
    42     /*!
       
    43         Returns mailbox icon name 
       
    44         \param identifier can be domain name or mailbox id (NmId from nmailbase)
       
    45         \return mailbox icon name that can be used to construct HbIcon
       
    46      */
       
    47     QString mailboxIcon(const QVariant &identifier) const;
       
    48 
       
    49     /*!
       
    50         Returns branded mailbox name
       
    51         \param identifier can be domain name or mailbox id (NmId from nmailbase)
       
    52         \return mailbox name
       
    53      */
       
    54     QString mailboxName(const QVariant &identifier) const;
       
    55 
       
    56 private:
       
    57     EmailMailboxInfoPrivate *d;
       
    58 
       
    59 };
       
    60 
       
    61 #endif /* EMAILMAILBOXINFO_H_ */