photosgallery/viewframework/medialists/inc/glxlistwindow.h
branchRCL_3
changeset 47 f9e827349359
parent 0 4e91876724a2
equal deleted inserted replaced
35:420f6808bf21 47:f9e827349359
   106      *
   106      *
   107      * Cannot be called by the destructor of this class, as long as deriving
   107      * Cannot be called by the destructor of this class, as long as deriving
   108      * classes implement MGlxWindowObjectFactory, since vtable would not
   108      * classes implement MGlxWindowObjectFactory, since vtable would not
   109      * be valid in the destructor 
   109      * be valid in the destructor 
   110 	 */
   110 	 */
   111 	IMPORT_C void Cleanup();
   111 	IMPORT_C void CleanupL();
   112 
   112 
   113 	/**
   113 	/**
   114 	 * Updates range offset. The range is the span of indexes that defined 
   114 	 * Updates range offset. The range is the span of indexes that defined 
   115 	 * which objects should exists as actual objects in the window (and which 
   115 	 * which objects should exists as actual objects in the window (and which 
   116 	 * should be abstract in the form of indexes). The range is calculated
   116 	 * should be abstract in the form of indexes). The range is calculated
   126 	
   126 	
   127  	/**
   127  	/**
   128  	 * Sets the focus. 
   128  	 * Sets the focus. 
   129  	 * @param aFocusIndex index of the object to be focused in the list
   129  	 * @param aFocusIndex index of the object to be focused in the list
   130  	 */
   130  	 */
   131 	/* @todo depricated */ IMPORT_C void SetFocusIndex( TInt aFocusIndex ); 
   131 	/* @todo depricated */ IMPORT_C void SetFocusIndexL( TInt aFocusIndex ); 
   132 	IMPORT_C void SetFocusIndex( TInt aFocusIndex, TInt aTotalSize );
   132 	IMPORT_C void SetFocusIndexL( TInt aFocusIndex, TInt aTotalSize );
   133 
   133 
   134 	/**
   134 	/**
   135 	 * Adds objects to the list. Updates window if necessary.
   135 	 * Adds objects to the list. Updates window if necessary.
   136 	 * The function assumes that the underlying data structure has
   136 	 * The function assumes that the underlying data structure has
   137 	 * already changed.
   137 	 * already changed.
   138 	 */
   138 	 */
   139 	/* @todo depricated */ IMPORT_C void AddObjects( TInt aFirstNewIndex, TInt aLastNewIndex ); 
   139 	/* @todo depricated */ IMPORT_C void AddObjectsL( TInt aFirstNewIndex, TInt aLastNewIndex ); 
   140 	IMPORT_C void AddObjects( TInt aFocusIndex, TInt aTotalSize,
   140 	IMPORT_C void AddObjectsL( TInt aFocusIndex, TInt aTotalSize,
   141 	    TInt aFirstNewIndex, TInt aLastNewIndex );
   141 	    TInt aFirstNewIndex, TInt aLastNewIndex );
   142 	
   142 	
   143 	/**
   143 	/**
   144 	 * Removes objects from the list. Updates window if necessary.
   144 	 * Removes objects from the list. Updates window if necessary.
   145 	 * The function assumes that the underlying data structure has
   145 	 * The function assumes that the underlying data structure has
   146 	 * already changed.
   146 	 * already changed.
   147 	 */
   147 	 */
   148 	/* @todo depricated */ IMPORT_C void RemoveObjects( TInt aFirstRemovedIndex, TInt aLastRemovedIndex ); 
   148 	/* @todo depricated */ IMPORT_C void RemoveObjectsL( TInt aFirstRemovedIndex, TInt aLastRemovedIndex ); 
   149 	IMPORT_C void RemoveObjects( TInt aFocusIndex, TInt aTotalSize, 
   149 	IMPORT_C void RemoveObjectsL( TInt aFocusIndex, TInt aTotalSize, 
   150 	    TInt aFirstRemovedIndex, TInt aLastRemovedIndex );
   150 	    TInt aFirstRemovedIndex, TInt aLastRemovedIndex );
   151 	
   151 	
   152 	/**
   152 	/**
   153 	 * Access to objects in window
   153 	 * Access to objects in window
   154 	 * For iteration through items in the window use Iterator()
   154 	 * For iteration through items in the window use Iterator()
   190         /// last index added or removed, depending on iChangeType
   190         /// last index added or removed, depending on iChangeType
   191         TInt iLastChangedIndex;
   191         TInt iLastChangedIndex;
   192         };
   192         };
   193 
   193 
   194     /** Update the window based on the change */
   194     /** Update the window based on the change */
   195     void Update( const TChange& aChange );
   195     void UpdateL( const TChange& aChange );
   196     /** Move objects from main window to working window, or object pool if not needed */
   196     /** Move objects from main window to working window, or object pool if not needed */
   197     void PopulateExistingAndUnuseOld( const TChange& aChange );
   197     void PopulateExistingAndUnuseOldL( const TChange& aChange );
   198     /** Populate main window with items from object pool */
   198     /** Populate main window with items from object pool */
   199     void PopulateNew();
   199     void PopulateNew();
   200     /** Make working window the main window and vice versa */
   200     /** Make working window the main window and vice versa */
   201     void SwapWindows();
   201     void SwapWindows();
   202     /** @return an object from the object pool */
   202     /** @return an object from the object pool */