digiKam
Digikam::ItemExtendedProperties Class Reference

Public Member Functions

QString intellectualGenre ()
 
 ItemExtendedProperties ()
 
 ItemExtendedProperties (qlonglong imageid)
 
QString jobId ()
 
IptcCoreLocationInfo location ()
 
void removeIntellectualGenre ()
 
void removeJobId ()
 
void removeLocation ()
 
void removeScene ()
 
void removeSimilarityTo (const qlonglong imageId)
 
void removeSubjectCode ()
 
QStringList scene ()
 
void setIntellectualGenre (const QString &intellectualGenre)
 
void setJobId (const QString &jobId)
 
void setLocation (const IptcCoreLocationInfo &location)
 
void setScene (const QStringList &scene)
 
void setSimilarityTo (const qlonglong imageId, const double value)
 
void setSubjectCode (const QStringList &subjectCode)
 
double similarityTo (const qlonglong imageId)
 
QStringList subjectCode ()
 

Protected Member Functions

QStringList readFakeListProperty (const QString &property)
 
QString readProperty (const QString &property)
 
void removeProperty (const QString &property)
 
void setFakeListProperty (const QString &property, const QStringList &value)
 
void setProperty (const QString &property, const QString &value)
 

Protected Attributes

qlonglong m_id
 

Constructor & Destructor Documentation

◆ ItemExtendedProperties() [1/2]

Digikam::ItemExtendedProperties::ItemExtendedProperties ( qlonglong  imageid)
explicit

◆ ItemExtendedProperties() [2/2]

Digikam::ItemExtendedProperties::ItemExtendedProperties ( )

Create a null ItemExtendedProperties object

Member Function Documentation

◆ intellectualGenre()

QString Digikam::ItemExtendedProperties::intellectualGenre ( )

Return the Intellectual Genre. This is Photoshop Object Attribute Reference. “ Describes the nature, intellectual or journalistic characteristic of a news object, not specifically its content. Note / Examples: Journalistic genres: actuality, interview, background, feature, summary, wrapup News category related genres: daybook, obituary, press release, transcript It is advised to use terms from a controlled vocabulary.”

References Digikam::MetadataInfo::IptcCoreIntellectualGenre, Digikam::ItemScanner::iptcCorePropertyName(), and readProperty().

Referenced by setIntellectualGenre().

◆ jobId()

QString Digikam::ItemExtendedProperties::jobId ( )

Returns the Job ID. This is Photoshop Transmission Reference. This is IPTC Original Transmission Reference “ Number or identifier for the purpose of improved workflow handling. This ID should be added by the creator or provider for transmission and routing purposes only and should have no significance for archiving.”

References Digikam::MetadataInfo::IptcCoreJobID, Digikam::ItemScanner::iptcCorePropertyName(), and readProperty().

Referenced by setJobId().

◆ location()

◆ readFakeListProperty()

QStringList Digikam::ItemExtendedProperties::readFakeListProperty ( const QString &  property)
protected

◆ readProperty()

QString Digikam::ItemExtendedProperties::readProperty ( const QString &  property)
protected

◆ removeIntellectualGenre()

void Digikam::ItemExtendedProperties::removeIntellectualGenre ( )

◆ removeJobId()

void Digikam::ItemExtendedProperties::removeJobId ( )

References setJobId().

◆ removeLocation()

void Digikam::ItemExtendedProperties::removeLocation ( )

◆ removeProperty()

void Digikam::ItemExtendedProperties::removeProperty ( const QString &  property)
protected

◆ removeScene()

void Digikam::ItemExtendedProperties::removeScene ( )

References setScene().

◆ removeSimilarityTo()

void Digikam::ItemExtendedProperties::removeSimilarityTo ( const qlonglong  imageId)

◆ removeSubjectCode()

void Digikam::ItemExtendedProperties::removeSubjectCode ( )

◆ scene()

QStringList Digikam::ItemExtendedProperties::scene ( )

Returns the Scene. “ Describes the scene of a photo content. Specifies one ore more terms from the IPTC ‘Scene-NewsCodes’. Each Scene is represented as a string of 6 digits in an unordered list.”

References Digikam::ItemScanner::iptcCorePropertyName(), Digikam::MetadataInfo::IptcCoreScene, and readFakeListProperty().

Referenced by setScene().

◆ setFakeListProperty()

void Digikam::ItemExtendedProperties::setFakeListProperty ( const QString &  property,
const QStringList &  value 
)
protected

◆ setIntellectualGenre()

void Digikam::ItemExtendedProperties::setIntellectualGenre ( const QString &  intellectualGenre)

◆ setJobId()

void Digikam::ItemExtendedProperties::setJobId ( const QString &  jobId)

◆ setLocation()

◆ setProperty()

void Digikam::ItemExtendedProperties::setProperty ( const QString &  property,
const QString &  value 
)
protected

◆ setScene()

void Digikam::ItemExtendedProperties::setScene ( const QStringList &  scene)

◆ setSimilarityTo()

void Digikam::ItemExtendedProperties::setSimilarityTo ( const qlonglong  imageId,
const double  value 
)

◆ setSubjectCode()

◆ similarityTo()

double Digikam::ItemExtendedProperties::similarityTo ( const qlonglong  imageId)

Returns the similarity. of the image to the given image.

References Digikam::SimilarityDbAccess::db(), Digikam::SimilarityDb::getImageSimilarity(), and m_id.

Referenced by Digikam::ItemInfo::similarityTo().

◆ subjectCode()

QStringList Digikam::ItemExtendedProperties::subjectCode ( )

Returns the Subject Code. This is IPTC Subject Reference. “ Specifies one or more Subjects from the IPTC ‘Subject-NewsCodes’ taxonomy to categorize the content. Each Subject is represented as a string of 8 digits in an unordered list. Note: Only Subjects from a controlled vocabulary should be used in this metadata element, free text has to be put into the Keyword element. More about IPTC Subject-NewsCodes at www.newscodes.org.”

References Digikam::ItemScanner::iptcCorePropertyName(), Digikam::MetadataInfo::IptcCoreSubjectCode, and readFakeListProperty().

Referenced by Digikam::ItemInfo::metadataTemplate(), and setSubjectCode().

Member Data Documentation

◆ m_id

qlonglong Digikam::ItemExtendedProperties::m_id
protected

The documentation for this class was generated from the following files: