phonebookui/Phonebook2/UIControls/inc/pbk2contactviewdoublelistboxdataelement.h
branchRCL_3
changeset 32 2828b4d142c0
parent 0 e686773b3f54
child 57 2666d9724c76
--- a/phonebookui/Phonebook2/UIControls/inc/pbk2contactviewdoublelistboxdataelement.h	Tue Apr 27 16:23:35 2010 +0300
+++ b/phonebookui/Phonebook2/UIControls/inc/pbk2contactviewdoublelistboxdataelement.h	Tue May 11 16:00:21 2010 +0300
@@ -25,6 +25,7 @@
 #include <TPbk2IconId.h>
 
 //FORWARD
+class MVPbkContactLink;
 
 // CLASS DECLARATION
 
@@ -37,12 +38,16 @@
         public MPbk2DoubleListboxDataElement
     {
 public: // constructor and destructor
-    static CPbk2ContactViewDoubleListboxDataElement* NewLC();
+    static CPbk2ContactViewDoubleListboxDataElement* NewL(
+            MVPbkContactLink* aLink = NULL,
+            TInt aListIndex = KErrNotFound );
     ~CPbk2ContactViewDoubleListboxDataElement();
 
     TPtr TextPtr(
             MPbk2DoubleListboxDataElement::TTextDataElementItems aIndex) const;
-
+    inline const MVPbkContactLink* ContactLink();
+    inline TInt ListIndex();
+    
 public: // from MPbk2DoubleListboxDataElement
     const TPbk2IconId& IconId( 
             MPbk2DoubleListboxDataElement::TIconDataElementItems aIndex ) const;
@@ -59,16 +64,33 @@
             HBufC* aBuffer,
             MPbk2DoubleListboxDataElement::TTextDataType aType );
 private:
-    inline CPbk2ContactViewDoubleListboxDataElement();
+    inline CPbk2ContactViewDoubleListboxDataElement(TInt aListIndex);
     inline void ConstructL();
 
 private:
     TFixedArray<TPbk2IconId, 3> iIcons;
     TFixedArray<HBufC*, 2> iTexts;
     TFixedArray<TTextDataType, 2 > iTextType;
+    /// Own
     HBufC* iEmptyBuffer;
+    /// Own: for data cache
+    MVPbkContactLink* iLink;
+    /// for data cache
+    TInt iListIndex;
     };
-        
+
+inline const MVPbkContactLink* 
+CPbk2ContactViewDoubleListboxDataElement::ContactLink()
+    {
+    return iLink;
+    }
+
+inline TInt CPbk2ContactViewDoubleListboxDataElement::ListIndex()
+    {
+    return iListIndex;
+    }
+
+
 #endif // PBK2CONTACTVIEWDOUBLELISTBOXDATAELEMENT_H
 
 // End of File