photosgallery/slideshow/view/inc/shwgesturecontrol.h
branchRCL_3
changeset 9 6b87b143d312
parent 0 4e91876724a2
child 47 f9e827349359
equal deleted inserted replaced
5:f7f0874bfe7d 9:6b87b143d312
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:    The settings model for the slideshow
    14 * Description:    The settings model for the slideshow
    15  *
    15  *
    16 */
    16 */
    17 
       
    18 
       
    19 
    17 
    20 
    18 
    21 #ifndef SHWGESTURECONTROL_H
    19 #ifndef SHWGESTURECONTROL_H
    22 #define SHWGESTURECONTROL_H
    20 #define SHWGESTURECONTROL_H
    23 
    21 
    58 	 * member variable
    56 	 * member variable
    59 	 * @param aEngine, handle to the slide show engine
    57 	 * @param aEngine, handle to the slide show engine
    60 	 * @param aEnv, handle to CAlfEnv 
    58 	 * @param aEnv, handle to CAlfEnv 
    61 	 * @param aDisplay, handle to CAlfDisplay
    59 	 * @param aDisplay, handle to CAlfDisplay
    62 	 */ 
    60 	 */ 
    63 	 static CShwGestureControl* NewL(CAlfEnv& aEnv,CAlfDisplay& aDisplay,
    61 	 static CShwGestureControl* NewL(CAlfEnv& aEnv,CAlfDisplay& aDisplay); 
    64 	 							MShwGestureObserver& aObserver); 
       
    65          
    62          
    66 	/**
    63 	/**
    67 	 * HandleGestureL
    64 	 * HandleGestureL
    68 	 * From MGestureObserver
    65 	 * From MGestureObserver
    69 	 * see @ref MGestureObserver
    66 	 * see @ref MGestureObserver
    70 	 */ 
    67 	 */ 
    71     void HandleGestureL( const GestureHelper::MGestureEvent& aEvent );
    68     void HandleGestureL( const GestureHelper::MGestureEvent& aEvent );
    72     
    69     
    73 	/**
    70 	/**
    74 	 * ~~CShwGestureControl
    71 	 * ~CShwGestureControl
    75 	 * standard C++ destructor 
    72 	 * standard C++ destructor 
    76 	 */ 
    73 	 */ 
    77     ~CShwGestureControl();
    74     ~CShwGestureControl();
       
    75     
       
    76     /**
       
    77      * AddObserver
       
    78      * Add an Observer 
       
    79      * @param aObserver, Observer to be added. 
       
    80      */ 
       
    81     void AddObserver(MShwGestureObserver* aObserver); 
       
    82 
       
    83     /**
       
    84      * RemoveObserver
       
    85      * Remove an Observer  
       
    86      * @param aEngine, handle to the slide show engine
       
    87      */ 
       
    88     void RemoveObserver(MShwGestureObserver* aObserver);
    78     
    89     
    79 private:
    90 private:
    80 
    91 
    81 	/**
    92 	/**
    82 	 * CShwGestureControl
    93 	 * CShwGestureControl
    83 	 * C++ constructor
    94 	 * C++ constructor
    84 	 */
    95 	 */
    85 	CShwGestureControl(MShwGestureObserver& aObserver);
    96 	CShwGestureControl();
    86 	
    97 	
    87 	/**
    98 	/**
    88 	 * ConstructL
    99 	 * ConstructL
    89 	 * 2nd Phase constructor
   100 	 * 2nd Phase constructor
    90 	 */ 
   101 	 */ 
    91 	void ConstructL( CAlfEnv& aEnv,CAlfDisplay& aDisplay ); 
   102 	void ConstructL( CAlfEnv& aEnv,CAlfDisplay& aDisplay ); 
    92 	
   103 	
    93 private:
   104 private:
    94 
   105 
    95 	/* does not own **/
   106     /** Array of observers (does not own ) */
    96 	MShwGestureObserver& iObserver;
   107 	// As per present design of the SS view, there is need only for one observer, 
       
   108 	// but this is more generic. Also this doesnt seem like a perfomance critical path 
       
   109     RPointerArray<MShwGestureObserver> iObservers;
    97 	};
   110 	};
    98 
   111 
    99 
   112 
   100 #endif //SHWGESTURECONTROL_H
   113 #endif //SHWGESTURECONTROL_H
   101 
   114