Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qplacereply.cpp
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#include "qplacereply.h"
5#include "qplacereply_p.h"
6
8
85 : QObject(parent),d_ptr(new QPlaceReplyPrivate)
86{
87}
88
93 : QObject(parent),d_ptr(dd)
94{
95}
96
101{
102 if (!isFinished()) {
103 abort();
104 }
105 delete d_ptr;
106}
107
112{
113 return d_ptr->isFinished;
114}
115
123
129void QPlaceReply::setFinished(bool finished)
130{
132}
133
145
153{
154 return d_ptr->errorString;
155}
156
161{
162 return d_ptr->error;
163}
164
180{
181 emit aborted();
182}
183
\inmodule QtCore
Definition qobject.h:103
QPlaceReply::Error error
~QPlaceReply()
Destroys the reply object.
QPlaceReplyPrivate * d_ptr
Definition qplacereply.h:64
QPlaceReply::Error error() const
Returns the error code.
Type
Describes the reply's type.
Definition qplacereply.h:31
void finished()
This signal is emitted when this reply has finished processing.
virtual void abort()
Cancels the operation immediately.
Error
Describes an error which occurred during an operation.
Definition qplacereply.h:18
void aborted()
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.
virtual Type type() const
Returns the type of the reply.
bool isFinished() const
Return true if the reply has completed.
void setFinished(bool finished)
Sets the status of whether the reply is finished or not.
QPlaceReply(QObject *parent=nullptr)
Constructs a reply object with a given parent.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
DBusConnection const char DBusError * error
#define emit