emailuis/nmsettingui/src/nmmailboxentryitem.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:04:17 +0300
branchRCL_3
changeset 63 d189ee25cf9d
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 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:
*
*/

#include <cpitemdatahelper.h>
#include <hbicon.h>
#include <hbdataformmodelitem.h>

#include "nmmailboxentryitem.h"

/*!
    \class NmMailboxEntryItem
    \brief Class for implementing mailbox item data.

    Stores mailbox specific data, i.e. name, icon and id of the mailbox.

*/

// ======== MEMBER FUNCTIONS ========

/*!
    Constructor of NmMailboxEntryItem.
*/
NmMailboxEntryItem::NmMailboxEntryItem(
        CpItemDataHelper &itemDataHelper,
        const NmId &mailboxId,
        const QString &mailboxName,
        const HbIcon &mailboxIcon,
        const HbDataFormModelItem *parent,
        const QString &mailboxDescription)
: CpSettingFormEntryItemData(itemDataHelper, mailboxName, mailboxDescription, mailboxIcon, parent),
  mMailboxId(mailboxId.id())
{
    NM_FUNCTION;
}

/*!
    Destructor of NmMailboxEntryItem.
*/
NmMailboxEntryItem::~NmMailboxEntryItem()
{
    NM_FUNCTION;
}

/*!
    From base class. No implementation.
*/
CpBaseSettingView *NmMailboxEntryItem::createSettingView() const
{
    NM_FUNCTION;
    
    return 0;
}

/*!
    Return id for the mailbox.
*/
const NmId &NmMailboxEntryItem::id() const
{
    NM_FUNCTION;
    
    return mMailboxId;
}