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

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • postalcode
PostalCodeModel.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 Valery Kharitonov <kharvd@gmail.com>
9 //
10 
11 #ifndef POSTALCODEMODEL_H
12 #define POSTALCODEMODEL_H
13 
14 #include "AbstractDataPluginModel.h"
15 
16 namespace Marble {
17 
18 class PostalCodeModel : public AbstractDataPluginModel
19 {
20  Q_OBJECT
21 
22  public:
23  explicit PostalCodeModel( const MarbleModel *marbleModel, QObject *parent = 0 );
24  ~PostalCodeModel();
25 
26  protected:
31  void getAdditionalItems( const GeoDataLatLonAltBox& box,
32  qint32 number = 10 );
33 
38  void parseFile( const QByteArray& file );
39 
40 private:
41  static void addLine( QString* string, const QString &line );
42 };
43 
44 }
45 
46 #endif // POSTALCODEMODEL_H
AbstractDataPluginModel.h
QByteArray
Marble::PostalCodeModel::~PostalCodeModel
~PostalCodeModel()
Definition: PostalCodeModel.cpp:43
Marble::AbstractDataPluginModel
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition: AbstractDataPluginModel.h:45
Marble::AbstractDataPluginModel::marbleModel
const MarbleModel * marbleModel() const
Definition: AbstractDataPluginModel.cpp:269
Marble::PostalCodeModel
Definition: PostalCodeModel.h:18
Marble::PostalCodeModel::parseFile
void parseFile(const QByteArray &file)
Parses the file which getAdditionalItems downloads and prepares the data for usage.
Definition: PostalCodeModel.cpp:77
QObject
QString
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
QObject::parent
QObject * parent() const
Marble::GeoDataLatLonAltBox
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
Marble::PostalCodeModel::getAdditionalItems
void getAdditionalItems(const GeoDataLatLonAltBox &box, qint32 number=10)
Generates the download url for the description file from the web service depending on the box surroun...
Definition: PostalCodeModel.cpp:46
Marble::PostalCodeModel::PostalCodeModel
PostalCodeModel(const MarbleModel *marbleModel, QObject *parent=0)
Definition: PostalCodeModel.cpp:38
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 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
  • 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