Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/observatory/observatoryweathermodel.h
- This file was added.
1 | /* Ekos Observatory Module | ||||
---|---|---|---|---|---|
2 | Copyright (C) Wolfgang Reissenberger <sterne-jaeger@t-online.de> | ||||
3 | | ||||
4 | This application is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU General Public | ||||
6 | License as published by the Free Software Foundation; either | ||||
7 | version 2 of the License, or (at your option) any later version. | ||||
8 | */ | ||||
9 | | ||||
10 | #pragma once | ||||
11 | | ||||
12 | #include "../auxiliary/weather.h" | ||||
13 | #include "indiweather.h" | ||||
14 | | ||||
15 | #include <QObject> | ||||
16 | | ||||
17 | namespace Ekos | ||||
18 | { | ||||
19 | | ||||
20 | class ObservatoryWeatherModel : public QObject | ||||
21 | { | ||||
22 | | ||||
23 | Q_OBJECT | ||||
24 | | ||||
25 | public: | ||||
26 | ObservatoryWeatherModel() = default; | ||||
27 | | ||||
28 | void initModel(Weather *weather); | ||||
29 | ISD::Weather::Status status(); | ||||
30 | | ||||
31 | private: | ||||
32 | Weather *mWeather; | ||||
33 | | ||||
34 | signals: | ||||
35 | void newStatus(ISD::Weather::Status state); | ||||
36 | void ready(); | ||||
37 | | ||||
38 | }; | ||||
39 | | ||||
40 | } |