7#ifndef KPUBLICTRANSPORT_LOCATIONREQUEST_H
8#define KPUBLICTRANSPORT_LOCATIONREQUEST_H
10#include "kpublictransport_export.h"
12#include <KPublicTransport/Datatypes>
13#include <KPublicTransport/Location>
16#include <QSharedDataPointer>
22class LocationRequestPrivate;
33 Q_PROPERTY(
double latitude READ latitude WRITE setLatitude STORED false)
34 Q_PROPERTY(
double longitude READ longitude WRITE setLongitude STORED false)
35 Q_PROPERTY(
QString name READ name WRITE setName STORED false)
36 Q_PROPERTY(
QStringList backends READ backendIds WRITE setBackendIds)
42 KPUBLICTRANSPORT_PROPERTY(
int, maximumDistance, setMaximumDistance)
47 KPUBLICTRANSPORT_PROPERTY(
int, maximumResults, setMaximumResults)
64 void setLocation(const
Location &location);
67 [[nodiscard]]
double latitude() const;
69 void setLatitude(
double lat);
71 [[nodiscard]]
double longitude() const;
73 void setLongitude(
double lon);
75 void setCoordinate(
double lat,
double lon);
77 bool hasCoordinate() const;
82 void setName(const
QString &name);
Describes a location search.
Query operations and data types for accessing realtime public transport information from online servi...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:52 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.