Stellarium  0.90.0
List of all members | Public Member Functions
LocationSearchService Class Reference

Provides predefined location search functionality, using the StelLocationMgr. More...

#include <LocationSearchService.hpp>

+ Inheritance diagram for LocationSearchService:
+ Collaboration diagram for LocationSearchService:

Public Member Functions

 LocationSearchService (QObject *parent=Q_NULLPTR)
 
virtual bool isThreadSafe () const Q_DECL_OVERRIDE
 We work on a copy of the StelLocationMgr, to prevent hitches as the web user is typing. More...
 
virtual QLatin1String getPath () const Q_DECL_OVERRIDE
 Returns the desired path mapping If there is a conflict, only the first object is mapped. More...
 
virtual void get (const QByteArray &operation, const APIParameters &parameters, APIServiceResponse &response) Q_DECL_OVERRIDE
 Implements the GET method. More...
 
- Public Member Functions inherited from AbstractAPIService
 AbstractAPIService (QObject *parent=Q_NULLPTR)
 Only calls QObject constructor. More...
 
virtual void update (double deltaTime) Q_DECL_OVERRIDE
 Called in the main thread each frame. More...
 
virtual void post (const QByteArray &operation, const APIParameters &parameters, const QByteArray &data, APIServiceResponse &response) Q_DECL_OVERRIDE
 Provides a default implementation which returns an error message. 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...
 

Detailed Description

Provides predefined location search functionality, using the StelLocationMgr.

See also
LocationSearchService operations (/api/locationsearch/), LocationService
Note
This service supports threaded operation

Definition at line 32 of file LocationSearchService.hpp.

Member Function Documentation

virtual void LocationSearchService::get ( const QByteArray &  operation,
const APIParameters parameters,
APIServiceResponse response 
)
virtual

Implements the GET method.

See also
GET operations

Reimplemented from AbstractAPIService.

virtual QLatin1String LocationSearchService::getPath ( ) const
inlinevirtual

Returns the desired path mapping If there is a conflict, only the first object is mapped.

Implements RemoteControlServiceInterface.

Definition at line 41 of file LocationSearchService.hpp.

virtual bool LocationSearchService::isThreadSafe ( ) const
inlinevirtual

We work on a copy of the StelLocationMgr, to prevent hitches as the web user is typing.

Returns
true

Reimplemented from AbstractAPIService.

Definition at line 40 of file LocationSearchService.hpp.


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