void BBCWeatherService::createItem( BBCStation station ) { BBCWeatherItem *item = new BBCWeatherItem( this ); item->setMarbleWidget( marbleWidget() ); item->setBbcId( station.bbcId() ); item->setCoordinate( station.coordinate() ); item->setPriority( station.priority() ); item->setStationName( station.name() ); emit requestedDownload( item->observationUrl(), "bbcobservation", item ); emit requestedDownload( item->forecastUrl(), "bbcforecast", item ); }
bool BBCStation::operator<( const BBCStation& other ) const { return priority() > other.priority(); }