28 QPlace(
const QPlace &other)
noexcept;
29 QPlace(QPlace &&other)
noexcept =
default;
32 QPlace &operator=(
const QPlace &other)
noexcept;
33 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP(QPlace)
35 void swap(QPlace &other)
noexcept { d_ptr.swap(other.d_ptr); }
37 friend bool operator==(
const QPlace &lhs,
const QPlace &rhs)
noexcept
38 {
return lhs.isEqual(rhs); }
39 friend bool operator!=(
const QPlace &lhs,
const QPlace &rhs)
noexcept
40 {
return !lhs.isEqual(rhs); }
42 QList<QPlaceCategory> categories()
const;
43 void setCategory(
const QPlaceCategory &category);
44 void setCategories(
const QList<QPlaceCategory> &categories);
45 QGeoLocation location()
const;
46 void setLocation(
const QGeoLocation &location);
47 QPlaceRatings ratings()
const;
48 void setRatings(
const QPlaceRatings &ratings);
49 QPlaceSupplier supplier()
const;
50 void setSupplier(
const QPlaceSupplier &supplier);
52 QString attribution()
const;
53 void setAttribution(
const QString &attribution);
55 QPlaceIcon icon()
const;
56 void setIcon(
const QPlaceIcon &icon);
58 QPlaceContent::Collection content(QPlaceContent::Type type)
const;
59 void setContent(QPlaceContent::Type type,
const QPlaceContent::Collection &content);
60 void insertContent(QPlaceContent::Type type,
const QPlaceContent::Collection &content);
62 int totalContentCount(QPlaceContent::Type type)
const;
63 void setTotalContentCount(QPlaceContent::Type type,
int total);
66 void setName(
const QString &name);
67 QString placeId()
const;
68 void setPlaceId(
const QString &identifier);
70 QString primaryPhone()
const;
71 QString primaryFax()
const;
72 QString primaryEmail()
const;
73 QUrl primaryWebsite()
const;
75 bool detailsFetched()
const;
76 void setDetailsFetched(
bool fetched);
78 QStringList extendedAttributeTypes()
const;
79 QPlaceAttribute extendedAttribute(
const QString &attributeType)
const;
80 void setExtendedAttribute(
const QString &attributeType,
const QPlaceAttribute &attribute);
81 void removeExtendedAttribute(
const QString &attributeType);
83 QStringList contactTypes()
const;
84 QList<QPlaceContactDetail> contactDetails(
const QString &contactType)
const;
85 void setContactDetails(
const QString &contactType, QList<QPlaceContactDetail> details);
86 void appendContactDetail(
const QString &contactType,
const QPlaceContactDetail &detail);
87 void removeContactDetails(
const QString &contactType);
89 QLocation::Visibility visibility()
const;
90 void setVisibility(QLocation::Visibility visibility);
95 QPlace(
const QSharedDataPointer<QPlacePrivate> &dd);
98 QSharedDataPointer<QPlacePrivate> d_ptr;
100 bool isEqual(
const QPlace &other)
const noexcept;
102 inline QPlacePrivate *d_func();
103 inline const QPlacePrivate *d_func()
const;
104 friend class QDeclarativePlace;