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