Provides lookup features into an online service that accepts a Hipparcos number in the query string.
More...
#include <HipOnlineQuery.hpp>
|
| HipOnlineQuery (const QString &baseURL, QObject *parent=nullptr) |
| Constructor. More...
|
|
HipOnlineReply * | lookup (const int hipID) |
| set a new URL for the query. There must be a "%1" included, else no number or name can be added to the query! 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::HipOnlineQuery |
( |
const QString & |
baseURL, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
Constructor.
- Parameters
-
baseURL | complete URL like "https://mysite.org/lookForInfo.php?HIP=%1" It is allowed to initialize with an empty URL. |
◆ lookup() [1/4]
set a new URL for the query. There must be a "%1" included, else no number or name can be added to the query!
Lookup in an external starnames information site for object with catalog number.
- Parameters
-
hipID | the object ID. Only HIP IDs are supported. |
- Returns
- a new HipOnlineReply which is owned by the caller.
◆ lookup() [2/4]
Lookup in an external information site for object with name.
- Parameters
-
name | the object name. Use getEnglishName() for a typical name. |
- Returns
- a new HipOnlineReply which is owned by the caller.
◆ lookup() [3/4]
HipOnlineReply* HipOnlineQuery::lookup |
( |
const QString & |
url, |
|
|
const int |
hipID |
|
) |
| |
Lookup in an external starnames information site for object with catalog number.
- Parameters
-
url | a new URL to use. |
hipID | the object ID. Only HIP IDs are supported. |
- Returns
- a new HipOnlineReply which is owned by the caller.
◆ lookup() [4/4]
HipOnlineReply* HipOnlineQuery::lookup |
( |
const QString & |
url, |
|
|
const QString & |
name |
|
) |
| |
Lookup in an external information site for object with name.
- Parameters
-
url | a new URL to use. |
name | the object name. Use getEnglishName() for a typical name. |
- Returns
- a new HipOnlineReply which is owned by the caller.