Kgapi
staticmapurl.cpp
104StaticMapUrl::StaticMapUrl(const QString &location, const QSize &size, quint32 zoom, bool sensor)
113StaticMapUrl::StaticMapUrl(const KContacts::Address &address, const QSize &size, quint32 zoom, bool sensor)
122StaticMapUrl::StaticMapUrl(const KContacts::Geo &geo, const QSize &size, quint32 zoom, bool sensor)
370 param = QString::number(d->locationGeo.latitude()) + QLatin1Char(',') + QString::number(d->locationGeo.longitude());
381 QString size = QString::number(d->size.width()) + QLatin1Char('x') + QString::number(d->size.height());
462 param = QString::number(d->visibleGeo.latitude()) + QLatin1Char(',') + QString::number(d->visibleGeo.longitude());
void clear()
Q_INVOKABLE QString formatted(KContacts::AddressFormatStyle style, const QString &realName=QString(), const QString &orgaName=QString()) const
void setLatitude(float latitude)
float longitude() const
float latitude() const
void setLongitude(float longitude)
Represents marker with defined label, color, size and markers.
Definition staticmapmarker.h:26
Represents path with defined locations, weight, color and color for filled area.
Definition staticmappath.h:27
A class to build a URL from StaticMapMarkers and StaticMapPaths to fetch a map tile.
Definition staticmapurl.h:30
LocationType locationType() const
Returns in which format the location is stored.
Definition staticmapurl.cpp:131
KContacts::Geo locationGeo() const
Returns map center in KContacts::Geo.
Definition staticmapurl.cpp:201
void setVisibleLocation(const QString &location)
Sets visible location.
Definition staticmapurl.cpp:293
KContacts::Geo visibleLocationGeo() const
Returns visible area in KContacts::Geo.
Definition staticmapurl.cpp:316
KContacts::Address locationAddress() const
Returns map center in KContacts::Address.
Definition staticmapurl.cpp:187
void setMapType(const MapType type)
Sets type of map (roadmap by default)
Definition staticmapurl.cpp:219
StaticMapUrl & operator=(const StaticMapUrl &other)
Assignment operator.
Definition staticmapurl.cpp:94
bool sensorUsed() const
Returns whether the application uses a sensor to determine user's location.
Definition staticmapurl.cpp:278
KContacts::Address visibleLocationAddress() const
Returns visible area in KContacts::Address.
Definition staticmapurl.cpp:302
void setFormat(const ImageFormat format)
Sets map image format (default is PNG)
Definition staticmapurl.cpp:141
void setSensorUsed(const bool sensor)
Sets whether the application uses a sensor to determine the user's location.
Definition staticmapurl.cpp:283
QString visibleLocationString() const
Returns visible area in QString.
Definition staticmapurl.cpp:288
LocationType visibleLocationType() const
Returns type of visible location.
Definition staticmapurl.cpp:329
void setMarkers(const QList< StaticMapMarker > &markers)
Adds markers to map.
Definition staticmapurl.cpp:236
QAction * zoom(const QObject *recvr, const char *slot, QObject *parent)
QCA_EXPORT void init()
Undefined
int height() const const
bool isEmpty() const const
int width() const const
void clear()
QString number(double n, char format, int precision)
QString & replace(QChar before, QChar after, Qt::CaseSensitivity cs)
void setQuery(const QString &query, ParsingMode mode)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.