Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/auxiliary/weather.cpp
Show All 28 Lines | |||||
29 | void Weather::setWeather(ISD::GDInterface *newWeather) | 29 | void Weather::setWeather(ISD::GDInterface *newWeather) | ||
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::newWeatherData, this, &Weather::newWeatherData); | ||||
37 | connect(currentWeather, &ISD::Weather::ready, this, &Weather::ready); | 38 | connect(currentWeather, &ISD::Weather::ready, this, &Weather::ready); | ||
38 | connect(currentWeather, &ISD::Weather::Connected, this, &Weather::ready); | 39 | connect(currentWeather, &ISD::Weather::Connected, this, &Weather::ready); | ||
39 | connect(currentWeather, &ISD::Weather::Disconnected, this, &Weather::disconnected); | 40 | connect(currentWeather, &ISD::Weather::Disconnected, this, &Weather::disconnected); | ||
40 | } | 41 | } | ||
41 | 42 | | |||
42 | void Weather::removeDevice(ISD::GDInterface *device) | 43 | void Weather::removeDevice(ISD::GDInterface *device) | ||
43 | { | 44 | { | ||
44 | device->disconnect(this); | 45 | device->disconnect(this); | ||
Show All 22 Lines |