• 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
  • runner
  • local-osm-search
DatabaseQuery.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 Dennis Nienhüser <earthwings@gentoo.org>
9 // Copyright 2013 Bernhard Beschow <bbeschow@cs.tu-berlin.de>
10 //
11 
12 #ifndef MARBLE_DATABASEQUERY_H
13 #define MARBLE_DATABASEQUERY_H
14 
15 #include "GeoDataCoordinates.h"
16 #include "OsmPlacemark.h"
17 
18 #include <QList>
19 #include <QString>
20 
21 namespace Marble {
22 
23 class MarbleModel;
24 class GeoDataLatLonBox;
25 
29 class DatabaseQuery
30 {
31 public:
32  enum QueryType {
33  AddressSearch,
34  CategorySearch,
35  BroadSearch
36  };
37 
38  enum ResultFormat {
39  AddressFormat,
40  DistanceFormat
41  };
42 
43  DatabaseQuery( const MarbleModel* model, const QString &searchTerm, const GeoDataLatLonBox &preferred );
44 
45  QueryType queryType() const;
46 
47  ResultFormat resultFormat() const;
48 
49  QString street() const;
50 
51  QString houseNumber() const;
52 
53  QString region() const;
54 
55  QString searchTerm() const;
56 
57  OsmPlacemark::OsmCategory category() const;
58 
59  GeoDataCoordinates position() const;
60 
61 private:
62  bool isPointOfInterest( const QString &category );
63 
64  QueryType m_queryType;
65  ResultFormat m_resultFormat;
66 
67  QString m_street;
68  QString m_houseNumber;
69  QString m_region;
70 
71  QString m_searchTerm;
72 
73  GeoDataCoordinates m_position;
74 
75  OsmPlacemark::OsmCategory m_category;
76 };
77 
78 }
79 
80 #endif // MARBLE_DATABASEQUERY_H
GeoDataCoordinates.h
Marble::GeoDataCoordinates
A 3d point representation.
Definition: GeoDataCoordinates.h:52
Marble::DatabaseQuery::region
QString region() const
Definition: DatabaseQuery.cpp:197
OsmPlacemark.h
Marble::DatabaseQuery::resultFormat
ResultFormat resultFormat() const
Definition: DatabaseQuery.cpp:182
Marble::DatabaseQuery::QueryType
QueryType
Definition: DatabaseQuery.h:32
Marble::DatabaseQuery::AddressFormat
Definition: DatabaseQuery.h:39
Marble::DatabaseQuery::queryType
QueryType queryType() const
Definition: DatabaseQuery.cpp:177
Marble::DatabaseQuery::searchTerm
QString searchTerm() const
Definition: DatabaseQuery.cpp:202
Marble::DatabaseQuery::category
OsmPlacemark::OsmCategory category() const
Definition: DatabaseQuery.cpp:172
Marble::DatabaseQuery::houseNumber
QString houseNumber() const
Definition: DatabaseQuery.cpp:192
Marble::DatabaseQuery::position
GeoDataCoordinates position() const
Definition: DatabaseQuery.cpp:207
Marble::DatabaseQuery::BroadSearch
search which contains a poi category
Definition: DatabaseQuery.h:35
QString
Marble::DatabaseQuery::CategorySearch
precise search for an address
Definition: DatabaseQuery.h:34
Marble::DatabaseQuery::AddressSearch
Definition: DatabaseQuery.h:33
Marble::DatabaseQuery::DatabaseQuery
DatabaseQuery(const MarbleModel *model, const QString &searchTerm, const GeoDataLatLonBox &preferred)
Definition: DatabaseQuery.cpp:23
Marble::MarbleModel
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
Marble::DatabaseQuery::ResultFormat
ResultFormat
Definition: DatabaseQuery.h:38
Marble::DatabaseQuery::street
QString street() const
Definition: DatabaseQuery.cpp:187
Marble::OsmPlacemark::OsmCategory
OsmCategory
Definition: OsmPlacemark.h:27
Marble::DatabaseQuery
Parse result of a user's search term.
Definition: DatabaseQuery.h:29
Marble::DatabaseQuery::DistanceFormat
display results with location information
Definition: DatabaseQuery.h:40
Marble::GeoDataLatLonBox
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 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