diff options
Diffstat (limited to 'src/location/qgeoplace.cpp')
-rw-r--r-- | src/location/qgeoplace.cpp | 412 |
1 files changed, 407 insertions, 5 deletions
diff --git a/src/location/qgeoplace.cpp b/src/location/qgeoplace.cpp index 5517029e..374335e4 100644 --- a/src/location/qgeoplace.cpp +++ b/src/location/qgeoplace.cpp @@ -223,6 +223,367 @@ void QGeoPlace::setAddress(const QGeoAddress &address) d->address = address; } +/*! + Returns additional data. +*/ +QVariantHash QGeoPlace::additionalData() const +{ + Q_D(const QGeoPlace); + return d->additionalData; +} + +/*! + Sets additional data. +*/ +void QGeoPlace::setAdditionalData(const QVariantHash &data) +{ + Q_D(QGeoPlace); + d->additionalData = data; +} + +/*! + Returns alternative names. +*/ +QList<QPlaceAlternativeValue> QGeoPlace::alternativeNames() const +{ + Q_D(const QGeoPlace); + return d->alternativeNames; +} + +/*! + Sets alternative names. +*/ +void QGeoPlace::setAlternativeNames(const QList<QPlaceAlternativeValue> &alternativeNames) +{ + Q_D(QGeoPlace); + d->alternativeNames = alternativeNames; +} + +/*! + Returns place score. +*/ +double QGeoPlace::placeScore() const +{ + Q_D(const QGeoPlace); + return d->placeScore; +} + +/*! + Sets place score. +*/ +void QGeoPlace::setPlaceScore(const double &data) +{ + Q_D(QGeoPlace); + d->placeScore = data; +} + +/*! + Returns business info. +*/ +QPlaceBusinessInformation QGeoPlace::businessInformation() const +{ + Q_D(const QGeoPlace); + return d->businessInfo; +} + +/*! + Sets business info. +*/ +void QGeoPlace::setBusinessInformation(const QPlaceBusinessInformation &business) +{ + Q_D(QGeoPlace); + d->businessInfo = business; +} + +/*! + Returns categories. +*/ +QList<QPlaceCategory> QGeoPlace::categories() const +{ + Q_D(const QGeoPlace); + return d->categories; +} + +/*! + Sets categories. +*/ +void QGeoPlace::setCategories(const QList<QPlaceCategory> &categories) +{ + Q_D(QGeoPlace); + d->categories = categories; +} + +/*! + Returns contacts. +*/ +QList<QPlaceContact> QGeoPlace::contacts() const +{ + Q_D(const QGeoPlace); + return d->contacts; +} + +/*! + Sets contacts. +*/ +void QGeoPlace::setContacts(const QList<QPlaceContact> &contacts) +{ + Q_D(QGeoPlace); + d->contacts = contacts; +} + +/*! + Returns descriptions. +*/ +QList<QPlaceDescription> QGeoPlace::descriptions() const +{ + Q_D(const QGeoPlace); + return d->descriptions; +} + +/*! + Sets descriptions. +*/ +void QGeoPlace::setDescriptions(const QList<QPlaceDescription> &descriptions) +{ + Q_D(QGeoPlace); + d->descriptions = descriptions; +} + +/*! + Returns location. +*/ +QPlaceLocation QGeoPlace::location() const +{ + Q_D(const QGeoPlace); + return d->location; +} + +/*! + Sets location. +*/ +void QGeoPlace::setLocation(const QPlaceLocation &location) +{ + Q_D(QGeoPlace); + d->location = location; +} + +/*! + Returns alternative locations. +*/ +QList<QPlaceLocation> QGeoPlace::alternativeLocations() const +{ + Q_D(const QGeoPlace); + return d->alternativeLocations; +} + +/*! + Sets alternative locations. +*/ +void QGeoPlace::setAlternativeLocations(const QList<QPlaceLocation> &locations) +{ + Q_D(QGeoPlace); + d->alternativeLocations = locations; +} + +/*! + Returns rating. +*/ +QPlaceRating QGeoPlace::rating() const +{ + Q_D(const QGeoPlace); + return d->rating; +} + +/*! + Sets rating. +*/ +void QGeoPlace::setRating(const QPlaceRating &rating) +{ + Q_D(QGeoPlace); + d->rating = rating; +} + +/*! + Returns suppliers. +*/ +QList<QPlaceSupplier> QGeoPlace::suppliers() const +{ + Q_D(const QGeoPlace); + return d->suppliers; +} + +/*! + Sets suppliers. +*/ +void QGeoPlace::setSuppliers(const QList<QPlaceSupplier> &data) +{ + Q_D(QGeoPlace); + d->suppliers = data; +} + +/*! + Returns feeds list. +*/ +QStringList QGeoPlace::feeds() const +{ + Q_D(const QGeoPlace); + return d->feeds; +} + +/*! + Sets feeds list. +*/ +void QGeoPlace::setFeeds(const QStringList &feeds) +{ + Q_D(QGeoPlace); + d->feeds = feeds; +} + +/*! + Returns list with media objects connected to this place. +*/ +QPlacePaginationList<QPlaceMediaObject> QGeoPlace::media() const +{ + Q_D(const QGeoPlace); + return d->media; +} + +/*! + Sets list with media objects connected to this place. +*/ +void QGeoPlace::setMedia(const QPlacePaginationList<QPlaceMediaObject> &media) +{ + Q_D(QGeoPlace); + d->media = media; +} + +/*! + Returns media count. +*/ +int QGeoPlace::mediaCount() const +{ + Q_D(const QGeoPlace); + return d->mediaCount; +} + +/*! + Sets media count. +*/ +void QGeoPlace::setMediaCount(const int &count) +{ + Q_D(QGeoPlace); + d->mediaCount = count; +} + +/*! + Returns name. +*/ +QString QGeoPlace::name() const +{ + Q_D(const QGeoPlace); + return d->name; +} + +/*! + Sets name. +*/ +void QGeoPlace::setName(const QString &name) +{ + Q_D(QGeoPlace); + d->name = name; +} + +/*! + Returns placeId. +*/ +QString QGeoPlace::placeId() const +{ + Q_D(const QGeoPlace); + return d->placeId; +} + +/*! + Sets placeId. +*/ +void QGeoPlace::setPlaceId(const QString &placeId) +{ + Q_D(QGeoPlace); + d->placeId = placeId; +} + +/*! + Returns reviews. +*/ +QPlacePaginationList<QPlaceReview> QGeoPlace::reviews() const +{ + Q_D(const QGeoPlace); + return d->reviews; +} + +/*! + Sets reviews. +*/ +void QGeoPlace::setReviews(const QPlacePaginationList<QPlaceReview> &reviews) +{ + Q_D(QGeoPlace); + d->reviews = reviews; +} + +/*! + Returns review count. +*/ +int QGeoPlace::reviewCount() const +{ + Q_D(const QGeoPlace); + return d->reviewCount; +} + +/*! + Sets review count. +*/ +void QGeoPlace::setReviewCount(const int &count) +{ + Q_D(QGeoPlace); + d->reviewCount = count; +} + +/*! + Returns short description. +*/ +QString QGeoPlace::shortDescription() const +{ + Q_D(const QGeoPlace); + return d->shortDescription; +} + +/*! + Sets short description. +*/ +void QGeoPlace::setShortDescription(const QString &description) +{ + Q_D(QGeoPlace); + d->shortDescription = description; +} + +/*! + Returns list of tags. +*/ +QStringList QGeoPlace::tags() const +{ + Q_D(const QGeoPlace); + return d->tags; +} + +/*! + Sets tags. +*/ +void QGeoPlace::setTags(const QStringList &tags) +{ + Q_D(QGeoPlace); + d->tags = tags; +} + + /******************************************************************************* *******************************************************************************/ @@ -235,7 +596,27 @@ QGeoPlacePrivate::QGeoPlacePrivate(const QGeoPlacePrivate &other) type(other.type), viewport(other.viewport), coordinate(other.coordinate), - address(other.address) {} + address(other.address), + additionalData(other.additionalData), + placeScore(other.placeScore), + businessInfo(other.businessInfo), + categories(other.categories), + contacts(other.contacts), + descriptions(other.descriptions), + location(other.location), + alternativeLocations(other.alternativeLocations), + rating(other.rating), + suppliers(other.suppliers), + feeds(other.feeds), + media(other.media), + name(other.name), + placeId(other.placeId), + reviews(other.reviews), + reviewCount(other.reviewCount), + shortDescription(other.shortDescription), + tags(other.tags) +{ +} QGeoPlacePrivate::~QGeoPlacePrivate() {} @@ -259,10 +640,31 @@ bool QGeoPlacePrivate::operator== (const QGeoPlacePrivate &other) const qDebug() << "address:" << (address == other.address); #endif - return ((type == other.type) - && (viewport == other.viewport) - && (coordinate == other.coordinate) - && (address == other.address)); + return (type == other.type + && viewport == other.viewport + && coordinate == other.coordinate + && address == other.address + && additionalData == other.additionalData + && alternativeNames == other.alternativeNames + && placeScore == other.placeScore + && businessInfo == other.businessInfo + && categories == other.categories + && contacts == other.contacts + && descriptions == other.descriptions + && location == other.location + && alternativeLocations == other.alternativeLocations + && rating == other.rating + && suppliers == other.suppliers + && feeds == other.feeds + && media == other.media + && mediaCount == other.mediaCount + && name == other.name + && placeId == other.placeId + && reviews == other.reviews + && reviewCount == other.reviewCount + && shortDescription == other.shortDescription + && tags == other.tags + ); } QTM_END_NAMESPACE |