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
4#ifndef QPLACEREPLY_H
5#define QPLACEREPLY_H
6
7#include <QtCore/QMetaType>
8#include <QtCore/QObject>
9#include <QtLocation/qlocationglobal.h>
10
12
13class QPlaceReplyPrivate;
14class Q_LOCATION_EXPORT QPlaceReply : public QObject
15{
16 Q_OBJECT
17public:
18 enum Error {
19 NoError,
20 PlaceDoesNotExistError,
21 CategoryDoesNotExistError,
22 CommunicationError,
23 ParseError,
24 PermissionsError,
25 UnsupportedError,
26 BadArgumentError,
27 CancelError,
28 UnknownError
29 };
30
31 enum Type {
32 Reply,
33 DetailsReply,
34 SearchReply,
35 SearchSuggestionReply,
36 ContentReply,
37 IdReply,
38 MatchReply
39 };
40
41 explicit QPlaceReply(QObject *parent = nullptr);
42 ~QPlaceReply();
43
44 bool isFinished() const;
45
46 virtual Type type() const;
47
48 QString errorString() const;
49 QPlaceReply::Error error() const;
50
51public Q_SLOTS:
52 virtual void abort();
53
54Q_SIGNALS:
55 void finished();
56 void contentUpdated();
57 void aborted();
58 void errorOccurred(QPlaceReply::Error error, const QString &errorString = QString());
59
60protected:
61 explicit QPlaceReply(QPlaceReplyPrivate *, QObject *parent = nullptr);
62 void setFinished(bool finished);
63 void setError(QPlaceReply::Error error, const QString &errorString);
64 QPlaceReplyPrivate *d_ptr;
65
66private:
67 Q_DISABLE_COPY(QPlaceReply)
68};
69
70QT_END_NAMESPACE
71
72Q_DECLARE_METATYPE(QPlaceReply::Error)
73Q_DECLARE_METATYPE(QPlaceReply *)
74
75#endif // QPLACEREPLY_H
QPlaceContent::Collection contentCollection
QPlaceContentRequest contentRequest
QPlaceContentRequest nextPageRequest
QPlaceContentRequest previousPageRequest
\inmodule QtLocation
\inmodule QtLocation
Definition qplacereply.h:15