phonebookui/pbkcommonui/src/cntcontactcarddataitem.cpp
changeset 27 de1630741fbe
child 31 2a11b5b00470
equal deleted inserted replaced
25:76a2435edfd4 27:de1630741fbe
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #include "cntcontactcarddataitem.h"
       
    19 
       
    20 CntContactCardDataItem::CntContactCardDataItem(const QString& aTitle, bool aIsFocusable) :
       
    21     mIcon(HbIcon()),
       
    22     mSecondaryIcon(HbIcon()),
       
    23     mTitle(aTitle),
       
    24     mValueText(QString("")),
       
    25     mAction(QString("")),
       
    26     mValueTextElideMode(Qt::ElideRight),
       
    27     mIsFocusable(aIsFocusable)
       
    28 {
       
    29     
       
    30 }
       
    31 
       
    32 CntContactCardDataItem::~CntContactCardDataItem()
       
    33 {
       
    34 
       
    35 }
       
    36 
       
    37 void CntContactCardDataItem::setTitleText(const QString& aTitle)
       
    38 {
       
    39     mTitle = aTitle;
       
    40 }
       
    41 
       
    42 void CntContactCardDataItem::setValueText(const QString& aValueText, Qt::TextElideMode aValueTextElideMode)
       
    43 {
       
    44     mValueText = aValueText;
       
    45     mValueTextElideMode = aValueTextElideMode;
       
    46 }
       
    47 
       
    48 void CntContactCardDataItem::setIcon(HbIcon aIcon)
       
    49 {
       
    50     mIcon = aIcon;
       
    51 }
       
    52 
       
    53 void CntContactCardDataItem::setSecondaryIcon(HbIcon aSecondaryIcon)
       
    54 {
       
    55     mSecondaryIcon = aSecondaryIcon;
       
    56 }
       
    57 
       
    58 void CntContactCardDataItem::setAction(const QString& aAction)
       
    59 {
       
    60     mAction = aAction;
       
    61 }
       
    62 
       
    63 void CntContactCardDataItem::setContactDetail(QContactDetail aDetail)
       
    64 {
       
    65     mDetail = aDetail;
       
    66 }
       
    67