Export only out-of-line members of the non-polymorphic QGrpcCallOptions

Task-number: QTBUG-123625
Change-Id: Id2531cdc2084d72e40f8ea15ee5da013a40e79c2
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
Alexey Edelev 2024-04-02 14:15:08 +02:00
parent d1c6989395
commit 8471792099
1 changed files with 12 additions and 12 deletions

View File

@ -16,23 +16,23 @@ QT_BEGIN_NAMESPACE
struct QGrpcCallOptionsPrivate;
class Q_GRPC_EXPORT QGrpcCallOptions final
class QGrpcCallOptions final
{
public:
QGrpcCallOptions();
~QGrpcCallOptions();
Q_GRPC_EXPORT QGrpcCallOptions();
Q_GRPC_EXPORT ~QGrpcCallOptions();
QGrpcCallOptions(const QGrpcCallOptions &other);
QGrpcCallOptions &operator=(const QGrpcCallOptions &other);
QGrpcCallOptions(QGrpcCallOptions &&other) noexcept;
QGrpcCallOptions &operator=(QGrpcCallOptions &&other) noexcept;
Q_GRPC_EXPORT QGrpcCallOptions(const QGrpcCallOptions &other);
Q_GRPC_EXPORT QGrpcCallOptions &operator=(const QGrpcCallOptions &other);
Q_GRPC_EXPORT QGrpcCallOptions(QGrpcCallOptions &&other) noexcept;
Q_GRPC_EXPORT QGrpcCallOptions &operator=(QGrpcCallOptions &&other) noexcept;
QGrpcCallOptions &withDeadline(std::chrono::milliseconds deadline);
QGrpcCallOptions &withMetadata(const QGrpcMetadata &metadata);
QGrpcCallOptions &withMetadata(QGrpcMetadata &&metadata) noexcept;
Q_GRPC_EXPORT QGrpcCallOptions &withDeadline(std::chrono::milliseconds deadline);
Q_GRPC_EXPORT QGrpcCallOptions &withMetadata(const QGrpcMetadata &metadata);
Q_GRPC_EXPORT QGrpcCallOptions &withMetadata(QGrpcMetadata &&metadata) noexcept;
[[nodiscard]] std::optional<std::chrono::milliseconds> deadline() const noexcept;
[[nodiscard]] const QGrpcMetadata &metadata() const noexcept;
[[nodiscard]] Q_GRPC_EXPORT std::optional<std::chrono::milliseconds> deadline() const noexcept;
[[nodiscard]] Q_GRPC_EXPORT const QGrpcMetadata &metadata() const noexcept;
private:
std::unique_ptr<QGrpcCallOptionsPrivate> dPtr;