ui/uiengine/medialists/inc/glxmedialistiterator.h
changeset 29 2c833fc9e98f
parent 24 99ad1390cd33
equal deleted inserted replaced
26:c499df2dbb33 29:2c833fc9e98f
   552 	 * List being traversed
   552 	 * List being traversed
   553 	 */
   553 	 */
   554 	const MGlxMediaList* iList;
   554 	const MGlxMediaList* iList;
   555 	};
   555 	};
   556 	
   556 	
       
   557 /**
       
   558  * TGlxScrollingDirectionIterator
       
   559  * 
       
   560  * Ordered that returns the index of the visible window item based on ScrollDirection
       
   561  */	
       
   562 class TGlxScrollingDirectionIterator : public MGlxMediaListIterator
       
   563 	{
       
   564 	
       
   565 public:
       
   566     
       
   567 	 IMPORT_C ~TGlxScrollingDirectionIterator( );
       
   568 	 IMPORT_C TGlxScrollingDirectionIterator( );
       
   569 	
       
   570 	/**
       
   571 	 * Set the range offsets
       
   572 	 */
       
   573      IMPORT_C void SetRangeOffsets(TInt aRearOffset, TInt aFrontOffset);
       
   574     
       
   575     // From MGlxMediaListIterator
       
   576 	virtual void SetToFirst(const MGlxMediaList* aList);
       
   577 	virtual TInt operator++(TInt);
       
   578 	virtual TBool InRange(TInt aIndex) const;
       
   579 
       
   580 private:
       
   581     
       
   582     enum TMovingDirection
       
   583         {
       
   584         EForward,
       
   585         EBackward,
       
   586         EIdle
       
   587         };
       
   588     
       
   589 	/**	
       
   590 	 * The count or ordinal of the item that is currently "selected"
       
   591 	 * This translates to how many times ++ has been called
       
   592 	 */
       
   593 	TInt iCurrentItem;
       
   594 
       
   595 	/**
       
   596 	 * Number of items within range after visible index
       
   597 	 */
       
   598 	TInt iFrontOffset;
       
   599 
       
   600 	/**
       
   601 	 * Number of items within range before visible index
       
   602 	 */
       
   603 	TInt iRearOffset;
       
   604     
       
   605 	TInt iDefaultVisItems;
       
   606 	TMovingDirection iMovingDirection;
       
   607 	TInt iExVisindex;
       
   608 	
       
   609 protected:	
       
   610 	/**
       
   611 	 * List being traversed
       
   612 	 */
       
   613 	const MGlxMediaList* iList;
       
   614 	};
       
   615 	
   557 #endif // __C_GLXMEDIALISTITERATOR_H__
   616 #endif // __C_GLXMEDIALISTITERATOR_H__
   558 
   617