You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-03 23:50:33 +02:00
40 lines
645 B
C++
Executable File
40 lines
645 B
C++
Executable File
#ifndef ITEMLISTCONTROLLER_H
|
|
#define ITEMLISTCONTROLLER_H
|
|
|
|
#include <stable.h>
|
|
|
|
#include "models/folder.h"
|
|
#include "baseitemlistcontroller.h"
|
|
|
|
namespace jop {
|
|
|
|
class FolderListController : public BaseItemListController {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
FolderListController();
|
|
|
|
protected:
|
|
|
|
void updateItemCount();
|
|
const BaseModel* cacheGet(int index) const;
|
|
void cacheSet(int index, BaseModel* baseModel) const;
|
|
bool cacheIsset(int index) const;
|
|
void cacheClear() const;
|
|
|
|
private:
|
|
|
|
mutable std::vector<std::unique_ptr<Folder>> cache_;
|
|
|
|
public slots:
|
|
|
|
void itemList_rowsRequested(int fromIndex, int toIndex);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // ITEMLISTCONTROLLER_H
|