1// qplace.sip generated by MetaSIP 2// 3// This file is part of the QtLocation Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23%If (Qt_5_5_0 -) 24 25class QPlace 26{ 27%TypeHeaderCode 28#include <qplace.h> 29%End 30 31public: 32 QPlace(); 33 QPlace(const QPlace &other); 34 ~QPlace(); 35 bool operator==(const QPlace &other) const; 36 bool operator!=(const QPlace &other) const; 37 QList<QPlaceCategory> categories() const; 38 void setCategory(const QPlaceCategory &category); 39 void setCategories(const QList<QPlaceCategory> &categories); 40 QGeoLocation location() const; 41 void setLocation(const QGeoLocation &location); 42 QPlaceRatings ratings() const; 43 void setRatings(const QPlaceRatings &ratings); 44 QPlaceSupplier supplier() const; 45 void setSupplier(const QPlaceSupplier &supplier); 46 QString attribution() const; 47 void setAttribution(const QString &attribution); 48 QPlaceIcon icon() const; 49 void setIcon(const QPlaceIcon &icon); 50 QPlaceContent::Collection content(QPlaceContent::Type type) const; 51 void setContent(QPlaceContent::Type type, const QPlaceContent::Collection &content); 52 void insertContent(QPlaceContent::Type type, const QPlaceContent::Collection &content); 53 int totalContentCount(QPlaceContent::Type type) const; 54 void setTotalContentCount(QPlaceContent::Type type, int total); 55 QString name() const; 56 void setName(const QString &name); 57 QString placeId() const; 58 void setPlaceId(const QString &identifier); 59 QString primaryPhone() const; 60 QString primaryFax() const; 61 QString primaryEmail() const; 62 QUrl primaryWebsite() const; 63 bool detailsFetched() const; 64 void setDetailsFetched(bool fetched); 65 QStringList extendedAttributeTypes() const; 66 QPlaceAttribute extendedAttribute(const QString &attributeType) const; 67 void setExtendedAttribute(const QString &attributeType, const QPlaceAttribute &attribute); 68 void removeExtendedAttribute(const QString &attributeType); 69 QStringList contactTypes() const; 70 QList<QPlaceContactDetail> contactDetails(const QString &contactType) const; 71 void setContactDetails(const QString &contactType, QList<QPlaceContactDetail> details); 72 void appendContactDetail(const QString &contactType, const QPlaceContactDetail &detail); 73 void removeContactDetails(const QString &contactType); 74 QLocation::Visibility visibility() const; 75 void setVisibility(QLocation::Visibility visibility); 76 bool isEmpty() const; 77}; 78 79%End 80