|
| ItemInfo () |
| Constructor Creates a null image info.
|
|
| ItemInfo (const ItemInfo &info) |
| Copy constructor.
|
|
| ItemInfo (const ItemListerRecord &record) |
| Constructor.
|
|
| ItemInfo (qlonglong ID) |
| Constructor.
|
|
| ~ItemInfo () |
| Destructor.
|
|
ItemInfo | copyItem (int dstAlbumID, const QString &dstFileName) |
| Copy database information of this item to a newly created item.
|
|
bool | isLocationAvailable () const |
| Returns true if this is a valid ItemInfo, and the location of the image is currently available (information freshly obtained from CollectionManager)
|
|
bool | operator!= (const ItemInfo &info) const |
|
bool | operator< (const ItemInfo &info) const |
|
ItemInfo & | operator= (const ItemInfo &info) |
|
bool | operator== (const ItemInfo &info) const |
|
|
bool | isNull () const |
| Returns if this objects contains valid data.
|
|
QString | name () const |
|
QDateTime | dateTime () const |
|
QDateTime | modDateTime () const |
|
qlonglong | fileSize () const |
|
QSize | dimensions () const |
|
QUrl | fileUrl () const |
| Returns the file:// url.
|
|
QString | filePath () const |
| Returns the file path to the image.
|
|
QString | relativePath () const |
| Returns the relative path part to the image.
|
|
qlonglong | id () const |
|
int | albumId () const |
|
int | albumRootId () const |
| The album root id.
|
|
double | aspectRatio () const |
|
qlonglong | manualOrder () const |
| Returns the manual sort order.
|
|
DatabaseItem::Category | category () const |
| Returns the category of the item: Image, Audio, Video.
|
|
QString | format () const |
| Returns the image format / mimetype as a standardized string (see project/documents/DBSCHEMA.ODS).
|
|
bool | isVisible () const |
| Returns true if the image is marked as visible in the database.
|
|
bool | isRemoved () const |
| Returns true if the corresponding file was not deleted.
|
|
int | orientation () const |
| Returns the orientation of the image, (MetaEngine::ImageOrientation, EXIF standard)
|
|
QString | title () const |
|
QString | comment () const |
|
int | faceCount () const |
|
int | unconfirmedFaceCount () const |
|
QMap< QString, QString > | getSuggestedNames () const |
|
void | setName (const QString &newName) |
| Set the name (write it to database)
|
|
void | setDateTime (const QDateTime &dateTime) |
| Set the date and time (write it to database)
|
|
void | setModDateTime (const QDateTime &dateTime) |
| Set the modification date and time (write it to database)
|
|
void | setManualOrder (qlonglong value) |
| Set the manual sorting order for the item.
|
|
void | setOrientation (int value) |
| Set the orientation for the item.
|
|
void | setVisible (bool isVisible) |
| Set the visibility flag - triggers between Visible and Hidden.
|
|
DatabaseFieldsHashRaw | getDatabaseFieldsRaw (const DatabaseFields::Set &requestedSet) const |
|
QVariant | getDatabaseFieldRaw (const DatabaseFields::Set &requestedField) const |
|
|
ItemPosition | imagePosition () const |
| Retrieve the ItemPosition object for this item.
|
|
double | longitudeNumber () const |
| Retrieves the coordinates and the altitude.
|
|
double | latitudeNumber () const |
|
double | altitudeNumber () const |
|
bool | hasCoordinates () const |
|
bool | hasAltitude () const |
|
|
DImageHistory | imageHistory () const |
| Retrieves and sets the image history from the database.
|
|
void | setItemHistory (const DImageHistory &history) |
|
bool | hasImageHistory () const |
|
QString | uuid () const |
| Retrieves and sets this' images UUID.
|
|
void | setUuid (const QString &uuid) |
|
HistoryImageId | historyImageId () const |
| Constructs a HistoryImageId with all available information for this image.
|
|
bool | hasDerivedImages () const |
| Retrieve information about images from which this image is derived (ancestorImages) and images that have been derived from this images (derivedImages).
|
|
bool | hasAncestorImages () const |
|
QList< ItemInfo > | derivedImages () const |
|
QList< ItemInfo > | ancestorImages () const |
|
QList< QPair< qlonglong, qlonglong > > | relationCloud () const |
| Returns the cloud of all directly or indirectly related images, derived images or ancestors, in from of "a derived from b" pairs.
|
|
void | markDerivedFrom (const ItemInfo &ancestorImage) |
| Add a relation to the database: This image is derived from the ancestorImage.
|
|
|
bool | isGrouped () const |
| The image is grouped in the group of another (leading) image.
|
|
bool | hasGroupedImages () const |
| The image is the leading image of a group, there are other images grouped behind this one.
|
|
int | numberOfGroupedImages () const |
|
ItemInfo | groupImage () const |
| Returns the leading image of the group.
|
|
qlonglong | groupImageId () const |
|
QList< ItemInfo > | groupedImages () const |
| Returns the list of images grouped behind this image (not including this image itself) and an empty list if there is none.
|
|
void | addToGroup (const ItemInfo &info) |
| Group this image behind the given image.
|
|
void | removeFromGroup () |
| This image is grouped behind another image: Remove this image from its group.
|
|
void | clearGroup () |
| This image hasGroupedImages(): Split up the group, remove all groupedImages() from this image's group.
|
|
|
ImageCommonContainer | imageCommonContainer () const |
| Retrieve information about the image, in form of numbers and user presentable strings, for certain defined fields of information (see databaseinfocontainers.h)
|
|
ImageMetadataContainer | imageMetadataContainer () const |
|
VideoMetadataContainer | videoMetadataContainer () const |
|
PhotoInfoContainer | photoInfoContainer () const |
|
VideoInfoContainer | videoInfoContainer () const |
|
Template | metadataTemplate () const |
| Retrieve metadata template information about the image.
|
|
void | setMetadataTemplate (const Template &t) |
| Set metadata template information (write it to database)
|
|
void | removeMetadataTemplate () |
| Remove all template info about the image from database.
|
|
ItemComments | imageComments (const CoreDbAccess &access) const |
| Retrieve the ItemComments object for this item.
|
|
ItemCopyright | imageCopyright () const |
| Retrieve the ItemCopyright object for this item.
|
|
ItemExtendedProperties | imageExtendedProperties () const |
| Retrieve the ItemExtendedProperties object for this item.
|
|
|
int | pickLabel () const |
| Returns the Pick Label Id (see PickLabel values in globals.h)
|
|
int | colorLabel () const |
| Returns the Color Label Id (see ColorLabel values in globals.h)
|
|
int | rating () const |
| Returns the rating.
|
|
void | setPickLabel (int value) |
| Set the pick Label Id for the item (see PickLabel values from globals.h)
|
|
void | setColorLabel (int value) |
| Set the color Label Id for the item (see ColorLabel values from globals.h)
|
|
void | setRating (int value) |
| Set the rating for the item.
|
|
The properties can be read and written. Information will be cached.
- Note
- access rules for all methods in this class: ItemInfoData members shall be accessed only under CoreDbAccess lock. The id and albumId are the exception to this rule, as they are primitive and will never change during the lifetime of an object.