24 |
24 |
25 //FORWARD |
25 //FORWARD |
26 class CPbk2ThumbnailManager; |
26 class CPbk2ThumbnailManager; |
27 class MPbk2ContactUiControlDoubleListboxExtension; |
27 class MPbk2ContactUiControlDoubleListboxExtension; |
28 class CPbk2ContactViewDoubleListboxDataElement; |
28 class CPbk2ContactViewDoubleListboxDataElement; |
|
29 class CDataElementCache; |
|
30 class MPbk2FilteredViewStack; |
29 |
31 |
30 // CLASS DECLARATION |
32 // CLASS DECLARATION |
31 |
33 |
32 /** |
34 /** |
33 * Phonebook 2 contact view double list box model. |
35 * Phonebook 2 contact view double list box model. |
43 * @param aParams Parameters for the model. |
45 * @param aParams Parameters for the model. |
44 * @return A new instance of this class. |
46 * @return A new instance of this class. |
45 */ |
47 */ |
46 static CPbk2ContactViewDoubleListBoxModel* NewL( |
48 static CPbk2ContactViewDoubleListBoxModel* NewL( |
47 CPbk2ContactViewListBoxModel::TParams& aParams, |
49 CPbk2ContactViewListBoxModel::TParams& aParams, |
48 CPbk2ThumbnailManager& aThumbManager ); |
50 CPbk2ThumbnailManager& aThumbManager, |
|
51 MPbk2FilteredViewStack& aFilteredViewStack ); |
49 |
52 |
50 /** |
53 /** |
51 * Destructor. |
54 * Destructor. |
52 */ |
55 */ |
53 ~CPbk2ContactViewDoubleListBoxModel(); |
56 ~CPbk2ContactViewDoubleListBoxModel(); |
59 /** |
62 /** |
60 * Constructor |
63 * Constructor |
61 */ |
64 */ |
62 CPbk2ContactViewDoubleListBoxModel( |
65 CPbk2ContactViewDoubleListBoxModel( |
63 CPbk2ContactViewListBoxModel::TParams& aParams, |
66 CPbk2ContactViewListBoxModel::TParams& aParams, |
64 CPbk2ThumbnailManager& aThumbManager ); |
67 CPbk2ThumbnailManager& aThumbManager, |
|
68 MPbk2FilteredViewStack& aFilteredViewStack ); |
65 |
69 |
66 protected: // new |
70 protected: // new |
67 |
71 |
68 /** |
72 /** |
69 * Format whole line buffer based on aElement's content. |
73 * Format whole line buffer based on aElement's content. |
85 /* |
89 /* |
86 * Appends icon index with trailing tab character if it's found from the icon array |
90 * Appends icon index with trailing tab character if it's found from the icon array |
87 * |
91 * |
88 * @param aIconId Id of the icon in icon array |
92 * @param aIconId Id of the icon in icon array |
89 */ |
93 */ |
90 void AppendIconIndexIfFound( const TPbk2IconId& aIconId ) const; |
94 void AppendIconIndexIfFound( const TPbk2IconId& aIconId ) const; |
91 |
95 |
|
96 void FormatBufferForElementDataL( |
|
97 CPbk2ContactViewDoubleListboxDataElement& aDataElement, |
|
98 TInt aIndex ) const; |
|
99 |
|
100 void AppendThumbnailL( |
|
101 CPbk2ContactViewDoubleListboxDataElement& aDataElement, |
|
102 TInt aIndex ) const; |
|
103 |
|
104 void FetchDataFromExtension( |
|
105 CPbk2ContactViewDoubleListboxDataElement& aDataElement, |
|
106 TInt aIndex ) const; |
|
107 |
92 public: // From CPbk2ContactViewListBoxModel |
108 public: // From CPbk2ContactViewListBoxModel |
93 |
109 void FormatBufferL( |
|
110 const TInt aIndex ) const; |
94 /// See CPbk2ContactViewListBoxModel |
111 /// See CPbk2ContactViewListBoxModel |
95 void FormatBufferForContactL( |
112 void FormatBufferForContactL( |
96 const MVPbkViewContact& aViewContact, |
113 const MVPbkViewContact& aViewContact, |
97 TInt aIndex ) const; |
114 TInt aIndex ) const; |
98 |
|
99 private: //data |
115 private: //data |
100 |
116 |
101 //REF: thumbnail manager |
117 //REF: thumbnail manager |
102 CPbk2ThumbnailManager& iThumbManager; |
118 CPbk2ThumbnailManager& iThumbManager; |
103 |
119 |
104 /// Ref |
120 /// Ref |
105 MPbk2ContactUiControlDoubleListboxExtension* iDoubleListExtensionPoint; |
121 MPbk2ContactUiControlDoubleListboxExtension* iDoubleListExtensionPoint; |
106 |
122 |
|
123 /// Own: |
|
124 CDataElementCache* iDataElementCache; |
|
125 |
|
126 /// Ref |
|
127 MPbk2FilteredViewStack& iFilteredViewStack; |
107 }; |
128 }; |
108 |
129 |
109 #endif // CPBK2CONTACTVIEWDOUBLELISTBOXMODEL_H |
130 #endif // CPBK2CONTACTVIEWDOUBLELISTBOXMODEL_H |
110 |
131 |
111 // End of File |
132 // End of File |