2
// This file is part of the Marble Virtual Globe.
4
// This program is free software licensed under the GNU LGPL. You can
5
// find a copy of this license in LICENSE.txt in the top directory of
8
// Copyright 2010 Utku Aydin <utkuaydin34@gmail.com>
11
#ifndef EARTHQUAKEMODEL_H
12
#define EARTHQUAKEMODEL_H
14
#include "AbstractDataPluginModel.h"
15
#include <QtCore/QDateTime>
23
// The maximum number of items we want to show on the screen.
24
const quint32 numberOfItemsOnScreen = 20;
27
class EarthquakeModel : public AbstractDataPluginModel
32
explicit EarthquakeModel( PluginManager *pluginManager, QObject *parent = 0 );
35
void setNumResults( int numResults );
36
void setMinMagnitude( double minMagnitude );
37
void setStartDate( const QDateTime& startDate );
38
void setEndDate( const QDateTime& endDate );
42
* Generates the download url for the description file from the web service depending on
43
* the @p box surrounding the view and the @p number of files to show.
45
virtual void getAdditionalItems( const GeoDataLatLonAltBox& box,
46
const MarbleModel *model,
50
* Parses the @p file which getAdditionalItems downloads and
51
* prepares the data for usage.
53
void parseFile( const QByteArray& file );
57
double m_minMagnitude;
58
QDateTime m_startDate;
64
#endif // EARTHQUAKEMODEL_H