digiKam
Digikam::ImageTagChangeset Class Reference

Public Types

enum  Operation {
  Unknown , Added , Moved , Removed ,
  RemovedAll , PropertiesChanged
}
 

Public Member Functions

bool containsImage (qlonglong id) const
 
bool containsTag (int id) const
 
QList< qlonglong > ids () const
 
 ImageTagChangeset ()
 
 ImageTagChangeset (const QList< qlonglong > &ids, const QList< int > &tags, Operation operation)
 
 ImageTagChangeset (qlonglong id, const QList< int > &tags, Operation operation)
 
 ImageTagChangeset (qlonglong id, int tag, Operation operation)
 
Operation operation () const
 
ImageTagChangesetoperator<< (const ImageTagChangeset &other)
 
bool propertiesWereChanged () const
 
QList< int > tags () const
 
bool tagsWereAdded () const
 
bool tagsWereRemoved () const
 

Member Enumeration Documentation

◆ Operation

An ImageTagChangeset covers adding and removing the association of a tag with an image. It is described by a list of affected image ids, a list of affected tags, and an operation. There is no guarantee that information in the database has actually been changed.

Enumerator
Unknown 
Added 
Moved 
Removed 
RemovedAll 
PropertiesChanged 

Constructor & Destructor Documentation

◆ ImageTagChangeset() [1/4]

Digikam::ImageTagChangeset::ImageTagChangeset ( )

References Digikam::Unknown.

◆ ImageTagChangeset() [2/4]

Digikam::ImageTagChangeset::ImageTagChangeset ( const QList< qlonglong > &  ids,
const QList< int > &  tags,
Operation  operation 
)

◆ ImageTagChangeset() [3/4]

Digikam::ImageTagChangeset::ImageTagChangeset ( qlonglong  id,
const QList< int > &  tags,
Operation  operation 
)

◆ ImageTagChangeset() [4/4]

Digikam::ImageTagChangeset::ImageTagChangeset ( qlonglong  id,
int  tag,
Operation  operation 
)

Member Function Documentation

◆ containsImage()

bool Digikam::ImageTagChangeset::containsImage ( qlonglong  id) const

◆ containsTag()

bool Digikam::ImageTagChangeset::containsTag ( int  id) const

◆ ids()

QList< qlonglong > Digikam::ImageTagChangeset::ids ( ) const

◆ operation()

ImageTagChangeset::Operation Digikam::ImageTagChangeset::operation ( ) const

◆ operator<<()

ImageTagChangeset & Digikam::ImageTagChangeset::operator<< ( const ImageTagChangeset other)

Combines two ImageTagChangesets. The operations shall not differ between the two sets; the operation is set to Unknown if it differs. This is especially not suitable for RemovedAll changesets.

References Unknown.

◆ propertiesWereChanged()

bool Digikam::ImageTagChangeset::propertiesWereChanged ( ) const
inline

◆ tags()

QList< int > Digikam::ImageTagChangeset::tags ( ) const

◆ tagsWereAdded()

bool Digikam::ImageTagChangeset::tagsWereAdded ( ) const
inline

◆ tagsWereRemoved()

bool Digikam::ImageTagChangeset::tagsWereRemoved ( ) const
inline

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