30 #include <qobjectdefs.h>
32 #include "qtgrpcglobal.h"
35 namespace QtProtobuf {
37 class QGrpcStatusPrivate;
61 Q_PROPERTY(QString message READ message CONSTANT)
79 ResourceExhausted = 8,
80 FailedPrecondition = 9,
91 QGrpcStatus(StatusCode code = StatusCode::Ok,
const QString &message = QString());
97 StatusCode code()
const;
102 QString message()
const;
104 bool operator ==(StatusCode code)
const;
105 bool operator !=(StatusCode code)
const;
115 std::unique_ptr<QGrpcStatusPrivate> dPtr;
The QGrpcStatus class contains information about last gRPC operation.
Definition: qgrpcstatus.h:58
StatusCode
Channel's status codes.
Definition: qgrpcstatus.h:69