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
unsupportedreplies_p.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 UNSUPPORTEDREPLIES_P_H
6#define UNSUPPORTEDREPLIES_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtLocation/private/qlocationglobal_p.h>
24#include "qplaceidreply.h"
25
28
30
31class Q_LOCATION_EXPORT QPlaceDetailsReplyUnsupported : public QPlaceDetailsReply
32{
33 Q_OBJECT
34
35public:
36 QPlaceDetailsReplyUnsupported(QPlaceManagerEngine *parent)
37 : QPlaceDetailsReply(parent)
38 {
39 setError(QPlaceReply::UnsupportedError,
40 QStringLiteral("Getting place details is not supported."));
41 setFinished(true);
42 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
43 Q_ARG(QPlaceReply::Error, error()),
44 Q_ARG(QString, errorString()));
45 QMetaObject::invokeMethod(parent, "errorOccurred", Qt::QueuedConnection,
46 Q_ARG(QPlaceReply *, this),
47 Q_ARG(QPlaceReply::Error, error()),
48 Q_ARG(QString, errorString()));
49 QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection);
50 QMetaObject::invokeMethod(parent, "finished", Qt::QueuedConnection,
51 Q_ARG(QPlaceReply *, this));
52 }
53};
54
55class Q_LOCATION_EXPORT QPlaceContentReplyUnsupported : public QPlaceContentReply
56{
57 Q_OBJECT
58
59public:
60 QPlaceContentReplyUnsupported(QPlaceManagerEngine *parent)
61 : QPlaceContentReply(parent)
62 {
63 setError(QPlaceReply::UnsupportedError,
64 QStringLiteral("Place content is not supported."));
65 setFinished(true);
66 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
67 Q_ARG(QPlaceReply::Error, error()),
68 Q_ARG(QString, errorString()));
69 QMetaObject::invokeMethod(parent, "errorOccurred", Qt::QueuedConnection,
70 Q_ARG(QPlaceReply *, this),
71 Q_ARG(QPlaceReply::Error, error()),
72 Q_ARG(QString, errorString()));
73 QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection);
74 QMetaObject::invokeMethod(parent, "finished", Qt::QueuedConnection,
75 Q_ARG(QPlaceReply *, this));
76 }
77};
78
79class Q_LOCATION_EXPORT QPlaceSearchReplyUnsupported : public QPlaceSearchReply
80{
81 Q_OBJECT
82
83public:
84 QPlaceSearchReplyUnsupported(QPlaceReply::Error errorCode, const QString &message,
85 QPlaceManagerEngine *parent)
86 : QPlaceSearchReply(parent)
87 {
88 setError(errorCode, message);
89 setFinished(true);
90 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
91 Q_ARG(QPlaceReply::Error, error()),
92 Q_ARG(QString, errorString()));
93 QMetaObject::invokeMethod(parent, "errorOccurred", Qt::QueuedConnection,
94 Q_ARG(QPlaceReply *, this),
95 Q_ARG(QPlaceReply::Error, error()),
96 Q_ARG(QString, errorString()));
97 QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection);
98 QMetaObject::invokeMethod(parent, "finished", Qt::QueuedConnection,
99 Q_ARG(QPlaceReply *, this));
100 }
101};
102
103class Q_LOCATION_EXPORT QPlaceSearchSuggestionReplyUnsupported : public QPlaceSearchSuggestionReply
104{
105 Q_OBJECT
106
107public:
108 QPlaceSearchSuggestionReplyUnsupported(QPlaceManagerEngine *parent)
109 : QPlaceSearchSuggestionReply(parent)
110 {
111 setError(QPlaceReply::UnsupportedError,
112 QStringLiteral("Place search suggestions are not supported."));
113 setFinished(true);
114 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
115 Q_ARG(QPlaceReply::Error, error()),
116 Q_ARG(QString, errorString()));
117 QMetaObject::invokeMethod(parent, "errorOccurred", Qt::QueuedConnection,
118 Q_ARG(QPlaceReply *, this),
119 Q_ARG(QPlaceReply::Error, error()),
120 Q_ARG(QString, errorString()));
121 QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection);
122 QMetaObject::invokeMethod(parent, "finished", Qt::QueuedConnection,
123 Q_ARG(QPlaceReply *, this));
124 }
125};
126
127class Q_LOCATION_EXPORT QPlaceIdReplyUnsupported : public QPlaceIdReply
128{
129 Q_OBJECT
130
131public:
132 QPlaceIdReplyUnsupported(const QString &message, QPlaceIdReply::OperationType type,
133 QPlaceManagerEngine *parent)
134 : QPlaceIdReply(type, parent)
135 {
136 setError(QPlaceReply::UnsupportedError, message);
137 setFinished(true);
138 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
139 Q_ARG(QPlaceReply::Error, error()),
140 Q_ARG(QString, errorString()));
141 QMetaObject::invokeMethod(parent, "errorOccurred", Qt::QueuedConnection,
142 Q_ARG(QPlaceReply *, this),
143 Q_ARG(QPlaceReply::Error, error()),
144 Q_ARG(QString, errorString()));
145 QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection);
146 QMetaObject::invokeMethod(parent, "finished", Qt::QueuedConnection,
147 Q_ARG(QPlaceReply *, this));
148 }
149};
150
151class Q_LOCATION_EXPORT QPlaceReplyUnsupported : public QPlaceReply
152{
153 Q_OBJECT
154
155public:
156 QPlaceReplyUnsupported(const QString &message, QPlaceManagerEngine *parent)
157 : QPlaceReply(parent)
158 {
159 setError(QPlaceReply::UnsupportedError, message);
160 setFinished(true);
161 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
162 Q_ARG(QPlaceReply::Error, error()),
163 Q_ARG(QString, errorString()));
164 QMetaObject::invokeMethod(parent, "errorOccurred", Qt::QueuedConnection,
165 Q_ARG(QPlaceReply *, this),
166 Q_ARG(QPlaceReply::Error, error()),
167 Q_ARG(QString, errorString()));
168 QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection);
169 QMetaObject::invokeMethod(parent, "finished", Qt::QueuedConnection,
170 Q_ARG(QPlaceReply *, this));
171 }
172};
173
174class Q_LOCATION_EXPORT QPlaceMatchReplyUnsupported : public QPlaceMatchReply
175{
176 Q_OBJECT
177
178public:
179 QPlaceMatchReplyUnsupported(QPlaceManagerEngine *parent)
180 : QPlaceMatchReply(parent)
181 {
182 setError(QPlaceReply::UnsupportedError,
183 QStringLiteral("Place matching is not supported."));
184 setFinished(true);
185 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
186 Q_ARG(QPlaceReply::Error, error()),
187 Q_ARG(QString, errorString()));
188 QMetaObject::invokeMethod(parent, "errorOccurred", Qt::QueuedConnection,
189 Q_ARG(QPlaceReply *, this),
190 Q_ARG(QPlaceReply::Error, error()),
191 Q_ARG(QString, errorString()));
192 QMetaObject::invokeMethod(this, "finished", Qt::QueuedConnection);
193 QMetaObject::invokeMethod(parent, "finished", Qt::QueuedConnection,
194 Q_ARG(QPlaceReply *, this));
195 }
196};
197
198QT_END_NAMESPACE
199
200#endif
Combined button and popup list for selecting options.