hgcacheproxymodel/src/hgbuffermanager.cpp
changeset 13 8bf920201dea
parent 8 15f034b8a3b5
child 17 a10844a9914d
equal deleted inserted replaced
9:dde80bf4a8c7 13:8bf920201dea
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 *  Version     : %version: 6 %
    16 *  Version     : %version: 7 %
    17 */
    17 */
    18 #include "hgbuffermanager.h"
    18 #include "hgbuffermanager.h"
    19 #include <hgwidgets/hgcacheproxymodel.h>
    19 #include <hgwidgets/hgcacheproxymodel.h>
    20 
    20 
    21 
    21 
    28 :
    28 :
    29 mObserver(aObserver),
    29 mObserver(aObserver),
    30 mBufferSize( aBufferSize ),
    30 mBufferSize( aBufferSize ),
    31 mBufferTreshold( aBufferTreshold ),
    31 mBufferTreshold( aBufferTreshold ),
    32 mBufferPosition( aInitialPosition ),
    32 mBufferPosition( aInitialPosition ),
    33 mTotalCount( aTotalCount )
    33 mDiff(0),
       
    34 mTotalCount( aTotalCount ),
       
    35 mResetOrdered(false),
       
    36 mRequestStart(0),
       
    37 mRequestCount(0),
       
    38 mReleaseStart(0),
       
    39 mReleaseCount(0)
    34 {
    40 {
    35     ASSERT( mObserver != 0 );
    41     ASSERT( mObserver != 0 );
    36     mBufferPosition -= (mBufferSize / 2);
    42     mBufferPosition -= (mBufferSize / 2);
    37     
    43     
    38     if( mBufferPosition + mBufferSize > mTotalCount - 1 ){
    44     if( mBufferPosition + mBufferSize > mTotalCount - 1 ){