emailservices/nmutilities/src/emailmailboxinfo.cpp
author hgs
Fri, 28 May 2010 13:56:43 +0300
changeset 43 99bcbff212ad
parent 23 2dc6caa42ec3
child 74 6c59112cfd31
permissions -rw-r--r--
201021

/*
 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:  mailbox branding object
 *
 */

#include "emailtrace.h"

#include "emailmailboxinfo.h"
#include "emailmailboxinfo_p.h"

/*!
    private constructor of EmailMailboxInfo
 */
EmailMailboxInfo::EmailMailboxInfo()
{
    NM_FUNCTION;
    
    d = EmailMailboxInfoPrivate::getInstance();
}

/*!
    destructor of EmailMailboxInfo
 */
EmailMailboxInfo::~EmailMailboxInfo()
{
    NM_FUNCTION;
    
    EmailMailboxInfoPrivate::releaseInstance(d);
}

/*!
    Returns mailbox icon name 
    \param identifier can be domain name or mailbox id (NmId from nmailbase)
    \return mailbox icon name that can be used to construct HbIcon
 */
QString EmailMailboxInfo::mailboxIcon(const QVariant &identifier) const
{
    NM_FUNCTION;
    
    return d->icon(identifier);
}

/*!
    Returns branded mailbox name
    \param identifier can be domain name or mailbox id (NmId from nmailbase)
    \return mailbox name
 */
QString EmailMailboxInfo::mailboxName(const QVariant &identifier) const
{
    NM_FUNCTION;
    
    return d->name(identifier);
}