digiKam
Digikam::BackendGeonamesUSRG Class Reference

This class calls Geonames' get address service available only for USA locations. More...

+ Inheritance diagram for Digikam::BackendGeonamesUSRG:

Signals

void signalRGReady (QList< RGInfo > &)
 Emitted whenever some items are ready. More...
 

Public Member Functions

 BackendGeonamesUSRG (QObject *const parent)
 
QString backendName () override
 
void callRGBackend (const QList< RGInfo > &rgList, const QString &language) override
 
void cancelRequests () override
 
QString getErrorMessage () override
 
QMap< QString, QString > makeQMapFromXML (const QString &xmlData)
 
 ~BackendGeonamesUSRG () override
 

Detailed Description

This class calls Geonames' get address service available only for USA locations.

Constructor & Destructor Documentation

◆ BackendGeonamesUSRG()

Digikam::BackendGeonamesUSRG::BackendGeonamesUSRG ( QObject *const  parent)
explicit

Constructor

Parameters
Parentobject.

◆ ~BackendGeonamesUSRG()

Digikam::BackendGeonamesUSRG::~BackendGeonamesUSRG ( )
override

Destructor

Member Function Documentation

◆ backendName()

QString Digikam::BackendGeonamesUSRG::backendName ( )
overridevirtual
Returns
Backend name.

Reimplemented from Digikam::RGBackend.

◆ callRGBackend()

void Digikam::BackendGeonamesUSRG::callRGBackend ( const QList< RGInfo > &  rgList,
const QString &  language 
)
overridevirtual

Takes the coordinate of each image and then connects to Open Street Map's reverse geocoding service.

Parameters
rgListA list containing information needed in reverse geocoding process. At this point, it contains only coordinates.
languageThe language in which the data will be returned.

Implements Digikam::RGBackend.

◆ cancelRequests()

void Digikam::BackendGeonamesUSRG::cancelRequests ( )
overridevirtual

Implements Digikam::RGBackend.

◆ getErrorMessage()

QString Digikam::BackendGeonamesUSRG::getErrorMessage ( )
overridevirtual
Returns
Error message, if any.

Reimplemented from Digikam::RGBackend.

◆ makeQMapFromXML()

QMap< QString, QString > Digikam::BackendGeonamesUSRG::makeQMapFromXML ( const QString &  xmlData)

The data is returned from Open Street Map in a XML. This function translates the XML into a QMap.

Parameters
xmlDataThe returned XML.

◆ signalRGReady

void Digikam::RGBackend::signalRGReady ( QList< RGInfo > &  )
signalinherited

Emitted whenever some items are ready.


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