diff -r dcf0eedfc1a3 -r d189ee25cf9d emailuis/nmsettingui/src/nmmailboxentryitem.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailuis/nmsettingui/src/nmmailboxentryitem.cpp Tue Aug 31 15:04:17 2010 +0300 @@ -0,0 +1,76 @@ +/* +* 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 +#include +#include + +#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; +}