5#ifndef QXMPPGEOLOCITEM_H
6#define QXMPPGEOLOCITEM_H
8#include "QXmppPubSubBaseItem.h"
12#include <QSharedDataPointer>
14class QXmppGeolocItemPrivate;
27 std::optional<double> accuracy()
const;
28 void setAccuracy(std::optional<double> accuracy);
30 QString country()
const;
31 void setCountry(QString country);
33 std::optional<double> latitude()
const;
34 void setLatitude(std::optional<double> lat);
36 QString locality()
const;
37 void setLocality(QString locality);
39 std::optional<double> longitude()
const;
40 void setLongitude(std::optional<double> lon);
42 static bool isItem(
const QDomElement &itemElement);
46 void parsePayload(
const QDomElement &payloadElement)
override;
51 QSharedDataPointer<QXmppGeolocItemPrivate> d;
Definition QXmppGeolocItem.h:17
QXmppGeolocItem(QXmppGeolocItem &&)
Move-constructor.
QXmppGeolocItem & operator=(const QXmppGeolocItem &other)
Assignment operator.
QXmppGeolocItem(const QXmppGeolocItem &other)
Copy-constructor.
QXmppGeolocItem & operator=(QXmppGeolocItem &&)
Move-assignment operator.
Definition QXmppPubSubBaseItem.h:19
virtual void serializePayload(QXmlStreamWriter *writer) const
Definition QXmppPubSubBaseItem.cpp:150
virtual void parsePayload(const QDomElement &payloadElement)
Definition QXmppPubSubBaseItem.cpp:140
static bool isItem(const QDomElement &element)
Definition QXmppPubSubBaseItem.cpp:130