emailuis/nmailuiengine/src/nmfoldermetadata.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 14:51:52 +0300
changeset 18 578830873419
child 30 759dc5235cdb
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
* Copyright (c) 2009 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 "nmuiengineheaders.h"

/*!
    \class NmFolderMetaData
    \brief The NmFolderMetaData class represents data for NmFolderListModel.
    @alpha

    The class NmFolderMetaData provides an item that is used by NmFolderListModel and its' data
    method to get all information needed for one list row for a widget by calling the method once.
*/

class NmFolderMetaDataPrivate
{
public:
    QString mName;
    NmId mId;
};


/*!
    Constructor.
*/
NmFolderMetaData::NmFolderMetaData()
{
    d = new NmFolderMetaDataPrivate;
}


/*!
    Destructor.
*/
NmFolderMetaData::~NmFolderMetaData()
{
    delete d;
}

/*!
    Mailbox name accessor.
*/
QString NmFolderMetaData::name() const
{
    return d->mName;
}

/*!
    Set Mailbox name as \a name.
*/
void NmFolderMetaData::setName(const QString &name)
{
    d->mName = name;
}

/*!
    Mailbox id.
*/
NmId NmFolderMetaData::id() const
{
    return d->mId;
}

/*!
    Set folder id as \a id.
*/
void NmFolderMetaData::setId(const NmId &id)
{
    d->mId = id;
}