24 #ifndef SHOW_FOTO_ITEM_MODEL_H
25 #define SHOW_FOTO_ITEM_MODEL_H
29 #include <QAbstractListModel>
57 ShowfotoItemModelPointerRole = Qt::UserRole,
58 ShowfotoItemModelInternalId = Qt::UserRole + 1,
64 ThumbnailRole = Qt::UserRole + 2,
69 ExtraDataRole = Qt::UserRole + 3,
74 ExtraDataDuplicateCount = Qt::UserRole + 6,
76 FilterModelRoles = Qt::UserRole + 100
115 QModelIndex indexForShowfotoItemId(qlonglong
id)
const;
123 QModelIndex indexForUrl(
const QUrl& fileUrl)
const;
134 void clearShowfotoItemInfos();
157 bool isEmpty()
const;
162 void removeIndex(
const QModelIndex& index);
180 int rowCount(
const QModelIndex& parent)
const override;
181 QVariant data(
const QModelIndex& index,
int role)
const override;
182 QVariant headerData(
int section,
Qt::Orientation orientation,
int role)
const override;
183 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
184 QModelIndex index(
int row,
int column,
const QModelIndex& parent)
const override;
195 void setSendRemovalSignals(
bool send);
249 void reAddingFinished();
250 void slotFileDeleted(
const QString& folder,
const QString& file,
bool status);
270 void emitDataChangedForAll();
271 void emitDataChangedForSelections(
const QItemSelection& selection);
290 void removeRowPairs(
const QList<QPair<int, int> >& toRemove);
Definition: dragdropimplementations.h:40
Definition: showfotoiteminfo.h:48
Definition: showfotoitemmodel.h:47
int numberOfIndexesForShowfotoItemId(qlonglong id) const
void requestIncrementalRefresh()
qlonglong showfotoItemId(const QModelIndex &index) const
void preprocess(const QList< ShowfotoItemInfo > &infos)
virtual void showfotoItemInfosCleared()
Definition: showfotoitemmodel.h:276
void finishIncrementalRefresh()
void itemInfosAboutToBeRemoved(const QList< ShowfotoItemInfo > &infos)
void startIncrementalRefresh()
ShowfotoItemModelRoles
Definition: showfotoitemmodel.h:53
void readyForIncrementalRefresh()
void itemInfosRemoved(const QList< ShowfotoItemInfo > &infos)
QList< qlonglong > showfotoItemIds(const QList< QModelIndex > &indexes) const
bool hasImage(qlonglong id) const
void itemInfosAboutToBeAdded(const QList< ShowfotoItemInfo > &infos)
QList< qlonglong > showfotoItemIds() const
void itemInfosAdded(const QList< ShowfotoItemInfo > &infos)
qlonglong showfotoItemId(int row) const
void processAdded(const QList< ShowfotoItemInfo > &infos)
static qlonglong retrieveShowfotoItemId(const QModelIndex &index)
QList< ShowfotoItemInfo > uniqueShowfotoItemInfos() const
void setKeepsFileUrlCache(bool keepCache)
QList< QModelIndex > indexesForShowfotoItemId(qlonglong id) const
int numberOfIndexesForShowfotoItemInfo(const ShowfotoItemInfo &info) const
virtual void showfotoItemInfosAboutToBeRemoved(int, int)
Definition: showfotoitemmodel.h:281
void allRefreshingFinished()
#define DECLARE_MODEL_DRAG_DROP_METHODS
Definition: dragdropimplementations.h:90
@ Orientation
Definition: coredbfields.h:86
Definition: datefolderview.cpp:43
QPair< int, int > IntPair
Definition: itemmodel.cpp:123
Definition: showfotofolderviewbar.cpp:52