phonebookui/pbkcommonui/src/cntcontactcarddataitem.cpp
changeset 61 d30183af6ca6
parent 37 fd64c38c277d
--- a/phonebookui/pbkcommonui/src/cntcontactcarddataitem.cpp	Wed Aug 11 09:06:35 2010 +0300
+++ b/phonebookui/pbkcommonui/src/cntcontactcarddataitem.cpp	Mon Aug 23 16:06:28 2010 +0300
@@ -26,6 +26,8 @@
     mActionDescriptor(QContactActionDescriptor()),
     mValueTextElideMode(Qt::ElideRight),
     mIsFocusable(aIsFocusable),
+    mExtension(NULL),
+    mExtensionActionIndex(0),
     mPosition(aPosition)
 {
     
@@ -41,7 +43,9 @@
     mTitle = aTitle;
 }
 
-void CntContactCardDataItem::setValueText(const QString& aValueText, Qt::TextElideMode aValueTextElideMode)
+void CntContactCardDataItem::setValueText(
+    const QString& aValueText,
+    Qt::TextElideMode aValueTextElideMode)
 {
     mValueText = aValueText;
     mValueTextElideMode = aValueTextElideMode;
@@ -76,3 +80,10 @@
 {
     mLongPressText = aLongPressText;
 }
+
+void CntContactCardDataItem::setContactCardExtensionAndActionIndex( CntUiContactCardExtension& aExtension, int aIndex )
+{
+    mExtension = &aExtension;
+    mExtensionActionIndex = aIndex;
+}
+