259void QPlace::insertContent(QPlaceContent::Type type,
const QPlaceContent::Collection &content)
261 for (
auto iter = content.cbegin(), end = content.cend(); iter != end; ++iter)
262 d_ptr->m_contentCollections[type].insert(iter.key(), iter.value());
449void QPlace::setExtendedAttribute(
const QString &attributeType,
450 const QPlaceAttribute &attribute)
452 if (attribute == QPlaceAttribute())
453 d_ptr->extendedAttributes().remove(attributeType);
455 d_ptr->extendedAttributes().insert(attributeType, attribute);
496void QPlace::setContactDetails(
const QString &contactType, QList<QPlaceContactDetail> details)
498 if (details.isEmpty())
499 d_ptr->contacts().remove(contactType);
501 d_ptr->contacts().insert(contactType, details);
509void QPlace::appendContactDetail(
const QString &contactType,
const QPlaceContactDetail &detail)
511 QList<QPlaceContactDetail> details = d_ptr->contacts().value(contactType);
512 details.append(detail);
513 d_ptr->contacts().insert(contactType, details);
571bool QPlacePrivate::operator== (
const QPlacePrivate &other)
const
573 return (categories() == other.categories()
574 && location() == other.location()
575 && ratings() == other.ratings()
576 && supplier() == other.supplier()
577 && m_contentCollections == other.m_contentCollections
578 && m_contentCounts == other.m_contentCounts
579 && name() == other.name()
580 && placeId() == other.placeId()
581 && attribution() == other.attribution()
582 && contacts() == other.contacts()
583 && extendedAttributes() == other.extendedAttributes()
584 && visibility() == other.visibility()
585 && icon() == other.icon()
590bool QPlacePrivate::isEmpty()
const
592 return (categories().isEmpty()
593 && location().isEmpty()
594 && ratings().isEmpty()
595 && supplier().isEmpty()
596 && m_contentCollections.isEmpty()
597 && m_contentCounts.isEmpty()
599 && placeId().isEmpty()
600 && attribution().isEmpty()
601 && contacts().isEmpty()
602 && extendedAttributes().isEmpty()
603 && QLocation::UnspecifiedVisibility == visibility()
624QPlacePrivateDefault::QPlacePrivateDefault(
const QPlacePrivateDefault &other)
625 : QPlacePrivate(other),
626 m_categories(other.m_categories),
627 m_location(other.m_location),
628 m_ratings(other.m_ratings),
629 m_supplier(other.m_supplier),
630 m_name(other.m_name),
631 m_placeId(other.m_placeId),
632 m_attribution(other.m_attribution),
633 m_extendedAttributes(other.m_extendedAttributes),
634 m_contacts(other.m_contacts),
635 m_visibility(other.m_visibility),
636 m_icon(other.m_icon),
637 m_detailsFetched(other.m_detailsFetched)