Stellarium 0.12.3
List of all members | Public Member Functions
SimbadSearcher Class Reference

Provides lookup features into the online Simbad service from CDS. More...

#include <SimbadSearcher.hpp>

Public Member Functions

 SimbadSearcher (QObject *parent)
 
SimbadLookupReplylookup (const QString &serverUrl, const QString &objectName, int maxNbResult=1, int delayMs=500)
 Lookup in Simbad for object which have a name starting with objectName. More...
 

Detailed Description

Provides lookup features into the online Simbad service from CDS.

See http://simbad.u-strasbg.fr for more info.

Definition at line 94 of file SimbadSearcher.hpp.

Member Function Documentation

SimbadLookupReply* SimbadSearcher::lookup ( const QString &  serverUrl,
const QString &  objectName,
int  maxNbResult = 1,
int  delayMs = 500 
)

Lookup in Simbad for object which have a name starting with objectName.

Parameters
serverUrlURL of the SIMBAD mirror server.
objectNamethe possibly truncated object name.
maxNbResultthe maximum number of returned result.
delayMsa delay in ms to wait for before actually triggering the lookup. This used to group requests, e.g. send only one request when a used types a word insead of one per letter.
Returns
a new SimbadLookupReply which is owned by the caller.

The documentation for this class was generated from the following file: