29 // CONSTANTS |
29 // CONSTANTS |
30 |
30 |
31 // Easy dialing specific listbox events |
31 // Easy dialing specific listbox events |
32 const TInt KEasyDialingContactSelected( 0x1001 ); |
32 const TInt KEasyDialingContactSelected( 0x1001 ); |
33 const TInt KEasyDialingContactLongTapped( 0x1002 ); |
33 const TInt KEasyDialingContactLongTapped( 0x1002 ); |
|
34 const TInt KEasyDialingScrollingStarted( 0x1003 ); |
|
35 const TInt KEasyDialingScrollingStopped( 0x1004 ); |
34 |
36 |
35 // FORWARD DECLARATIONS |
37 // FORWARD DECLARATIONS |
36 |
38 |
37 class CEasyDialingListBoxItemDrawer; |
39 class CEasyDialingListBoxItemDrawer; |
38 class CAknsFrameBackgroundControlContext; |
40 class CAknsFrameBackgroundControlContext; |
70 * @param aFlags Listbox flags. |
72 * @param aFlags Listbox flags. |
71 * @param aContactDataManager Pointer to contact data manager |
73 * @param aContactDataManager Pointer to contact data manager |
72 */ |
74 */ |
73 void ConstructL( TInt aFlags, |
75 void ConstructL( TInt aFlags, |
74 CEasyDialingContactDataManager* aContactDataManager ); |
76 CEasyDialingContactDataManager* aContactDataManager ); |
75 |
77 |
76 /** |
78 /** |
77 * From CEikFormattedCellListBox. |
79 * From CEikFormattedCellListBox. |
78 */ |
80 */ |
79 virtual CListBoxView* MakeViewClassInstanceL(); |
81 virtual CListBoxView* MakeViewClassInstanceL(); |
80 |
82 |
84 CEasyDialingListBoxItemDrawer* ItemDrawer() const; |
86 CEasyDialingListBoxItemDrawer* ItemDrawer() const; |
85 |
87 |
86 /** |
88 /** |
87 * From CEikFormattedCellListBox. |
89 * From CEikFormattedCellListBox. |
88 */ |
90 */ |
89 void Draw(const TRect& aRect) const; |
91 void Draw( const TRect& aRect ) const; |
90 |
92 |
91 /** |
93 /** |
92 * From CEikFormattedCellListBox. |
94 * From CEikFormattedCellListBox. |
93 */ |
95 */ |
94 void HandleResourceChange(TInt aType); |
96 void HandleResourceChange( TInt aType ); |
|
97 |
|
98 /** |
|
99 * From CEikFormattedCellListBox. |
|
100 */ |
|
101 void HandleScrollEventL( CEikScrollBar* aScrollBar, TEikScrollEvent aEventType ); |
95 |
102 |
96 /** |
103 /** |
97 * From CCoeControl |
104 * From CCoeControl |
98 */ |
105 */ |
99 void MakeVisible(TBool aVisible); |
106 void MakeVisible( TBool aVisible ); |
100 |
107 |
101 /** |
108 /** |
102 * From CCoeControl |
109 * From CCoeControl |
103 */ |
110 */ |
104 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
111 void HandlePointerEventL( const TPointerEvent& aPointerEvent ); |
105 |
112 |
106 /** |
113 /** |
107 * The the rectangle within which the listbox must always fit. |
114 * The the rectangle within which the listbox must always fit. |
108 * @param aMaxRect The largest allowed rect size, given in |
115 * @param aMaxRect The largest allowed rect size, given in |
109 * screen relative coordinate system. |
116 * screen relative coordinate system. |
110 */ |
117 */ |
111 void SetMaxRect( TRect aMaxRect ); |
118 void SetMaxRect( TRect aMaxRect ); |
112 |
119 |
113 /** |
120 /** |
114 * Adjusts the control rect according to amount of visible contacts. |
121 * Adjusts the control rect according to amount of visible contacts. |
123 * @param aKeyEvent key event |
130 * @param aKeyEvent key event |
124 * @param aType key event type |
131 * @param aType key event type |
125 * @return Whether the key was handled or not. |
132 * @return Whether the key was handled or not. |
126 */ |
133 */ |
127 TKeyResponse SetFocusedWithKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
134 TKeyResponse SetFocusedWithKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType ); |
128 |
|
129 |
135 |
130 /** |
136 /** |
131 * Gets the height of the listbox based on the number of items. |
137 * Gets the height of the listbox based on the number of items. |
132 * @param aNum Number of items. |
138 * @param aNum Number of items. |
133 */ |
139 */ |