• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.12
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • opencaching
OpenCachingModel.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
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
6 // the source code.
7 //
8 // Copyright 2011 Daniel Marth <danielmarth@gmx.at>
9 //
10 
11 #ifndef OPENCACHINGMODEL_H
12 #define OPENCACHINGMODEL_H
13 
14 #include "AbstractDataPluginModel.h"
15 #include <QDateTime>
16 
17 namespace Marble
18 {
19 
20 class MarbleModel;
21 
22 class OpenCachingModelPrivate;
23 
24 namespace {
25 // The maximum number of items we want to show on the screen.
26 const quint32 numberOfItemsOnScreen = 20;
27 }
28 
32 class OpenCachingModel : public AbstractDataPluginModel
33 {
34  Q_OBJECT
35 
36 public:
37  explicit OpenCachingModel( const PluginManager *pluginManager, QObject *parent = 0 );
38  ~OpenCachingModel();
39 
40  void setNumResults( int numResults );
41  void setMaxDistance( int maxDistance );
42  void setMinDifficulty( double minDifficulty );
43  void setMaxDifficulty( double maxDifficulty );
44  void setStartDate( const QDateTime& startDate );
45  void setEndDate( const QDateTime& endDate );
46 
47 protected:
52  virtual void getAdditionalItems( const GeoDataLatLonAltBox& box,
53  const MarbleModel *model,
54  qint32 number = 10 );
55 
60  void parseFile( const QByteArray& file );
61 
62 private:
63  int m_numResults;
64  int m_maxDistance;
65  qreal m_minDifficulty;
66  qreal m_maxDifficulty;
67  QDateTime m_startDate;
68  QDateTime m_endDate;
69  OpenCachingModelPrivate *const d;
70 };
71 
72 }
73 
74 #endif // OPENCACHINGMODEL_H
Marble::PluginManager
The class that handles Marble's plugins.
Definition: PluginManager.h:45
AbstractDataPluginModel.h
Marble::OpenCachingModel::OpenCachingModel
OpenCachingModel(const PluginManager *pluginManager, QObject *parent=0)
Definition: OpenCachingModel.cpp:96
Marble::AbstractDataPluginModel
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition: AbstractDataPluginModel.h:45
Marble::OpenCachingModel::getAdditionalItems
virtual void getAdditionalItems(const GeoDataLatLonAltBox &box, const MarbleModel *model, qint32 number=10)
Generates the download url for the description file from the web service depending on the box surroun...
Definition: OpenCachingModel.cpp:142
QObject
Marble::OpenCachingModel::setMinDifficulty
void setMinDifficulty(double minDifficulty)
Definition: OpenCachingModel.cpp:122
Marble::OpenCachingModel::setMaxDistance
void setMaxDistance(int maxDistance)
Definition: OpenCachingModel.cpp:117
Marble::OpenCachingModel::setNumResults
void setNumResults(int numResults)
Definition: OpenCachingModel.cpp:112
Marble::OpenCachingModel
Model that manages cache information.
Definition: OpenCachingModel.h:32
Marble::OpenCachingModel::setStartDate
void setStartDate(const QDateTime &startDate)
Definition: OpenCachingModel.cpp:132
Marble::OpenCachingModel::setEndDate
void setEndDate(const QDateTime &endDate)
Definition: OpenCachingModel.cpp:137
Marble::OpenCachingModel::~OpenCachingModel
~OpenCachingModel()
Definition: OpenCachingModel.cpp:108
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:96
Marble::OpenCachingModel::setMaxDifficulty
void setMaxDifficulty(double maxDifficulty)
Definition: OpenCachingModel.cpp:127
Marble::OpenCachingModel::parseFile
void parseFile(const QByteArray &file)
Parses the file which getAdditionalItems downloads and prepares the data for usage.
Definition: OpenCachingModel.cpp:161
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal