mirror of https://github.com/qt/qtgrpc.git
QGrpcCallOptions: rework header usage and make the PIMPL a class
Pick-to: 6.7 Change-Id: Ifc361e2b068ead91f683d38a2add9087365cd670 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
fb14a2fe6a
commit
baaf342e26
|
|
@ -1,9 +1,8 @@
|
|||
// Copyright (C) 2023 The Qt Company Ltd.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
||||
|
||||
#include <qtgrpcglobal_p.h>
|
||||
|
||||
#include "qgrpccalloptions.h"
|
||||
#include <QtGrpc/private/qtgrpcglobal_p.h>
|
||||
#include <QtGrpc/qgrpccalloptions.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
|
@ -19,7 +18,7 @@ using namespace Qt::StringLiterals;
|
|||
that are used by gRPC channels to communicate with the services.
|
||||
*/
|
||||
|
||||
struct QGrpcCallOptionsPrivate
|
||||
class QGrpcCallOptionsPrivate
|
||||
{
|
||||
public:
|
||||
std::optional<QGrpcDuration> deadline;
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
#ifndef QGRPCALLOPTIONS_H
|
||||
#define QGRPCALLOPTIONS_H
|
||||
|
||||
#include <QtCore/qurl.h>
|
||||
#include <QtGrpc/qgrpcdefs.h>
|
||||
#include <QtGrpc/qtgrpcglobal.h>
|
||||
|
||||
|
|
@ -13,7 +12,7 @@
|
|||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
struct QGrpcCallOptionsPrivate;
|
||||
class QGrpcCallOptionsPrivate;
|
||||
|
||||
class QGrpcCallOptions final
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue