QtProtobuf  0.6
Protobuf plugin to generate Qt classes
Signals | Public Member Functions | Protected Member Functions | Friends | List of all members
QtProtobuf::QGrpcSubscription Class Referencefinal

The QGrpcSubscription class. More...

#include <qgrpcsubscription.h>

Inheritance diagram for QtProtobuf::QGrpcSubscription:
Inheritance graph
[legend]
Collaboration diagram for QtProtobuf::QGrpcSubscription:
Collaboration graph
[legend]

Signals

void updated ()
 The signal is emitted when subscription received updated value from server.
 

Public Member Functions

void cancel ()
 Cancels this subscription and try to abort call in channel.
 
QString method () const
 Returns method for this subscription.
 
QByteArray arg () const
 Returns serialized arguments for this subscription.
 
void handler (const QByteArray &data)
 Invokes handler method assigned to this subscription. More...
 

Protected Member Functions

bool operator== (const QGrpcSubscription &other) const
 

Friends

class QAbstractGrpcClient
 

Detailed Description

The QGrpcSubscription class.

Member Function Documentation

◆ handler()

void QtProtobuf::QGrpcSubscription::handler ( const QByteArray &  data)
inline

Invokes handler method assigned to this subscription.

Parameters
dataupdated subscription data buffer

Should be used by QAbstractGrpcChannel implementations, to update data in subscription and notify clients about subscription updates.


The documentation for this class was generated from the following files: