Stellarium 0.15.2
|
Allows SIMBAD object lookups like SearchDialog uses. More...
#include <SimbadService.hpp>
Public Member Functions | |
SimbadService (const QByteArray &serviceName, QObject *parent=0) | |
bool | supportsThreadedOperation () const Q_DECL_OVERRIDE |
Simbad lookups dont block the main thread. More... | |
Public Member Functions inherited from AbstractAPIService | |
AbstractAPIService (const QByteArray &serviceName, QObject *parent=0) | |
Abstract constructor. The service name is used by the APIController for request path mapping. More... | |
QByteArray | serviceName () |
Returns the service name, used for request path mapping by the APIController. More... | |
virtual void | update (double deltaTime) |
Called in the main thread each frame. More... | |
Q_INVOKABLE APIServiceResponse | get (const QByteArray &operation, const APIParameters ¶meters) |
Wrapper around getImpl(), constructs an APIServiceResponse object for the response and passes it on. More... | |
Q_INVOKABLE APIServiceResponse | post (const QByteArray &operation, const APIParameters ¶meters, const QByteArray &data) |
Wrapper around postImpl(), constructs an APIServiceResponse object for the response and passes it on. More... | |
Protected Member Functions | |
virtual void | getImpl (const QByteArray &operation, const APIParameters ¶meters, APIServiceResponse &response) Q_DECL_OVERRIDE |
Implements the HTTP GET method. More... | |
Protected Member Functions inherited from AbstractAPIService | |
virtual void | postImpl (const QByteArray &operation, const APIParameters ¶meters, const QByteArray &data, APIServiceResponse &response) |
Subclasses should implement this to define reactions to HTTP POST requests. More... | |
QString | wrapHtml (QString &text, const QString &title) const |
Because the HTML descriptions in Stellarium are often not compatible with "clean" HTML5 which is used for the main interface, this method can be used to explicitely set the doctype to 4.01 transitional for better results, and include the stylesheet iframestyle.css . More... | |
Additional Inherited Members | |
Static Protected Attributes inherited from AbstractAPIService | |
static const Qt::ConnectionType | SERVICE_DEFAULT_INVOKETYPE |
This defines the connection type QMetaObject::invokeMethod has to use inside a service: either Qt::DirectConnection for main thread handling, or Qt::BlockingQueuedConnection for HTTP thread handling. More... | |
Allows SIMBAD object lookups like SearchDialog uses.
Definition at line 33 of file SimbadService.hpp.
|
protectedvirtual |
|
inlinevirtual |
Simbad lookups dont block the main thread.
Reimplemented from AbstractAPIService.
Definition at line 42 of file SimbadService.hpp.