Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qplacereply.h
Go to the documentation of this file.
1// Copyright (C) 2015 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QPLACEREPLY_H
6#define QPLACEREPLY_H
7
8#include <QtCore/QMetaType>
9#include <QtCore/QObject>
10#include <QtLocation/qlocationglobal.h>
11
13
14class QPlaceReplyPrivate;
15class Q_LOCATION_EXPORT QPlaceReply : public QObject
16{
17 Q_OBJECT
18public:
19 enum Error {
20 NoError,
21 PlaceDoesNotExistError,
22 CategoryDoesNotExistError,
23 CommunicationError,
24 ParseError,
25 PermissionsError,
26 UnsupportedError,
27 BadArgumentError,
28 CancelError,
29 UnknownError
30 };
31
32 enum Type {
33 Reply,
34 DetailsReply,
35 SearchReply,
36 SearchSuggestionReply,
37 ContentReply,
38 IdReply,
39 MatchReply
40 };
41
42 explicit QPlaceReply(QObject *parent = nullptr);
43 ~QPlaceReply();
44
45 bool isFinished() const;
46
47 virtual Type type() const;
48
49 QString errorString() const;
50 QPlaceReply::Error error() const;
51
52public Q_SLOTS:
53 virtual void abort();
54
55Q_SIGNALS:
56 void finished();
57 void contentUpdated();
58 void aborted();
59 void errorOccurred(QPlaceReply::Error error, const QString &errorString = QString());
60
61protected:
62 explicit QPlaceReply(QPlaceReplyPrivate *, QObject *parent = nullptr);
63 void setFinished(bool finished);
64 void setError(QPlaceReply::Error error, const QString &errorString);
65 QPlaceReplyPrivate *d_ptr;
66
67private:
68 Q_DISABLE_COPY(QPlaceReply)
69};
70
71QT_END_NAMESPACE
72
73Q_DECLARE_METATYPE(QPlaceReply::Error)
74Q_DECLARE_METATYPE(QPlaceReply *)
75
76#endif // QPLACEREPLY_H
QPlaceContent::Collection contentCollection
QPlaceContentRequest contentRequest
QPlaceContentRequest nextPageRequest
QPlaceContentRequest previousPageRequest
\inmodule QtLocation
\inmodule QtLocation
Definition qplacereply.h:16
Combined button and popup list for selecting options.