summaryrefslogtreecommitdiff
path: root/src/location/places/qplacesearchsuggestionreply.h
blob: 953d995814d51a19c6503062cebe846905fec0c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (C) 2015 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#ifndef QPLACESEARCHSUGGESTIONREPLY_H
#define QPLACESEARCHSUGGESTIONREPLY_H

#include <QtLocation/QPlaceReply>

#include <QtCore/QStringList>

QT_BEGIN_NAMESPACE

class QPlaceSearchSuggestionReplyPrivate;

class Q_LOCATION_EXPORT QPlaceSearchSuggestionReply : public QPlaceReply
{
    Q_OBJECT
public:
    explicit QPlaceSearchSuggestionReply(QObject *parent = nullptr);
    ~QPlaceSearchSuggestionReply();

    QStringList suggestions() const;
    Type type() const override;

protected:
    void setSuggestions(const QStringList &suggestions);

private:
    Q_DISABLE_COPY(QPlaceSearchSuggestionReply)
    Q_DECLARE_PRIVATE(QPlaceSearchSuggestionReply)
};

QT_END_NAMESPACE

#endif