Qt 6.x
The Qt SDK
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
4#ifndef UNSUPPORTEDREPLIES_P_H
5#define UNSUPPORTEDREPLIES_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtLocation/private/qlocationglobal_p.h>
19#include "qplacedetailsreply.h"
20#include "qplacecontentreply.h"
21#include "qplacesearchreply.h"
23#include "qplaceidreply.h"
24
25#include "qplacematchreply.h"
26#include "qplacemanagerengine.h"
27
28class Q_LOCATION_PRIVATE_EXPORT QPlaceDetailsReplyUnsupported : public QPlaceDetailsReply
29{
31
32public:
35 {
37 QStringLiteral("Getting place details is not supported."));
38 setFinished(true);
43 Q_ARG(QPlaceReply *, this),
48 Q_ARG(QPlaceReply *, this));
49 }
50};
51
52class Q_LOCATION_PRIVATE_EXPORT QPlaceContentReplyUnsupported : public QPlaceContentReply
53{
55
56public:
59 {
61 QStringLiteral("Place content is not supported."));
62 setFinished(true);
67 Q_ARG(QPlaceReply *, this),
72 Q_ARG(QPlaceReply *, this));
73 }
74};
75
76class Q_LOCATION_PRIVATE_EXPORT QPlaceSearchReplyUnsupported : public QPlaceSearchReply
77{
79
80public:
84 {
85 setError(errorCode, message);
86 setFinished(true);
91 Q_ARG(QPlaceReply *, this),
96 Q_ARG(QPlaceReply *, this));
97 }
98};
99
101{
103
104public:
107 {
109 QStringLiteral("Place search suggestions are not supported."));
110 setFinished(true);
111 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
115 Q_ARG(QPlaceReply *, this),
120 Q_ARG(QPlaceReply *, this));
121 }
122};
123
124class Q_LOCATION_PRIVATE_EXPORT QPlaceIdReplyUnsupported : public QPlaceIdReply
125{
127
128public:
132 {
134 setFinished(true);
135 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
139 Q_ARG(QPlaceReply *, this),
144 Q_ARG(QPlaceReply *, this));
145 }
146};
147
148class Q_LOCATION_PRIVATE_EXPORT QPlaceReplyUnsupported : public QPlaceReply
149{
151
152public:
155 {
157 setFinished(true);
158 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
162 Q_ARG(QPlaceReply *, this),
167 Q_ARG(QPlaceReply *, this));
168 }
169};
170
171class Q_LOCATION_PRIVATE_EXPORT QPlaceMatchReplyUnsupported : public QPlaceMatchReply
172{
174
175public:
178 {
180 QStringLiteral("Place matching is not supported."));
181 setFinished(true);
182 QMetaObject::invokeMethod(this, "errorOccurred", Qt::QueuedConnection,
186 Q_ARG(QPlaceReply *, this),
191 Q_ARG(QPlaceReply *, this));
192 }
193};
194
195#endif
QPlaceContentReplyUnsupported(QPlaceManagerEngine *parent)
\inmodule QtLocation
QPlaceDetailsReplyUnsupported(QPlaceManagerEngine *parent)
\inmodule QtLocation
QPlaceIdReplyUnsupported(const QString &message, QPlaceIdReply::OperationType type, QPlaceManagerEngine *parent)
\inmodule QtLocation
OperationType
Defines the type of operation that was used to generate this reply.
\inmodule QtLocation
QPlaceMatchReplyUnsupported(QPlaceManagerEngine *parent)
\inmodule QtLocation
QPlaceReplyUnsupported(const QString &message, QPlaceManagerEngine *parent)
\inmodule QtLocation
Definition qplacereply.h:15
QPlaceReply::Error error() const
Returns the error code.
Error
Describes an error which occurred during an operation.
Definition qplacereply.h:18
QString errorString() const
Returns the error string of the reply.
void setError(QPlaceReply::Error error, const QString &errorString)
Sets the error and errorString of the reply.
void setFinished(bool finished)
Sets the status of whether the reply is finished or not.
QPlaceSearchReplyUnsupported(QPlaceReply::Error errorCode, const QString &message, QPlaceManagerEngine *parent)
\inmodule QtLocation
QPlaceSearchSuggestionReplyUnsupported(QPlaceManagerEngine *parent)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
@ QueuedConnection
#define Q_ARG(Type, data)
Definition qobjectdefs.h:62
GLenum type
GLuint GLsizei const GLchar * message
#define QStringLiteral(str)
#define Q_OBJECT
static bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType, QGenericReturnArgument ret, QGenericArgument val0=QGenericArgument(nullptr), QGenericArgument val1=QGenericArgument(), QGenericArgument val2=QGenericArgument(), QGenericArgument val3=QGenericArgument(), QGenericArgument val4=QGenericArgument(), QGenericArgument val5=QGenericArgument(), QGenericArgument val6=QGenericArgument(), QGenericArgument val7=QGenericArgument(), QGenericArgument val8=QGenericArgument(), QGenericArgument val9=QGenericArgument())
\threadsafe This is an overloaded member function, provided for convenience. It differs from the abov...
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent