--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/phonebookui/pbkcommonui/src/cntcontactcarddataitem.cpp Mon May 03 12:24:20 2010 +0300
@@ -0,0 +1,67 @@
+/*
+* 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, bool aIsFocusable) :
+ mIcon(HbIcon()),
+ mSecondaryIcon(HbIcon()),
+ mTitle(aTitle),
+ mValueText(QString("")),
+ mAction(QString("")),
+ mValueTextElideMode(Qt::ElideRight),
+ mIsFocusable(aIsFocusable)
+{
+
+}
+
+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;
+}
+