phonebookui/pbkcommonui/src/cntcontactcarddataitem.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:42:23 +0300
changeset 31 2a11b5b00470
parent 27 de1630741fbe
child 37 fd64c38c277d
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* 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 "cntcontactcarddataitem.h"

CntContactCardDataItem::CntContactCardDataItem(const QString& aTitle, int aPosition, bool aIsFocusable) :
    mIcon(HbIcon()),
    mSecondaryIcon(HbIcon()),
    mTitle(aTitle),
    mValueText(QString("")),
    mAction(QString("")),
    mValueTextElideMode(Qt::ElideRight),
    mIsFocusable(aIsFocusable),
    mPosition(aPosition)
{
    
}

CntContactCardDataItem::~CntContactCardDataItem()
{

}

void CntContactCardDataItem::setTitleText(const QString& aTitle)
{
    mTitle = aTitle;
}

void CntContactCardDataItem::setValueText(const QString& aValueText, Qt::TextElideMode aValueTextElideMode)
{
    mValueText = aValueText;
    mValueTextElideMode = aValueTextElideMode;
}

void CntContactCardDataItem::setIcon(HbIcon aIcon)
{
    mIcon = aIcon;
}

void CntContactCardDataItem::setSecondaryIcon(HbIcon aSecondaryIcon)
{
    mSecondaryIcon = aSecondaryIcon;
}

void CntContactCardDataItem::setAction(const QString& aAction)
{
    mAction = aAction;
}

void CntContactCardDataItem::setContactDetail(QContactDetail aDetail)
{
    mDetail = aDetail;
}