◆ GPSItemContainer()
Digikam::GPSItemContainer::GPSItemContainer |
( |
const QUrl & |
url | ) |
|
|
explicit |
◆ ~GPSItemContainer()
Digikam::GPSItemContainer::~GPSItemContainer |
( |
| ) |
|
|
virtual |
◆ coordinates()
◆ data()
QVariant Digikam::GPSItemContainer::data |
( |
const int |
column, |
|
|
const int |
role |
|
) |
| const |
|
protected |
these are only to be called by the GPSItemModel
References Digikam::GeoCoordinates::alt(), ColumnAccuracy, ColumnAltitude, ColumnDateTime, ColumnDOP, ColumnFilename, ColumnFixType, ColumnLatitude, ColumnLongitude, ColumnNSatellites, ColumnSpeed, ColumnStatus, ColumnTags, Digikam::GPSDataContainer::getCoordinates(), Digikam::GPSDataContainer::getDop(), Digikam::GPSDataContainer::getFixType(), Digikam::GPSDataContainer::getNSatellites(), Digikam::GPSDataContainer::getSpeed(), Digikam::getWarningLevelFromGPSDataContainer(), Digikam::GeoCoordinates::hasAltitude(), Digikam::GPSDataContainer::hasDop(), Digikam::GPSDataContainer::hasFixType(), Digikam::GeoCoordinates::hasLatitude(), Digikam::GeoCoordinates::hasLongitude(), Digikam::GPSDataContainer::hasNSatellites(), Digikam::GPSDataContainer::hasSpeed(), Digikam::GeoCoordinates::lat(), Digikam::GeoCoordinates::lon(), m_dateTime, m_dirty, m_gpsData, m_tagList, m_tagListDirty, m_url, and RoleCoordinates.
◆ dateTime()
QDateTime Digikam::GPSItemContainer::dateTime |
( |
| ) |
const |
◆ emitDataChanged()
void Digikam::GPSItemContainer::emitDataChanged |
( |
| ) |
|
|
protected |
◆ getMetadataForFile()
DMetadata * Digikam::GPSItemContainer::getMetadataForFile |
( |
| ) |
const |
|
protected |
◆ getTagList()
◆ gpsData()
◆ isDirty()
bool Digikam::GPSItemContainer::isDirty |
( |
| ) |
const |
◆ isTagListDirty()
bool Digikam::GPSItemContainer::isTagListDirty |
( |
| ) |
const |
◆ lessThan()
bool Digikam::GPSItemContainer::lessThan |
( |
const GPSItemContainer *const |
otherItem, |
|
|
const int |
column |
|
) |
| const |
References Digikam::GeoCoordinates::alt(), ColumnAccuracy, ColumnAltitude, ColumnDateTime, ColumnDOP, ColumnFilename, ColumnFixType, ColumnLatitude, ColumnLongitude, ColumnNSatellites, ColumnSpeed, ColumnStatus, ColumnThumbnail, Digikam::GPSDataContainer::getCoordinates(), Digikam::GPSDataContainer::getDop(), Digikam::GPSDataContainer::getFixType(), Digikam::GPSDataContainer::getNSatellites(), Digikam::GPSDataContainer::getSpeed(), Digikam::getWarningLevelFromGPSDataContainer(), Digikam::GPSDataContainer::hasAltitude(), Digikam::GPSDataContainer::hasCoordinates(), Digikam::GPSDataContainer::hasDop(), Digikam::GPSDataContainer::hasFixType(), Digikam::GPSDataContainer::hasNSatellites(), Digikam::GPSDataContainer::hasSpeed(), Digikam::GeoCoordinates::lat(), Digikam::GeoCoordinates::lon(), m_dateTime, m_dirty, m_gpsData, and m_url.
Referenced by Digikam::GPSItemSortProxyModel::lessThan().
◆ loadImageData()
bool Digikam::GPSItemContainer::loadImageData |
( |
| ) |
|
|
virtual |
Reimplemented in Digikam::ItemGPS.
References coordinates(), emitDataChanged(), getMetadataForFile(), Digikam::GPSDataContainer::hasCoordinates(), m_dateTime, m_dirty, m_gpsData, m_savedState, m_url, Digikam::GeoCoordinates::setAlt(), Digikam::GPSDataContainer::setCoordinates(), Digikam::GPSDataContainer::setDop(), Digikam::GPSDataContainer::setFixType(), Digikam::GPSDataContainer::setNSatellites(), and Digikam::GPSDataContainer::setSpeed().
Referenced by Digikam::ItemGPS::loadImageData(), and DigikamGenericGeolocationEditPlugin::GeolocationEdit::setItems().
◆ restoreGPSData()
void Digikam::GPSItemContainer::restoreGPSData |
( |
const GPSDataContainer & |
container | ) |
|
◆ restoreRGTagList()
void Digikam::GPSItemContainer::restoreRGTagList |
( |
const QList< QList< TagData > > & |
tagList | ) |
|
◆ saveChanges()
QString Digikam::GPSItemContainer::saveChanges |
( |
| ) |
|
|
virtual |
Reimplemented in Digikam::ItemGPS.
References Digikam::SaveProperties::altitude, emitDataChanged(), Digikam::GPSDataContainer::getDop(), Digikam::GPSDataContainer::getFixType(), getMetadataForFile(), Digikam::GPSDataContainer::getNSatellites(), Digikam::GPSDataContainer::getSpeed(), Digikam::GPSDataContainer::hasDop(), Digikam::GPSDataContainer::hasFixType(), Digikam::GPSDataContainer::hasNSatellites(), Digikam::GPSDataContainer::hasSpeed(), Digikam::SaveProperties::latitude, Digikam::SaveProperties::longitude, m_dirty, m_gpsData, m_savedState, m_savedTagList, m_saveGPS, m_saveTags, m_tagList, m_tagListDirty, m_url, m_writeXmpTags, saveProperties(), Digikam::setExifXmpTagDataVariant(), Digikam::SaveProperties::shouldRemoveCoordinates, Digikam::SaveProperties::shouldWriteAltitude, and Digikam::SaveProperties::shouldWriteCoordinates.
Referenced by Digikam::ItemGPS::saveChanges().
◆ saveProperties()
References Digikam::GeoCoordinates::alt(), Digikam::SaveProperties::altitude, Digikam::GPSDataContainer::getCoordinates(), Digikam::GPSDataContainer::hasAltitude(), Digikam::GPSDataContainer::hasCoordinates(), Digikam::GeoCoordinates::lat(), Digikam::SaveProperties::latitude, Digikam::GeoCoordinates::lon(), Digikam::SaveProperties::longitude, m_gpsData, Digikam::SaveProperties::shouldRemoveAltitude, Digikam::SaveProperties::shouldRemoveCoordinates, Digikam::SaveProperties::shouldWriteAltitude, and Digikam::SaveProperties::shouldWriteCoordinates.
Referenced by saveChanges(), and Digikam::ItemGPS::saveChanges().
◆ setCoordinates()
void Digikam::GPSItemContainer::setCoordinates |
( |
const GeoCoordinates & |
newCoordinates | ) |
|
◆ setGPSData()
void Digikam::GPSItemContainer::setGPSData |
( |
const GPSDataContainer & |
container | ) |
|
◆ setHeaderData()
void Digikam::GPSItemContainer::setHeaderData |
( |
GPSItemModel *const |
model | ) |
|
|
static |
References ColumnAccuracy, ColumnAltitude, ColumnDateTime, ColumnDOP, ColumnFilename, ColumnFixType, ColumnGPSItemContainerCount, ColumnLatitude, ColumnLongitude, ColumnNSatellites, ColumnSpeed, ColumnStatus, ColumnTags, ColumnThumbnail, Digikam::GPSItemModel::setColumnCount(), and Digikam::GPSItemModel::setHeaderData().
◆ setModel()
void Digikam::GPSItemContainer::setModel |
( |
GPSItemModel *const |
model | ) |
|
|
protected |
◆ setTagList()
void Digikam::GPSItemContainer::setTagList |
( |
const QList< QList< TagData > > & |
externalTagList | ) |
|
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
-
externalTagList | A list containing tags. |
References emitDataChanged(), m_tagList, and m_tagListDirty.
◆ url()
QUrl Digikam::GPSItemContainer::url |
( |
| ) |
const |
◆ writeTagsToXmp()
void Digikam::GPSItemContainer::writeTagsToXmp |
( |
const bool |
writeXmpTags | ) |
|
|
inline |
Writes the current tags to XMP metadata.
◆ GPSItemModel
◆ ColumnAccuracy
const int Digikam::GPSItemContainer::ColumnAccuracy = 6 |
|
static |
◆ ColumnAltitude
const int Digikam::GPSItemContainer::ColumnAltitude = 5 |
|
static |
◆ ColumnDateTime
const int Digikam::GPSItemContainer::ColumnDateTime = 2 |
|
static |
◆ ColumnDOP
const int Digikam::GPSItemContainer::ColumnDOP = 9 |
|
static |
◆ ColumnFilename
const int Digikam::GPSItemContainer::ColumnFilename = 1 |
|
static |
◆ ColumnFixType
const int Digikam::GPSItemContainer::ColumnFixType = 10 |
|
static |
◆ ColumnGPSItemContainerCount
const int Digikam::GPSItemContainer::ColumnGPSItemContainerCount = 13 |
|
static |
◆ ColumnLatitude
const int Digikam::GPSItemContainer::ColumnLatitude = 3 |
|
static |
◆ ColumnLongitude
const int Digikam::GPSItemContainer::ColumnLongitude = 4 |
|
static |
◆ ColumnNSatellites
const int Digikam::GPSItemContainer::ColumnNSatellites = 11 |
|
static |
◆ ColumnSpeed
const int Digikam::GPSItemContainer::ColumnSpeed = 12 |
|
static |
◆ ColumnStatus
const int Digikam::GPSItemContainer::ColumnStatus = 8 |
|
static |
◆ ColumnTags
const int Digikam::GPSItemContainer::ColumnTags = 7 |
|
static |
◆ ColumnThumbnail
const int Digikam::GPSItemContainer::ColumnThumbnail = 0 |
|
static |
◆ m_dateTime
QDateTime Digikam::GPSItemContainer::m_dateTime |
|
protected |
◆ m_dirty
bool Digikam::GPSItemContainer::m_dirty |
|
protected |
◆ m_gpsData
Referenced by coordinates(), data(), gpsData(), lessThan(), loadImageData(), Digikam::ItemGPS::loadImageData(), restoreGPSData(), saveChanges(), saveProperties(), setCoordinates(), and setGPSData().
◆ m_model
◆ m_savedState
◆ m_savedTagList
◆ m_saveGPS
bool Digikam::GPSItemContainer::m_saveGPS |
|
protected |
◆ m_saveTags
bool Digikam::GPSItemContainer::m_saveTags |
|
protected |
◆ m_tagList
◆ m_tagListDirty
bool Digikam::GPSItemContainer::m_tagListDirty |
|
protected |
◆ m_url
QUrl Digikam::GPSItemContainer::m_url |
|
protected |
◆ m_writeXmpTags
bool Digikam::GPSItemContainer::m_writeXmpTags |
|
protected |
◆ RoleCoordinates
const int Digikam::GPSItemContainer::RoleCoordinates = Qt::UserRole + 1 |
|
static |
The documentation for this class was generated from the following files: