blob: 6a937a8f03679ba57b933d1da7c26ad79393b172 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright (C) 2022 The Qt Company Ltd.
// Copyright (C) 2019 Alexey Edelev <semlanik@gmail.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef QGRPCCALLREPLY_H
#define QGRPCCALLREPLY_H
#include <QtGrpc/qgrpcoperation.h>
#include <QtGrpc/qgrpcoperationcontext.h>
#include <QtGrpc/qgrpcstatus.h>
#include <QtGrpc/qtgrpcglobal.h>
#include <QtCore/qobject.h>
#include <memory>
QT_BEGIN_NAMESPACE
class QAbstractGrpcChannel;
class Q_GRPC_EXPORT QGrpcCallReply final : public QGrpcOperation
{
Q_OBJECT
QT_DEFINE_TAG_STRUCT(PrivateConstructor);
public:
explicit QGrpcCallReply(const QLatin1StringView service, const QLatin1StringView method,
const QGrpcCallOptions &options,
const std::weak_ptr<QAbstractGrpcChannel> &channel, PrivateConstructor);
~QGrpcCallReply() override;
private:
Q_DISABLE_COPY_MOVE(QGrpcCallReply)
friend class QGrpcClientBasePrivate;
public:
bool event(QEvent *event) override;
};
QT_END_NAMESPACE
#endif // QGRPCCALLREPLY_H
|