digiKam
Digikam::ItemGPS Class Reference
+ Inheritance diagram for Digikam::ItemGPS:

Public Member Functions

 ItemGPS (const ItemInfo &info)
 
bool loadImageData () override
 
QString saveChanges () override
 
 ~ItemGPS () override
 
Loading and saving
bool isDirty () const
 
QUrl url () const
 
QDateTime dateTime () const
 
GPS related functions
void setCoordinates (const GeoCoordinates &newCoordinates)
 
GeoCoordinates coordinates () const
 
GPSDataContainer gpsData () const
 
void setGPSData (const GPSDataContainer &container)
 
void restoreGPSData (const GPSDataContainer &container)
 Restore the gps data to container. Sets m_dirty to false if container equals savedState. More...
 

Static Public Attributes

static const int ColumnAccuracy = 6
 
static const int ColumnAltitude = 5
 
static const int ColumnDateTime = 2
 
static const int ColumnDOP = 9
 
static const int ColumnFilename = 1
 
static const int ColumnFixType = 10
 
static const int ColumnGPSItemContainerCount = 13
 
static const int ColumnLatitude = 3
 
static const int ColumnLongitude = 4
 
static const int ColumnNSatellites = 11
 
static const int ColumnSpeed = 12
 
static const int ColumnStatus = 8
 
static const int ColumnTags = 7
 
static const int ColumnThumbnail = 0
 
static const int RoleCoordinates = Qt::UserRole + 1
 

Functions used by the model

bool lessThan (const GPSItemContainer *const otherItem, const int column) const
 
static void setHeaderData (GPSItemModel *const model)
 

Tag related functions

void setTagList (const QList< QList< TagData > > &externalTagList)
 
bool isTagListDirty () const
 
QList< QList< TagData > > getTagList () const
 
void restoreRGTagList (const QList< QList< TagData > > &tagList)
 
void writeTagsToXmp (const bool writeXmpTags)
 
GPSItemModelm_model
 
QUrl m_url
 
QDateTime m_dateTime
 
bool m_dirty
 
GPSDataContainer m_gpsData
 
GPSDataContainer m_savedState
 
bool m_tagListDirty
 
QList< QList< TagData > > m_tagList
 
QList< QList< TagData > > m_savedTagList
 
bool m_writeXmpTags
 
bool m_saveTags
 
bool m_saveGPS
 
QVariant data (const int column, const int role) const
 these are only to be called by the GPSItemModel More...
 
void setModel (GPSItemModel *const model)
 
void emitDataChanged ()
 
DMetadatagetMetadataForFile () const
 
SaveProperties saveProperties () const
 

Constructor & Destructor Documentation

◆ ItemGPS()

Digikam::ItemGPS::ItemGPS ( const ItemInfo info)
explicit

◆ ~ItemGPS()

Digikam::ItemGPS::~ItemGPS ( )
override

Member Function Documentation

◆ coordinates()

GeoCoordinates Digikam::GPSItemContainer::coordinates ( ) const
inherited

◆ data()

QVariant Digikam::GPSItemContainer::data ( const int  column,
const int  role 
) const
protectedinherited

◆ dateTime()

QDateTime Digikam::GPSItemContainer::dateTime ( ) const
inherited

◆ emitDataChanged()

◆ getMetadataForFile()

◆ getTagList()

QList< QList< TagData > > Digikam::GPSItemContainer::getTagList ( ) const
inherited

◆ gpsData()

◆ isDirty()

bool Digikam::GPSItemContainer::isDirty ( ) const
inherited

◆ isTagListDirty()

bool Digikam::GPSItemContainer::isTagListDirty ( ) const
inherited
Returns
Returns true is the current image has been modified and not saved.

References Digikam::GPSItemContainer::m_tagListDirty.

Referenced by DigikamGenericGeolocationEditPlugin::GeolocationEdit::closeEvent().

◆ lessThan()

◆ loadImageData()

◆ restoreGPSData()

void Digikam::GPSItemContainer::restoreGPSData ( const GPSDataContainer container)
inherited

◆ restoreRGTagList()

void Digikam::GPSItemContainer::restoreRGTagList ( const QList< QList< TagData > > &  tagList)
inherited

◆ saveChanges()

◆ saveProperties()

◆ setCoordinates()

◆ setGPSData()

◆ setHeaderData()

◆ setModel()

void Digikam::GPSItemContainer::setModel ( GPSItemModel *const  model)
protectedinherited

◆ setTagList()

void Digikam::GPSItemContainer::setTagList ( const QList< QList< TagData > > &  externalTagList)
inherited

The tags added in reverse geocoding process are stored in each image, before they end up in external tag model. This function adds them.

Parameters
externalTagListA list containing tags.

References Digikam::GPSItemContainer::emitDataChanged(), Digikam::GPSItemContainer::m_tagList, and Digikam::GPSItemContainer::m_tagListDirty.

◆ url()

◆ writeTagsToXmp()

void Digikam::GPSItemContainer::writeTagsToXmp ( const bool  writeXmpTags)
inlineinherited

Writes the current tags to XMP metadata.

Member Data Documentation

◆ ColumnAccuracy

const int Digikam::GPSItemContainer::ColumnAccuracy = 6
staticinherited

◆ ColumnAltitude

const int Digikam::GPSItemContainer::ColumnAltitude = 5
staticinherited

◆ ColumnDateTime

const int Digikam::GPSItemContainer::ColumnDateTime = 2
staticinherited

◆ ColumnDOP

◆ ColumnFilename

const int Digikam::GPSItemContainer::ColumnFilename = 1
staticinherited

◆ ColumnFixType

◆ ColumnGPSItemContainerCount

const int Digikam::GPSItemContainer::ColumnGPSItemContainerCount = 13
staticinherited

◆ ColumnLatitude

const int Digikam::GPSItemContainer::ColumnLatitude = 3
staticinherited

◆ ColumnLongitude

const int Digikam::GPSItemContainer::ColumnLongitude = 4
staticinherited

◆ ColumnNSatellites

◆ ColumnSpeed

const int Digikam::GPSItemContainer::ColumnSpeed = 12
staticinherited

◆ ColumnStatus

const int Digikam::GPSItemContainer::ColumnStatus = 8
staticinherited

◆ ColumnTags

const int Digikam::GPSItemContainer::ColumnTags = 7
staticinherited

◆ ColumnThumbnail

◆ m_dateTime

◆ m_dirty

◆ m_gpsData

◆ m_model

GPSItemModel* Digikam::GPSItemContainer::m_model
protectedinherited

◆ m_savedState

◆ m_savedTagList

QList<QList<TagData> > Digikam::GPSItemContainer::m_savedTagList
protectedinherited

◆ m_saveGPS

bool Digikam::GPSItemContainer::m_saveGPS
protectedinherited

◆ m_saveTags

bool Digikam::GPSItemContainer::m_saveTags
protectedinherited

◆ m_tagList

◆ m_tagListDirty

◆ m_url

◆ m_writeXmpTags

bool Digikam::GPSItemContainer::m_writeXmpTags
protectedinherited

◆ RoleCoordinates

const int Digikam::GPSItemContainer::RoleCoordinates = Qt::UserRole + 1
staticinherited

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