File indexing completed on 2024-05-12 15:31:19

0001 // SPDX-License-Identifier: LGPL-2.1-or-later
0002 //
0003 // SPDX-FileCopyrightText: 2009 Bastian Holst <bastianholst@gmx.de>
0004 //
0005 
0006 #ifndef BBCWEATHERITEM_H
0007 #define BBCWEATHERITEM_H
0008 
0009 #include "WeatherItem.h"
0010 
0011 class QString;
0012 class QUrl;
0013 
0014 namespace Marble
0015 {
0016 
0017 class BBCWeatherItem : public WeatherItem
0018 {
0019     Q_OBJECT
0020 
0021  public:
0022     explicit BBCWeatherItem( QObject *parent = nullptr );
0023     ~BBCWeatherItem() override;
0024     
0025     bool request( const QString& type ) override;
0026 
0027     QString service() const override;
0028     void addDownloadedFile( const QString& url, const QString& type ) override;
0029     
0030     QUrl observationUrl() const;
0031     QUrl forecastUrl() const;
0032    
0033     quint32 bbcId() const;
0034     void setBbcId( quint32 id );
0035 
0036     QString creditHtml() const;
0037  private:    
0038     quint32 m_bbcId;
0039     bool m_observationRequested;
0040     bool m_forecastRequested;
0041 };
0042 
0043 } // namespace Marble
0044 
0045 #endif // BBCWEATHERITEM_H