コード例 #1
0
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 );
}
コード例 #2
0
ファイル: BBCStation.cpp プロジェクト: snowy97/marble
bool BBCStation::operator<( const BBCStation& other ) const
{
    return priority() > other.priority();
}