digiKam
Digikam::BackendOsmRG Class Reference

This class calls Open Street Map's reverse geocoding service. More...

+ Inheritance diagram for Digikam::BackendOsmRG:

Signals

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

Public Member Functions

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

Detailed Description

This class calls Open Street Map's reverse geocoding service.

Constructor & Destructor Documentation

◆ BackendOsmRG()

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

Constructor

Parameters
Parentobject.

◆ ~BackendOsmRG()

Digikam::BackendOsmRG::~BackendOsmRG ( )
override

Destructor

Member Function Documentation

◆ backendName()

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

Reimplemented from Digikam::RGBackend.

◆ callRGBackend()

void Digikam::BackendOsmRG::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::BackendOsmRG::cancelRequests ( )
overridevirtual

Implements Digikam::RGBackend.

◆ getErrorMessage()

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

Reimplemented from Digikam::RGBackend.

◆ makeQMapFromXML()

QMap< QString, QString > Digikam::BackendOsmRG::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: