27 #ifndef DIGIKAM_ITEM_INFO_H
28 #define DIGIKAM_ITEM_INFO_H
37 #include <QExplicitlySharedDataPointer>
53 class ImageCommonContainer;
55 class ItemExtendedProperties;
57 class ItemListerRecord;
58 class ImageMetadataContainer;
59 class VideoMetadataContainer;
62 class PhotoInfoContainer;
63 class VideoInfoContainer;
65 class ThumbnailIdentifier;
116 static ItemInfo fromLocalFile(
const QString& path);
117 static ItemInfo fromUrl(
const QUrl& url);
123 static ItemInfo fromLocationAlbumAndName(
int locationId,
const QString& album,
const QString& name);
128 bool operator!=(
const ItemInfo& info)
const;
137 ItemInfo copyItem(
int dstAlbumID,
const QString& dstFileName);
144 bool isLocationAvailable()
const;
163 QString name()
const;
168 QDateTime dateTime()
const;
173 QDateTime modDateTime()
const;
178 qlonglong fileSize()
const;
184 QSize dimensions()
const;
190 QUrl fileUrl()
const;
195 QString filePath()
const;
200 qlonglong id()
const;
210 int albumRootId()
const;
215 double aspectRatio()
const;
220 qlonglong manualOrder()
const;
231 QString format()
const;
236 bool isVisible()
const;
241 bool isRemoved()
const;
247 int orientation()
const;
252 QString title()
const;
257 QString comment()
const;
262 int faceCount()
const;
267 int unconfirmedFaceCount()
const;
274 QMap<QString, QString> getSuggestedNames()
const;
280 void setName(
const QString& newName);
286 void setDateTime(
const QDateTime& dateTime);
292 void setModDateTime(
const QDateTime& dateTime);
297 void setManualOrder(qlonglong
value);
302 void setOrientation(
int value);
307 void setVisible(
bool isVisible);
335 double longitudeNumber()
const;
336 double latitudeNumber()
const;
337 double altitudeNumber()
const;
338 bool hasCoordinates()
const;
339 bool hasAltitude()
const;
360 bool hasImageHistory()
const;
365 QString uuid()
const;
366 void setUuid(
const QString& uuid);
378 bool hasDerivedImages()
const;
379 bool hasAncestorImages()
const;
394 void markDerivedFrom(
const ItemInfo& ancestorImage);
410 bool isGrouped()
const;
415 bool hasGroupedImages()
const;
416 int numberOfGroupedImages()
const;
423 qlonglong groupImageId()
const;
434 void addToGroup(
const ItemInfo& info);
440 void removeFromGroup();
479 void setMetadataTemplate(
const Template& t);
484 void removeMetadataTemplate();
524 void setTag(
int tagID);
530 void addTagPaths(
const QStringList& tagPaths);
536 void removeTag(
int tagID);
541 void removeAllTags();
561 void loadTagIds()
const;
578 int pickLabel()
const;
583 int colorLabel()
const;
593 void setPickLabel(
int value);
598 void setColorLabel(
int value);
603 void setRating(
int value);
636 double similarityTo(
const qlonglong imageId)
const;
637 double currentSimilarity()
const;
642 qlonglong currentReferenceImage()
const;
652 QList<ItemInfo> fromUniqueHash(
const QString& uniqueHash, qlonglong fileSize);
657 QString uniqueHash()
const;
666 QExplicitlySharedDataPointer<ItemInfoData> m_data;
675 DIGIKAM_DATABASE_EXPORT QDebug
operator<<(QDebug stream,
const ItemInfo& info);
Definition: coredbaccess.h:56
Definition: dimagehistory.h:49
Definition: coredbfields.h:389
Definition: historyimageid.h:42
Definition: coredbinfocontainers.h:36
Definition: itemcopyright.h:48
Definition: itemextendedproperties.h:44
Definition: iteminfocache.h:47
Definition: iteminfolist.h:47
Definition: iteminfo.h:78
uint hash() const
Definition: iteminfo_similarity.cpp:70
DatabaseFields::Hash< QVariant > DatabaseFieldsHashRaw
Definition: iteminfo.h:81
Definition: itemlisterrecord.h:48
Definition: itemposition.h:47
Definition: itemtagpair.h:46
Definition: photoinfocontainer.h:41
Definition: template.h:46
Definition: thumbnailinfo.h:40
Definition: thumbnailinfo.h:58
Definition: videoinfocontainer.h:41
Q_DECLARE_TYPEINFO(Digikam::ItemInfo, Q_MOVABLE_TYPE)
qulonglong value
Definition: itemviewutilities.cpp:592
Category
Definition: coredbconstants.h:95
Definition: datefolderview.cpp:43
QDebug operator<<(QDebug dbg, const DbEngineParameters &p)
Definition: dbengineparameters.cpp:863
bool operator==(const SearchTextSettings &a, const SearchTextSettings &b)
Definition: searchtextbar.cpp:49
uint qHash(const PAlbumPath &id)
Definition: albummanager_p.h:141
bool operator<(const WSAlbum &first, const WSAlbum &second)
Definition: wstalker.cpp:47