MauiKit Image Tools

modules/geolocation/citiesdb.h
1#pragma once
2
3#include <QObject>
4#include <QSqlDatabase>
5#include "kdtree.hpp"
6
7class City;
8class CitiesDB : public QObject
9{
11
12public:
13 explicit CitiesDB(QObject * =nullptr);
14
15 City *findCity(double latitude, double longitude);
16 City *city(const QString&);
17 std::vector<point_t> cities();
18 bool error() const;
19
20private:
21 QSqlDatabase m_db;
22 bool m_error = {true};
23
24};
A class for representing the GPS coordinates and information of a city.
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:32:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.