Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/auxiliary/weather.cpp
Show All 29 Lines | |||||
30 | { | 30 | { | ||
31 | if (newWeather == currentWeather) | 31 | if (newWeather == currentWeather) | ||
32 | return; | 32 | return; | ||
33 | 33 | | |||
34 | currentWeather = static_cast<ISD::Weather *>(newWeather); | 34 | currentWeather = static_cast<ISD::Weather *>(newWeather); | ||
35 | currentWeather->disconnect(this); | 35 | currentWeather->disconnect(this); | ||
36 | connect(currentWeather, &ISD::Weather::newStatus, this, &Weather::newStatus); | 36 | connect(currentWeather, &ISD::Weather::newStatus, this, &Weather::newStatus); | ||
37 | connect(currentWeather, &ISD::Weather::ready, this, &Weather::ready); | 37 | connect(currentWeather, &ISD::Weather::ready, this, &Weather::ready); | ||
38 | connect(currentWeather, &ISD::Weather::Connected, this, &Weather::ready); | ||||
39 | connect(currentWeather, &ISD::Weather::Disconnected, this, &Weather::disconnected); | ||||
38 | } | 40 | } | ||
39 | 41 | | |||
40 | ISD::Weather::Status Weather::status() | 42 | ISD::Weather::Status Weather::status() | ||
41 | { | 43 | { | ||
42 | if (currentWeather == nullptr) | 44 | if (currentWeather == nullptr) | ||
43 | return ISD::Weather::WEATHER_IDLE; | 45 | return ISD::Weather::WEATHER_IDLE; | ||
44 | 46 | | |||
45 | return currentWeather->getWeatherStatus(); | 47 | return currentWeather->getWeatherStatus(); | ||
Show All 10 Lines |