24 #ifndef DIGIKAM_IMPORT_IMAGE_MODEL_H
25 #define DIGIKAM_IMPORT_IMAGE_MODEL_H
29 #include <QAbstractListModel>
40 class AbstractItemDragDropHandler;
124 QModelIndex
indexForUrl(
const QUrl& fileUrl)
const;
176 int rowCount(
const QModelIndex& parent)
const override;
177 QVariant
data(
const QModelIndex&
index,
int role)
const override;
179 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
180 QModelIndex
index(
int row,
int column,
const QModelIndex& parent)
const override;
251 void slotFileDeleted(
const QString& folder,
const QString& file,
bool status);
300 void cleanSituationChecks();
301 void removeRowPairs(
const QList<QPair<int, int> >& toRemove);
302 void removeRowPairsWithCheck(
const QList<QPair<int, int> >& toRemove);
Definition: camiteminfo.h:48
Definition: camerathumbsctrl.h:48
Definition: dragdropimplementations.h:40
Definition: importimagemodel.h:43
QList< CamItemInfo > uniqueCamItemInfos() const
Definition: importimagemodel.cpp:504
bool keepsFileUrlCache() const
Definition: importimagemodel.cpp:139
DECLARE_MODEL_DRAG_DROP_METHODS void setSendRemovalSignals(bool send)
DragDrop methods.
Definition: importimagemodel.cpp:793
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
Definition: importimagemodel.cpp:1064
void addCamItemInfoSynchronously(const CamItemInfo &info)
Definition: importimagemodel.cpp:452
bool isEmpty() const
Definition: importimagemodel.cpp:144
Qt::ItemFlags flags(const QModelIndex &index) const override
Definition: importimagemodel.cpp:1083
bool hasIncrementalRefreshPending() const
Definition: importimagemodel.cpp:683
void allRefreshingFinished()
void processAdded(const QList< CamItemInfo > &infos)
void readyForIncrementalRefresh()
void startIncrementalRefresh()
Definition: importimagemodel.cpp:688
QModelIndex index(int row, int column, const QModelIndex &parent) const override
Definition: importimagemodel.cpp:1097
QModelIndex indexForCamItemInfo(const CamItemInfo &info) const
Definition: importimagemodel.cpp:233
int rowCount(const QModelIndex &parent) const override
QAbstractListModel implementation.
Definition: importimagemodel.cpp:1073
void finishRefresh()
Definition: importimagemodel.cpp:597
void setCamItemInfos(const CamItemInfoList &infos)
Definition: importimagemodel.cpp:488
void slotFileDeleted(const QString &folder, const QString &file, bool status)
Definition: importimagemodel.cpp:576
virtual void itemInfosAboutToBeRemoved(int, int)
Definition: importimagemodel.h:294
QVariant data(const QModelIndex &index, int role) const override
Definition: importimagemodel.cpp:1035
ImportItemModel(QObject *const parent=nullptr)
Definition: importimagemodel.cpp:109
QModelIndex indexForCamItemId(qlonglong id) const
Definition: importimagemodel.cpp:243
void emitDataChangedForSelections(const QItemSelection &selection)
Definition: importimagemodel.cpp:544
void preprocess(const QList< CamItemInfo > &infos)
int numberOfIndexesForCamItemId(qlonglong id) const
Definition: importimagemodel.cpp:274
void reAddingFinished()
Definition: importimagemodel.cpp:570
int numberOfIndexesForCamItemInfo(const CamItemInfo &info) const
Definition: importimagemodel.cpp:269
static CamItemInfo retrieveCamItemInfo(const QModelIndex &index)
Definition: importimagemodel.cpp:288
virtual void camItemInfosCleared()
Definition: importimagemodel.h:289
void reAddCamItemInfos(const CamItemInfoList &infos)
Definition: importimagemodel.cpp:565
QList< CamItemInfo > camItemInfos() const
Definition: importimagemodel.cpp:494
void itemInfosAboutToBeAdded(const QList< CamItemInfo > &infos)
qlonglong camItemId(const QModelIndex &index) const
Definition: importimagemodel.cpp:169
static qlonglong retrieveCamItemId(const QModelIndex &index)
Definition: importimagemodel.cpp:307
virtual void setCameraThumbsController(CameraThumbsCtrl *const controller)
Definition: importimagemodel.cpp:120
QList< qlonglong > camItemIds() const
Definition: importimagemodel.cpp:499
void clearCamItemInfos()
Definition: importimagemodel.cpp:468
void slotFileUploaded(const CamItemInfo &info)
Definition: importimagemodel.cpp:587
QModelIndex indexForUrl(const QUrl &fileUrl) const
Definition: importimagemodel.cpp:325
void itemInfosAdded(const QList< CamItemInfo > &infos)
void removeIndexs(const QList< QModelIndex > &indexes)
Definition: importimagemodel.cpp:751
ImportItemModelRoles
Definition: importimagemodel.h:49
@ ExtraDataRole
Definition: importimagemodel.h:64
@ FilterModelRoles
Definition: importimagemodel.h:71
@ ImportItemModelPointerRole
Definition: importimagemodel.h:53
@ ExtraDataDuplicateCount
Definition: importimagemodel.h:69
@ ImportItemModelInternalId
Definition: importimagemodel.h:54
@ ThumbnailRole
Definition: importimagemodel.h:60
QList< QModelIndex > indexesForUrl(const QUrl &fileUrl) const
Definition: importimagemodel.cpp:347
void removeCamItemInfos(const QList< CamItemInfo > &infos)
Definition: importimagemodel.cpp:776
void requestIncrementalRefresh()
Definition: importimagemodel.cpp:671
void addCamItemInfo(const CamItemInfo &info)
Definition: importimagemodel.cpp:430
QList< QModelIndex > indexesForCamItemId(qlonglong id) const
Definition: importimagemodel.cpp:255
void finishIncrementalRefresh()
Definition: importimagemodel.cpp:695
void itemInfosRemoved(const QList< CamItemInfo > &infos)
void itemInfosAboutToBeRemoved(const QList< CamItemInfo > &infos)
void removeIndex(const QModelIndex &index)
Definition: importimagemodel.cpp:746
~ImportItemModel() override
Definition: importimagemodel.cpp:115
void emitDataChangedForAll()
Definition: importimagemodel.cpp:532
bool hasImage(qlonglong id) const
Definition: importimagemodel.cpp:522
CamItemInfo camItemInfo(const QModelIndex &index) const
Definition: importimagemodel.cpp:149
bool isRefreshing() const
Definition: importimagemodel.cpp:603
void addCamItemInfos(const CamItemInfoList &infos)
Definition: importimagemodel.cpp:435
void setKeepsFileUrlCache(bool keepCache)
Definition: importimagemodel.cpp:134
void addCamItemInfosSynchronously(const Digikam::CamItemInfoList &infos)
Definition: importimagemodel.cpp:457
void removeCamItemInfo(const CamItemInfo &info)
Definition: importimagemodel.cpp:771
CamItemInfo & camItemInfoRef(const QModelIndex &index) const
Definition: importimagemodel.cpp:159
void startRefresh()
Definition: importimagemodel.cpp:592
QList< QModelIndex > indexesForCamItemInfo(const CamItemInfo &info) const
Definition: importimagemodel.cpp:238
#define DECLARE_MODEL_DRAG_DROP_METHODS
Definition: dragdropimplementations.h:90
@ Orientation
Definition: coredbfields.h:86
Definition: datefolderview.cpp:43