phonebookui/Phonebook2/xSPExtensionManager/src/CxSPSortViewControl.h
branchRCL_3
changeset 21 b3431bff8c19
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
--- a/phonebookui/Phonebook2/xSPExtensionManager/src/CxSPSortViewControl.h	Mon Mar 15 12:39:26 2010 +0200
+++ b/phonebookui/Phonebook2/xSPExtensionManager/src/CxSPSortViewControl.h	Wed Mar 31 21:13:53 2010 +0300
@@ -23,6 +23,7 @@
 #include <coecntrl.h>     // CCoeControl
 #include <cntdef.h>       // TContactItemId
 
+
 // FORWARD DECLARATIONS
 class CAknSingleGraphicStyleListBox;
 class CxSPLoader;
@@ -30,6 +31,7 @@
 class MGlobalNoteObserver;
 class CAknGlobalNote;
 class CGlobalNoteObserver;
+class CPbk2UIExtensionView;
 
 typedef CArrayPtrFlat<CxSPLoader> CxSPArray;
 
@@ -47,7 +49,8 @@
          * @param aExtensions array of extensions
          */
         static CxSPSortViewControl* NewL( CxSPViewIdChanger& aViewIdChanger,
-        									CxSPArray& aExtensions );
+        									CxSPArray& aExtensions, 
+        									CPbk2UIExtensionView& aView);
 
         /**
          * Creates a new CxSPSortViewControl and leaves it to
@@ -55,7 +58,8 @@
          * @see NewL
          */
         static CxSPSortViewControl* NewLC( CxSPViewIdChanger& aViewIdChanger,
-        									CxSPArray& aExtensions );
+        									CxSPArray& aExtensions, 
+        									CPbk2UIExtensionView& aView );
 
         /**
          * Destructor.
@@ -68,9 +72,13 @@
         void SizeChanged();
         TInt CountComponentControls() const;
         CCoeControl* ComponentControl( TInt aIndex ) const;
+        
+        void HandlePointerEventL(const TPointerEvent& aPointerEvent);
 
     public: // Implementation
-
+        
+        CCoeControl& CxSPSortViewControl::ComponentControl() const;
+        
     	/**
     	 * Sets the listbox data
     	 */
@@ -107,7 +115,7 @@
          * @param aViewIdChanger Reference to view id changer
          * @param aExtensions array of extensions
          */
-        CxSPSortViewControl( CxSPViewIdChanger& aViewIdChanger, CxSPArray& aExtensions );
+        CxSPSortViewControl( CxSPViewIdChanger& aViewIdChanger, CxSPArray& aExtensions, CPbk2UIExtensionView& aView );
 
         /**
          * Performs the 2nd phase of construction.
@@ -121,6 +129,9 @@
 
         /// Own: list box control
         CAknSingleGraphicStyleListBox* iListBox;
+        
+        /// not own: sortview
+        CPbk2UIExtensionView& iView;
 
         /// Ref: Array of extensions
         CxSPArray& iExtensions;