diff options
Diffstat (limited to 'src/location/places')
-rw-r--r-- | src/location/places/qplaceeditorial.cpp | 79 | ||||
-rw-r--r-- | src/location/places/qplaceeditorial.h | 73 | ||||
-rw-r--r-- | src/location/places/qplaceimage.cpp | 81 | ||||
-rw-r--r-- | src/location/places/qplaceimage.h | 77 | ||||
-rw-r--r-- | src/location/places/qplacereview.cpp | 83 | ||||
-rw-r--r-- | src/location/places/qplacereview.h | 86 |
6 files changed, 0 insertions, 479 deletions
diff --git a/src/location/places/qplaceeditorial.cpp b/src/location/places/qplaceeditorial.cpp deleted file mode 100644 index 103d76ed..00000000 --- a/src/location/places/qplaceeditorial.cpp +++ /dev/null @@ -1,79 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2022 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtLocation module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qplaceeditorial.h" -#include "qplacecontent_p.h" - -QT_USE_NAMESPACE - -/*! - \class QPlaceEditorial - \inmodule QtLocation - \ingroup QtLocation-places - \ingroup QtLocation-places-data - \since 5.6 - - \brief The QPlaceEditorial class represents a publisher's article describing a place. - - Each QPlaceEditorial has a title, text and language; in addition to those properties - inherited from QPlaceContent. - - Note: The Places API only supports editorials as 'retrieve-only' objects. Submitting editorials - to a provider is not a supported use case. - - \sa QPlaceContent -*/ - -#if QT_DEPRECATED_SINCE(6, 0) -/*! - Constructs a new editorial object. -*/ -QPlaceEditorial::QPlaceEditorial() - : QPlaceContent(QPlaceContent::EditorialType) -{ -} - -/*! - \fn QPlaceEditorial::QPlaceEditorial(const QPlaceContent &other) - Constructs a copy of \a other if possible, otherwise constructs a default - editorial object. -*/ -Q_IMPLEMENT_CONTENT_COPY_CTOR(QPlaceEditorial, QPlaceContent::EditorialType) - -#endif // QT_DEPRECATED_SINCE(6, 0) diff --git a/src/location/places/qplaceeditorial.h b/src/location/places/qplaceeditorial.h deleted file mode 100644 index 6c543619..00000000 --- a/src/location/places/qplaceeditorial.h +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtLocation module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QPLACEEDITORIAL_H -#define QPLACEEDITORIAL_H - -#include <QtLocation/QPlaceContent> - -#include <QtCore/QVariant> - -QT_BEGIN_NAMESPACE - -#if QT_DEPRECATED_SINCE(6, 0) -class Q_LOCATION_EXPORT QPlaceEditorial : public QPlaceContent -{ -public: - QT_DEPRECATED_VERSION_X_6_0("Use QPlaceContent") QPlaceEditorial(); - QT_DEPRECATED_VERSION_X_6_0("Use QPlaceContent") QPlaceEditorial(const QPlaceContent &other); - - QT_DEPRECATED_VERSION_X_6_0("Use value()") QString text() const - { return value(QPlaceContent::EditorialText).value<QString>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setText(const QString &text) - { setValue(QPlaceContent::EditorialText, QVariant::fromValue(text)); } - QT_DEPRECATED_VERSION_X_6_0("Use value()") QString title() const - { return value(QPlaceContent::EditorialTitle).value<QString>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setTitle(const QString &title) - { setValue(QPlaceContent::EditorialTitle, QVariant::fromValue(title)); } - QT_DEPRECATED_VERSION_X_6_0("Use value()") QString language() const - { return value(QPlaceContent::EditorialLanguage).value<QString>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setLanguage(const QString &language) - { setValue(QPlaceContent::EditorialLanguage, QVariant::fromValue(language)); } -}; -#endif - -QT_END_NAMESPACE - -#endif // QPLACEEDITORIAL_H diff --git a/src/location/places/qplaceimage.cpp b/src/location/places/qplaceimage.cpp deleted file mode 100644 index 67e64efb..00000000 --- a/src/location/places/qplaceimage.cpp +++ /dev/null @@ -1,81 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2022 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtLocation module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qplaceimage.h" -#include "qplacecontent_p.h" - -QT_USE_NAMESPACE - -/*! - \class QPlaceImage - \inmodule QtLocation - \ingroup QtLocation-places - \ingroup QtLocation-places-data - \since 5.6 - - \brief The QPlaceImage class represents a reference to an image. - - Each QPlaceImage represents a set of metadata about an image such as it's - url, identifier and MIME type. These are properties in addition to those provided - by QPlaceContent. - - Note: The Places API only supports images as 'retrieve-only' objects. Submitting - images to a provider is not a supported use case. - \sa QPlaceContent -*/ - -#if QT_DEPRECATED_SINCE(6, 0) - -/*! - Constructs an new QPlaceImage. -*/ -QPlaceImage::QPlaceImage() - : QPlaceContent(QPlaceContent::ImageType) -{ -} - -/*! - \fn QPlaceImage::QPlaceImage(const QPlaceContent &other) - Constructs a copy of \a other if possible, otherwise constructs a default - image object. -*/ -Q_IMPLEMENT_CONTENT_COPY_CTOR(QPlaceImage, QPlaceContent::ImageType) - - -#endif // QT_DEPRECATED_SINCE(6, 0) diff --git a/src/location/places/qplaceimage.h b/src/location/places/qplaceimage.h deleted file mode 100644 index b4e1f267..00000000 --- a/src/location/places/qplaceimage.h +++ /dev/null @@ -1,77 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtLocation module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QPLACEIMAGE_H -#define QPLACEIMAGE_H - -#include <QtLocation/QPlaceContent> - -#include <QtCore/QString> -#include <QtCore/QUrl> -#include <QtCore/QVariant> - -QT_BEGIN_NAMESPACE - -#if QT_DEPRECATED_SINCE(6, 0) -class Q_LOCATION_EXPORT QPlaceImage : public QPlaceContent -{ -public: - QT_DEPRECATED_VERSION_X_6_0("Use QPlaceContent") QPlaceImage(); - QT_DEPRECATED_VERSION_X_6_0("Use QPlaceContent") QPlaceImage(const QPlaceContent &other); - - QT_DEPRECATED_VERSION_X_6_0("Use value()") QUrl url() const - { return value(QPlaceContent::ImageUrl).value<QUrl>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setUrl(const QUrl &url) - { setValue(QPlaceContent::ImageUrl, QVariant::fromValue(url)); } - - QT_DEPRECATED_VERSION_X_6_0("Use value()") QString imageId() const - { return value(QPlaceContent::ImageId).value<QString>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setImageId(const QString &identifier) - { setValue(QPlaceContent::ImageId, QVariant::fromValue(identifier)); } - - QT_DEPRECATED_VERSION_X_6_0("Use value()") QString mimeType() const - { return value(QPlaceContent::ImageMimeType).value<QString>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setMimeType(const QString &type) - { setValue(QPlaceContent::ImageMimeType, QVariant::fromValue(type)); } -}; -#endif - -QT_END_NAMESPACE - -#endif diff --git a/src/location/places/qplacereview.cpp b/src/location/places/qplacereview.cpp deleted file mode 100644 index 87972488..00000000 --- a/src/location/places/qplacereview.cpp +++ /dev/null @@ -1,83 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2022 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtLocation module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "qplacereview.h" -#include "qplacecontent_p.h" - -QT_BEGIN_NAMESPACE - -/*! - \class QPlaceReview - \inmodule QtLocation - \ingroup QtLocation-places - \ingroup QtLocation-places-data - \since 5.6 - - \brief The QPlaceReview class represents a review of a place. - - Each QPlaceReview has a number of properties such as - a title, text, date of submission and rating; in addition to those properties - inherited from QPlaceContent. - - Note: The Places API only supports reviews as 'retrieve-only' objects. Submitting reviews - to a provider is not a supported use case. - - \sa QPlaceContent, QPlaceEditorial -*/ - -#if QT_DEPRECATED_SINCE(6, 0) - -/*! - Constructs a new review object. -*/ -QPlaceReview::QPlaceReview() - : QPlaceContent(QPlaceContent::ReviewType) -{ -} - -/*! - \fn QPlaceReview::QPlaceReview(const QPlaceContent &other) - Constructs a copy of \a other if possible, otherwise constructs a default - review object. -*/ -Q_IMPLEMENT_CONTENT_COPY_CTOR(QPlaceReview, QPlaceContent::ReviewType) - -QT_END_NAMESPACE - -#endif // QT_DEPRECATED_SINCE(6, 0) diff --git a/src/location/places/qplacereview.h b/src/location/places/qplacereview.h deleted file mode 100644 index 6f418969..00000000 --- a/src/location/places/qplacereview.h +++ /dev/null @@ -1,86 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the QtLocation module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QPLACEREVIEW_H -#define QPLACEREVIEW_H - -#include <QtLocation/QPlaceContent> - -#include <QtCore/QDateTime> -#include <QtCore/QVariant> - -QT_BEGIN_NAMESPACE - -#if QT_DEPRECATED_SINCE(6, 0) -class Q_LOCATION_EXPORT QPlaceReview : public QPlaceContent -{ -public: - QT_DEPRECATED_VERSION_X_6_0("Use QPlaceContent") QPlaceReview(); - QT_DEPRECATED_VERSION_X_6_0("Use QPlaceContent") QPlaceReview(const QPlaceContent &other); - - QT_DEPRECATED_VERSION_X_6_0("Use value()") QDateTime dateTime() const - { return value(QPlaceContent::ReviewDateTime).value<QDateTime>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setDateTime(const QDateTime &dateTime) - { setValue(QPlaceContent::ReviewDateTime, QVariant::fromValue(dateTime)); } - QT_DEPRECATED_VERSION_X_6_0("Use value()") QString text() const - { return value(QPlaceContent::ReviewText).value<QString>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setText(const QString &text) - { setValue(QPlaceContent::ReviewText, QVariant::fromValue(text)); } - QT_DEPRECATED_VERSION_X_6_0("Use value()") QString language() const - { return value(QPlaceContent::ReviewLanguage).value<QString>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setLanguage(const QString &language) - { setValue(QPlaceContent::ReviewLanguage, QVariant::fromValue(language)); } - QT_DEPRECATED_VERSION_X_6_0("Use value()") qreal rating() const - { return value(QPlaceContent::ReviewRating).value<qreal>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setRating(qreal rating) - { setValue(QPlaceContent::ReviewRating, QVariant::fromValue(rating)); } - QT_DEPRECATED_VERSION_X_6_0("Use value()") QString reviewId() const - { return value(QPlaceContent::ReviewId).value<QString>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setReviewId(const QString &identifier) - { setValue(QPlaceContent::ReviewId, QVariant::fromValue(identifier)); } - QT_DEPRECATED_VERSION_X_6_0("Use value()") QString title() const - { return value(QPlaceContent::ReviewTitle).value<QString>(); } - QT_DEPRECATED_VERSION_X_6_0("Use setValue()") void setTitle(const QString &title) - { setValue(QPlaceContent::ReviewTitle, QVariant::fromValue(title)); } -}; -#endif - -QT_END_NAMESPACE - -#endif // QPLACEREVIEW_H |