equal
deleted
inserted
replaced
21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 #include <coecntrl.h> // CCoeControl |
23 #include <coecntrl.h> // CCoeControl |
24 #include <cntdef.h> // TContactItemId |
24 #include <cntdef.h> // TContactItemId |
25 |
25 |
|
26 |
26 // FORWARD DECLARATIONS |
27 // FORWARD DECLARATIONS |
27 class CAknSingleGraphicStyleListBox; |
28 class CAknSingleGraphicStyleListBox; |
28 class CxSPLoader; |
29 class CxSPLoader; |
29 class CxSPViewIdChanger; |
30 class CxSPViewIdChanger; |
30 class MGlobalNoteObserver; |
31 class MGlobalNoteObserver; |
31 class CAknGlobalNote; |
32 class CAknGlobalNote; |
32 class CGlobalNoteObserver; |
33 class CGlobalNoteObserver; |
|
34 class CPbk2UIExtensionView; |
33 |
35 |
34 typedef CArrayPtrFlat<CxSPLoader> CxSPArray; |
36 typedef CArrayPtrFlat<CxSPLoader> CxSPArray; |
35 |
37 |
36 /** |
38 /** |
37 * Sort view control for Extension manager. |
39 * Sort view control for Extension manager. |
45 * |
47 * |
46 * @param aViewIdChanger Reference to view id changer |
48 * @param aViewIdChanger Reference to view id changer |
47 * @param aExtensions array of extensions |
49 * @param aExtensions array of extensions |
48 */ |
50 */ |
49 static CxSPSortViewControl* NewL( CxSPViewIdChanger& aViewIdChanger, |
51 static CxSPSortViewControl* NewL( CxSPViewIdChanger& aViewIdChanger, |
50 CxSPArray& aExtensions ); |
52 CxSPArray& aExtensions, |
|
53 CPbk2UIExtensionView& aView); |
51 |
54 |
52 /** |
55 /** |
53 * Creates a new CxSPSortViewControl and leaves it to |
56 * Creates a new CxSPSortViewControl and leaves it to |
54 * cleanup stack. |
57 * cleanup stack. |
55 * @see NewL |
58 * @see NewL |
56 */ |
59 */ |
57 static CxSPSortViewControl* NewLC( CxSPViewIdChanger& aViewIdChanger, |
60 static CxSPSortViewControl* NewLC( CxSPViewIdChanger& aViewIdChanger, |
58 CxSPArray& aExtensions ); |
61 CxSPArray& aExtensions, |
|
62 CPbk2UIExtensionView& aView ); |
59 |
63 |
60 /** |
64 /** |
61 * Destructor. |
65 * Destructor. |
62 */ |
66 */ |
63 ~CxSPSortViewControl(); |
67 ~CxSPSortViewControl(); |
66 TKeyResponse OfferKeyEventL |
70 TKeyResponse OfferKeyEventL |
67 ( const TKeyEvent& aKeyEvent, TEventCode aType ); |
71 ( const TKeyEvent& aKeyEvent, TEventCode aType ); |
68 void SizeChanged(); |
72 void SizeChanged(); |
69 TInt CountComponentControls() const; |
73 TInt CountComponentControls() const; |
70 CCoeControl* ComponentControl( TInt aIndex ) const; |
74 CCoeControl* ComponentControl( TInt aIndex ) const; |
|
75 |
|
76 void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
71 |
77 |
72 public: // Implementation |
78 public: // Implementation |
73 |
79 |
|
80 CCoeControl& CxSPSortViewControl::ComponentControl() const; |
|
81 |
74 /** |
82 /** |
75 * Sets the listbox data |
83 * Sets the listbox data |
76 */ |
84 */ |
77 void SetListBoxContentsL(); |
85 void SetListBoxContentsL(); |
78 |
86 |
105 * C++ constructor |
113 * C++ constructor |
106 * |
114 * |
107 * @param aViewIdChanger Reference to view id changer |
115 * @param aViewIdChanger Reference to view id changer |
108 * @param aExtensions array of extensions |
116 * @param aExtensions array of extensions |
109 */ |
117 */ |
110 CxSPSortViewControl( CxSPViewIdChanger& aViewIdChanger, CxSPArray& aExtensions ); |
118 CxSPSortViewControl( CxSPViewIdChanger& aViewIdChanger, CxSPArray& aExtensions, CPbk2UIExtensionView& aView ); |
111 |
119 |
112 /** |
120 /** |
113 * Performs the 2nd phase of construction. |
121 * Performs the 2nd phase of construction. |
114 */ |
122 */ |
115 void ConstructL(); |
123 void ConstructL(); |
119 /// Ref: view id changer |
127 /// Ref: view id changer |
120 CxSPViewIdChanger& iViewIdChanger; |
128 CxSPViewIdChanger& iViewIdChanger; |
121 |
129 |
122 /// Own: list box control |
130 /// Own: list box control |
123 CAknSingleGraphicStyleListBox* iListBox; |
131 CAknSingleGraphicStyleListBox* iListBox; |
|
132 |
|
133 /// not own: sortview |
|
134 CPbk2UIExtensionView& iView; |
124 |
135 |
125 /// Ref: Array of extensions |
136 /// Ref: Array of extensions |
126 CxSPArray& iExtensions; |
137 CxSPArray& iExtensions; |
127 |
138 |
128 /// Own: array that shows the sorted order |
139 /// Own: array that shows the sorted order |