• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Stellarium / stellarium / 6345643563

29 Sep 2023 12:15AM UTC coverage: 11.865% (-0.002%) from 11.867%
6345643563

Pull #3433

github

gzotti
Allow window size change via RemoteControl API
- also follow Qt recommendations w.r.t. nullptr and override.
Pull Request #3433: Remote control command to change window size

52 of 52 new or added lines in 18 files covered. (100.0%)

14841 of 125077 relevant lines covered (11.87%)

27788.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/plugins/RemoteControl/src/StelActionService.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 STELACTIONSERVICE_HPP
21
#define STELACTIONSERVICE_HPP
22

23
#include "AbstractAPIService.hpp"
24

25
class StelActionMgr;
26

27
//! @ingroup remoteControl
28
//! Provides services related to StelAction.
29
//! See also the StelAction related operations of MainService.
30
//!
31
//! @see \ref rcStelActionService
32
//!
33
class StelActionService : public AbstractAPIService
34
{
35
        Q_OBJECT
36
public:
37
        StelActionService(QObject* parent = nullptr);
38

39
        QLatin1String getPath() const override { return QLatin1String("stelaction"); }
×
40
        //! @brief Implements the HTTP GET method
41
        //! @see \ref rcStelActionServiceGET
42
        void get(const QByteArray& operation,const APIParameters& parameters, APIServiceResponse& response) override;
43
        //! @brief Implements the HTTP POST method
44
        //! @see \ref rcStelActionServicePOST
45
        void post(const QByteArray &operation, const APIParameters &parameters, const QByteArray &data, APIServiceResponse &response) override;
46
private:
47
        StelActionMgr* actionMgr;
48
};
49

50

51

52
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc