SimbadService.cpp   SimbadService.cpp 
skipping to change at line 107 skipping to change at line 107
QWaitCondition finishedCondition; QWaitCondition finishedCondition;
QString url; QString url;
QString searchTerm; QString searchTerm;
SimbadLookupReply::SimbadLookupStatus status; SimbadLookupReply::SimbadLookupStatus status;
QString statusString; QString statusString;
QString errorString; QString errorString;
QMap<QString,Vec3d> results; QMap<QString,Vec3d> results;
QThread* parentThread; QThread* parentThread;
}; };
SimbadService::SimbadService(const QByteArray &serviceName, QObject *parent ) : AbstractAPIService(serviceName,parent) SimbadService::SimbadService(QObject *parent) : AbstractAPIService(parent)
{ {
//this is run in the main thread //this is run in the main thread
simbadServerUrl = StelApp::getInstance().getSettings()->value("searc h/simbad_server_url", SearchDialog::DEF_SIMBAD_URL).toString(); simbadServerUrl = StelApp::getInstance().getSettings()->value("searc h/simbad_server_url", SearchDialog::DEF_SIMBAD_URL).toString();
} }
void SimbadService::getImpl(const QByteArray& operation, const APIParameter s &parameters, APIServiceResponse &response) void SimbadService::get(const QByteArray& operation, const APIParameters &p arameters, APIServiceResponse &response)
{ {
if (operation == "lookup") if (operation == "lookup")
{ {
//simbad search - this is a bit tricky because we have to bl ock this thread until results are available //simbad search - this is a bit tricky because we have to bl ock this thread until results are available
//but QNetworkManager does not provide a synchronous API //but QNetworkManager does not provide a synchronous API
//this may contain greek or other unicode letters //this may contain greek or other unicode letters
QString str = QString::fromUtf8(parameters.value("str")); QString str = QString::fromUtf8(parameters.value("str"));
str = str.trimmed().toLower(); str = str.trimmed().toLower();
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/