![]() |
Stellarium
1.2
|
#include <HipOnlineQuery.hpp>
Public Member Functions | |
| HipOnlineQuery (QString baseURL, QObject *parent=Q_NULLPTR) | |
| Constructor. More... | |
| void | setUrl (QString url) |
| set a new URL for the query. There must be a "%1" included, else no number or name can be added to the query! | |
| HipOnlineReply * | lookup (const int hipID) |
| Lookup in an external starnames information site for object with catalog number. More... | |
| HipOnlineReply * | lookup (const QString name) |
| Lookup in an external information site for object with name. More... | |
| HipOnlineReply * | lookup (const QString url, const int hipID) |
| Lookup in an external starnames information site for object with catalog number. More... | |
| HipOnlineReply * | lookup (const QString url, const QString name) |
| Lookup in an external information site for object with name. More... | |
Provides lookup features into an online service that accepts a Hipparcos number in the query string
| HipOnlineQuery::HipOnlineQuery | ( | QString | baseURL, |
| QObject * | parent = Q_NULLPTR |
||
| ) |
| baseURL | complete URL like "https://mysite.org/lookForInfo.php?HIP=%1" It is allowed to initialize with an empty URL. |
| HipOnlineReply* HipOnlineQuery::lookup | ( | const int | hipID | ) |
| hipID | the object ID. Only HIP IDs are supported. |
| HipOnlineReply* HipOnlineQuery::lookup | ( | const QString | name | ) |
| name | the object name. Use getEnglishName() for a typical name. |
| HipOnlineReply* HipOnlineQuery::lookup | ( | const QString | url, |
| const int | hipID | ||
| ) |
| url | a new URL to use. |
| hipID | the object ID. Only HIP IDs are supported. |
| HipOnlineReply* HipOnlineQuery::lookup | ( | const QString | url, |
| const QString | name | ||
| ) |
| url | a new URL to use. |
| name | the object name. Use getEnglishName() for a typical name. |
1.8.17