diff options
author | abcd <amos.choy@nokia.com> | 2011-12-23 13:12:53 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-13 05:25:46 +0100 |
commit | a9c5420c21f25442d272fd07f8127b01d2bfd73c (patch) | |
tree | 80fd74aca8d63756e0656ff4fb658d22ae733c03 /src/location/places/qplacematchreply.h | |
parent | 94e991e335706374003ce0a1596a0ec9ca7f47e7 (diff) | |
download | qtlocation-a9c5420c21f25442d272fd07f8127b01d2bfd73c.tar.gz |
Implement cross-referencing of Places
Cross referenceing means we can detect whether a place from one
plugin/manager is already in another plugin/manager
Change-Id: Ice1834446a61e30e02f869e1d383f6d8698b8db6
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location/places/qplacematchreply.h')
-rw-r--r-- | src/location/places/qplacematchreply.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/location/places/qplacematchreply.h b/src/location/places/qplacematchreply.h new file mode 100644 index 00000000..7f499dd2 --- /dev/null +++ b/src/location/places/qplacematchreply.h @@ -0,0 +1,77 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the QtLocation module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** GNU Lesser General Public License Usage +** This file may be used under the terms of the GNU Lesser General Public +** License version 2.1 as published by the Free Software Foundation and +** appearing in the file LICENSE.LGPL included in the packaging of this +** file. Please review the following information to ensure the GNU Lesser +** General Public License version 2.1 requirements will be met: +** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU General +** Public License version 3.0 as published by the Free Software Foundation +** and appearing in the file LICENSE.GPL included in the packaging of this +** file. Please review the following information to ensure the GNU General +** Public License version 3.0 requirements will be met: +** http://www.gnu.org/copyleft/gpl.html. +** +** Other Usage +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef QPLACEMATCHREPLY_H +#define QPLACEMATCHREPLY_H + +#include "qplacereply.h" +#include "qplacematchrequest.h" + +QT_BEGIN_HEADER + +QT_BEGIN_NAMESPACE + +class QPlaceMatchReplyPrivate; +class Q_LOCATION_EXPORT QPlaceMatchReply : public QPlaceReply +{ + Q_OBJECT +public: + explicit QPlaceMatchReply(QObject *parent = 0); + ~QPlaceMatchReply(); + + QPlaceReply::Type type() const; + + QList<QPlace> places() const; + QPlaceMatchRequest request() const; + +protected: + void setPlaces(const QList<QPlace> &results); + void setRequest(const QPlaceMatchRequest &request); +private: + Q_DISABLE_COPY(QPlaceMatchReply) + Q_DECLARE_PRIVATE(QPlaceMatchReply) +}; + +QT_END_NAMESPACE + +QT_END_HEADER + +#endif |