Stellarium  0.16.1
List of all members | Classes | Public Types | Public Member Functions
MainService Class Reference

Implements the main API services, including the status operation which can be repeatedly polled to find the current state of the main program, including time, view, location, StelAction and StelProperty state changes, movement, script status ... More...

#include <MainService.hpp>

+ Inheritance diagram for MainService:
+ Collaboration diagram for MainService:

Public Types

enum  SelectionMode { Center, Zoom, Mark }
 

Public Member Functions

 MainService (QObject *parent=Q_NULLPTR)
 
virtual void update (double deltaTime) Q_DECL_OVERRIDE
 Used to implement move functionality. 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 operations. More...
 
virtual void post (const QByteArray &operation, const APIParameters &parameters, const QByteArray &data, APIServiceResponse &response) Q_DECL_OVERRIDE
 Implements the HTTP POST operations. More...
 
- Public Member Functions inherited from AbstractAPIService
 AbstractAPIService (QObject *parent=Q_NULLPTR)
 Only calls QObject constructor. More...
 
virtual bool isThreadSafe () const Q_DECL_OVERRIDE
 Return true if the service's get() and post() methods can safely be run in the HTTP handler thread, instead of having to queue it into the Stellarium main thread. 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

Implements the main API services, including the status operation which can be repeatedly polled to find the current state of the main program, including time, view, location, StelAction and StelProperty state changes, movement, script status ...

See also
MainService operations (/api/main/)

Definition at line 48 of file MainService.hpp.

Member Function Documentation

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

Implements the GET operations.

See also
GET operations

Reimplemented from AbstractAPIService.

virtual QLatin1String MainService::getPath ( ) const
inlinevirtual

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

Implements RemoteControlServiceInterface.

Definition at line 65 of file MainService.hpp.

virtual void MainService::post ( const QByteArray &  operation,
const APIParameters parameters,
const QByteArray &  data,
APIServiceResponse response 
)
virtual

Implements the HTTP POST operations.

See also
POST operations

Reimplemented from AbstractAPIService.

virtual void MainService::update ( double  deltaTime)
virtual

Used to implement move functionality.

Reimplemented from AbstractAPIService.


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