WeatherService: Added forceUpdateAll() function.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/18/head
Mavridis Philippe 3 years ago
parent 2dc62c135e
commit c0d50863df
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -73,13 +73,22 @@ void WeatherService::updated(const TQString &stationID)
void WeatherService::updateAll()
{
kdDebug(12006) << "Sending for all" << endl;
kdDebug(12006) << "Sending update for all" << endl;
TQStringList stations = m_weatherLib->stations();
TQStringList::ConstIterator end(stations.end());
for ( TQStringList::ConstIterator it = stations.begin(); it != end; ++it ) {
update(*it);
}
}
}
void WeatherService::forceUpdateAll()
{
kdDebug(12006) << "Sending forceUpdate for all" << endl;
TQStringList stations = m_weatherLib->stations();
TQStringList::ConstIterator end(stations.end());
for ( TQStringList::ConstIterator it = stations.begin(); it != end; ++it ) {
forceUpdate(*it);
}
}
void WeatherService::updating(const TQString &stationID)

@ -86,6 +86,7 @@ class WeatherService : public TQObject, public DCOPObject
void update(const TQString &stationID);
void updateAll();
void forceUpdate(const TQString &stationID);
void forceUpdateAll();
void removeStation(const TQString &stationID);
void addStation(const TQString &stationID);
TQStringList listStations();

Loading…
Cancel
Save