Stellarium  0.90.0
ViewService.hpp
1 /*
2  * Stellarium Remote Control plugin
3  * Copyright (C) 2015 Florian Schaukowitsch
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18  */
19 
20 #ifndef VIEWSERVICE_HPP_
21 #define VIEWSERVICE_HPP_
22 
23 #include "AbstractAPIService.hpp"
24 
25 class StelCore;
26 class LandscapeMgr;
27 class StelSkyCultureMgr;
28 
34 {
35  Q_OBJECT
36 public:
37  ViewService(QObject* parent = Q_NULLPTR);
38 
39  virtual QLatin1String getPath() const Q_DECL_OVERRIDE { return QLatin1String("view"); }
42  virtual void get(const QByteArray& operation,const APIParameters& parameters, APIServiceResponse& response) Q_DECL_OVERRIDE;
43 private:
44  StelCore* core;
45  LandscapeMgr* lsMgr;
46  StelSkyCultureMgr* skyCulMgr;
47 };
48 
49 #endif
Manages all the rendering at the level of the observer's surroundings.
Main class for Stellarium core processing.
Definition: StelCore.hpp:48
Thread-safe version of HttpResponse that can be passed around through QMetaObject::invokeMethod.
Provides services related to the view (landscape, sky culture, projection).
Definition: ViewService.hpp:33
Abstract base class for all RemoteControlServiceInterface implementations which are provided by the R...
QMultiMap< QByteArray, QByteArray > APIParameters
Defines the HTTP request parameters for the service.
virtual QLatin1String getPath() const Q_DECL_OVERRIDE
Returns the desired path mapping If there is a conflict, only the first object is mapped...
Definition: ViewService.hpp:39
Manage sky cultures for stellarium.