19 #ifndef SIMBADSEARCHER_HPP_ 20 #define SIMBADSEARCHER_HPP_ 22 #include "VecMath.hpp" 27 class QNetworkAccessManager;
51 QMap<QString, Vec3d>
getResults()
const {
return resultPositions;}
70 void httpQueryFinished();
71 void delayTimerCompleted();
75 SimbadLookupReply(
const QString& url, QNetworkAccessManager* mgr,
int delayMs=500);
81 QNetworkAccessManager* netMgr;
84 QMap<QString, Vec3d> resultPositions;
111 SimbadLookupReply* lookup(
const QString& serverUrl,
const QString& objectName,
int maxNbResult=1,
int delayMs=500);
115 QNetworkAccessManager* networkMgr;
Simbad is still being queried.
QString getErrorString() const
Get the error descrition string. Return empty string if no error occured.
void statusChanged()
Triggered when the lookup status change.
The query is over. The reply can be deleted.
void deleteNetworkReply()
Explicitly delete the internal QNetworkReply. Must not be called from a QNetworkReply signal...
Contains all the information about a current simbad lookup query.
An error occured while looking up Simbad. Call getErrorString() for a description of the error...
SimbadLookupStatus getCurrentStatus() const
Get the current status.
QString getCurrentStatusString() const
Get a I18n string describing the current status. It can be used e.g for reporting in widgets...
Provides lookup features into the online Simbad service from CDS.
QMap< QString, Vec3d > getResults() const
Get the result list of matching objectName/position.
SimbadLookupStatus
Possible status for a simbad query.