File indexing completed on 2024-05-05 03:50:44
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2012 Utku Aydın <utkuaydin34@gmail.com> 0004 // 0005 0006 #ifndef FOURSQUAREMODEL_H 0007 #define FOURSQUAREMODEL_H 0008 #include <AbstractDataPluginModel.h> 0009 0010 namespace Marble 0011 { 0012 0013 class FoursquareModel : public AbstractDataPluginModel 0014 { 0015 Q_OBJECT 0016 0017 public: 0018 explicit FoursquareModel( const MarbleModel *marbleModel, QObject *parent = nullptr ); 0019 ~FoursquareModel() override; 0020 0021 protected: 0022 /** 0023 * Generates the download url for the description file from the web service depending on 0024 * the @p box surrounding the view and the @p number of files to show. 0025 **/ 0026 void getAdditionalItems( const GeoDataLatLonAltBox& box, 0027 qint32 number = 10 ) override; 0028 0029 /** 0030 * Parses the @p file which getAdditionalItems downloads and 0031 * prepares the data for usage. 0032 **/ 0033 void parseFile( const QByteArray& file ) override; 0034 }; 0035 0036 } 0037 0038 #endif // FOURSQUAREMODEL_H