hgcacheproxymodel/tsrc/unit/bmhelper.h
changeset 3 c863538fcbb6
parent 1 e48454f237ca
equal deleted inserted replaced
2:49c70dcc3f17 3:c863538fcbb6
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 *  Version     : %version: 1 %
    16 *  Version     : %version: 2 %
    17 */
    17 */
    18 #ifndef BUFFERMANAGERHELPER_H
    18 #ifndef BUFFERMANAGERHELPER_H
    19 #define BUFFERMANAGERHELPER_H
    19 #define BUFFERMANAGERHELPER_H
    20 
    20 
    21 #include <hgwidgets/hgcacheproxymodel.h>
    21 #include <hgwidgets/hgcacheproxymodel.h>
    28     
    28     
    29     virtual void release(int start, int end);
    29     virtual void release(int start, int end);
    30     virtual void request(int start, int end, HgRequestOrder order = HgRequestOrderAscending);  
    30     virtual void request(int start, int end, HgRequestOrder order = HgRequestOrderAscending);  
    31 
    31 
    32     bool isIntergal(int bufferSize);
    32     bool isIntergal(int bufferSize);
    33     void itemCountChanged( int aIndex, bool aRemoved, int aNewTotalCount );
    33     int totalSize();
    34     void resizeCache(int newSize);
    34     void resizeCache(int newSize);
       
    35 
       
    36     void remove(int pos);
       
    37     void insert(int pos);
    35 
    38 
    36     
    39     
    37 private:    
    40 private:    
    38     QList< bool > mBuffer;
    41     QList< bool > mBuffer;
    39     
    42