24 #ifndef DIGIKAM_ITEM_HISTORY_GRAPH_H
25 #define DIGIKAM_ITEM_HISTORY_GRAPH_H
30 #include <QSharedDataPointer>
42 class ItemHistoryGraphData;
52 LoadRelationCloud = 1 << 0,
55 LoadSubjectHistory = 1 << 1,
58 LoadLeavesHistory = 1 << 2,
60 LoadAll = LoadRelationCloud | LoadSubjectHistory | LoadLeavesHistory
62 Q_DECLARE_FLAGS(HistoryLoadingMode, HistoryLoadingFlag)
80 bool isSingleVertex()
const;
86 bool hasEdges()
const;
98 HistoryLoadingMode loadingMode = LoadAll,
99 ProcessingMode processingMode = PrepareForDisplay);
115 void addScannedHistory(
const DImageHistory& history, qlonglong historySubjectId);
121 void addRelations(
const QList<QPair<qlonglong, qlonglong> >& pairs);
138 bool hasUnresolvedEntries()
const;
144 void dropUnresolvedEntries();
149 void sortForInfo(
const ItemInfo& subject);
154 void prepareForDisplay(
const ItemInfo& subject);
187 QHash<ItemInfo, HistoryImageId::Types> categorize()
const;
191 QSharedDataPointer<ItemHistoryGraphData> d;
194 QDebug DIGIKAM_DATABASE_EXPORT
operator<<(QDebug dbg,
const ItemHistoryGraph& g);
198 Q_DECLARE_OPERATORS_FOR_FLAGS(Digikam::ItemHistoryGraph::HistoryLoadingMode)
Definition: dimagehistory.h:49
Definition: historyimageid.h:42
Definition: itemhistorygraphdata.h:106
Definition: itemhistorygraph.h:46
HistoryLoadingFlag
Definition: itemhistorygraph.h:50
ProcessingMode
Definition: itemhistorygraph.h:65
@ NoProcessing
Definition: itemhistorygraph.h:66
Definition: iteminfo.h:78
Definition: piwigotalker.h:48
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863