29 QPlace(
const QPlace &other)
noexcept;
30 QPlace(QPlace &&other)
noexcept =
default;
33 QPlace &operator=(
const QPlace &other)
noexcept;
34 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlace)
36 void swap(QPlace &other)
noexcept { d_ptr.swap(other.d_ptr); }
38 friend bool operator==(
const QPlace &lhs,
const QPlace &rhs)
noexcept
39 {
return lhs.isEqual(rhs); }
40 friend bool operator!=(
const QPlace &lhs,
const QPlace &rhs)
noexcept
41 {
return !lhs.isEqual(rhs); }
43 QList<QPlaceCategory> categories()
const;
44 void setCategory(
const QPlaceCategory &category);
45 void setCategories(
const QList<QPlaceCategory> &categories);
46 QGeoLocation location()
const;
47 void setLocation(
const QGeoLocation &location);
48 QPlaceRatings ratings()
const;
49 void setRatings(
const QPlaceRatings &ratings);
50 QPlaceSupplier supplier()
const;
51 void setSupplier(
const QPlaceSupplier &supplier);
53 QString attribution()
const;
54 void setAttribution(
const QString &attribution);
56 QPlaceIcon icon()
const;
57 void setIcon(
const QPlaceIcon &icon);
59 QPlaceContent::Collection content(QPlaceContent::Type type)
const;
60 void setContent(QPlaceContent::Type type,
const QPlaceContent::Collection &content);
61 void insertContent(QPlaceContent::Type type,
const QPlaceContent::Collection &content);
63 int totalContentCount(QPlaceContent::Type type)
const;
64 void setTotalContentCount(QPlaceContent::Type type,
int total);
67 void setName(
const QString &name);
68 QString placeId()
const;
69 void setPlaceId(
const QString &identifier);
71 QString primaryPhone()
const;
72 QString primaryFax()
const;
73 QString primaryEmail()
const;
74 QUrl primaryWebsite()
const;
76 bool detailsFetched()
const;
77 void setDetailsFetched(
bool fetched);
79 QStringList extendedAttributeTypes()
const;
80 QPlaceAttribute extendedAttribute(
const QString &attributeType)
const;
81 void setExtendedAttribute(
const QString &attributeType,
const QPlaceAttribute &attribute);
82 void removeExtendedAttribute(
const QString &attributeType);
84 QStringList contactTypes()
const;
85 QList<QPlaceContactDetail> contactDetails(
const QString &contactType)
const;
86 void setContactDetails(
const QString &contactType, QList<QPlaceContactDetail> details);
87 void appendContactDetail(
const QString &contactType,
const QPlaceContactDetail &detail);
88 void removeContactDetails(
const QString &contactType);
90 QLocation::Visibility visibility()
const;
91 void setVisibility(QLocation::Visibility visibility);
96 QPlace(
const QSharedDataPointer<QPlacePrivate> &dd);
99 QSharedDataPointer<QPlacePrivate> d_ptr;
101 bool isEqual(
const QPlace &other)
const noexcept;
103 inline QPlacePrivate *d_func();
104 inline const QPlacePrivate *d_func()
const;
105 friend class QDeclarativePlace;