|
|
| ItemInfo () |
| | Constructor Creates a null item 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 item 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 item.
|
| |
|
QString | relativePath () const |
| | Returns the relative path part to the item.
|
| |
| 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 item format / mimetype as a standardized string (see project/documents/DBSCHEMA.ODS).
|
| |
|
bool | isVisible () const |
| | Returns true if the item 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 item, (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 item history from the database.
|
| |
|
void | setItemHistory (const DImageHistory &history) |
| |
|
bool | hasImageHistory () const |
| |
|
QString | uuid () const |
| | Retrieves and sets this' item UUID.
|
| |
|
void | setUuid (const QString &uuid) |
| |
|
HistoryImageId | historyImageId () const |
| | Constructs a HistoryImageId with all available information for this item.
|
| |
|
bool | hasDerivedImages () const |
| | Retrieve information about items from which this item is derived (ancestorImages) and items that have been derived from this items (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 items, derived items or ancestors, in from of "a derived from b" pairs.
|
| |
|
void | markDerivedFrom (const ItemInfo &ancestorImage) |
| | Add a relation to the database: This item is derived from the ancestorImage.
|
| |
|
|
bool | isGrouped () const |
| | The item is grouped in the group of another (leading) item.
|
| |
|
bool | hasGroupedImages () const |
| | The item is the leading item of a group, there are other items grouped behind this one.
|
| |
|
int | numberOfGroupedImages () const |
| |
| ItemInfo | groupImage () const |
| | Returns the leading item of the group.
|
| |
|
qlonglong | groupImageId () const |
| |
|
QList< ItemInfo > | groupedImages () const |
| | Returns the list of items grouped behind this item (not including this item itself) and an empty list if there is none.
|
| |
|
void | addToGroup (const ItemInfo &info) |
| | Group this item behind the given item.
|
| |
|
void | removeFromGroup () |
| | This item is grouped behind another item: Remove this item from its group.
|
| |
|
void | clearGroup () |
| | This item hasGroupedImages(): Split up the group, remove all groupedImages() from this item's group.
|
| |
|
|
ImageCommonContainer | imageCommonContainer () const |
| | Retrieve information about the item, 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 item.
|
| |
| void | setMetadataTemplate (const Template &t) |
| | Set metadata template information (write it to database)
|
| |
|
void | removeMetadataTemplate () |
| | Remove all template info about the item 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.