client-cpp  0.10.0
kaa::NotificationTransport Class Reference

#include <NotificationTransport.hpp>

+ Inheritance diagram for kaa::NotificationTransport:
+ Collaboration diagram for kaa::NotificationTransport:

Public Member Functions

 NotificationTransport (IKaaChannelManager &manager, IKaaClientContext &context)
 
virtual NotificationSyncRequestPtr createEmptyNotificationRequest ()
 
virtual NotificationSyncRequestPtr createNotificationRequest ()
 
virtual void onNotificationResponse (const NotificationSyncResponse &response)
 
virtual void onSubscriptionChanged (SubscriptionCommands &&commands)
 
virtual void setNotificationProcessor (INotificationProcessor *processor)
 
virtual void sync ()
 
- Public Member Functions inherited from kaa::AbstractKaaTransport< TransportType::NOTIFICATION >
virtual ~AbstractKaaTransport ()
 
 AbstractKaaTransport (IKaaChannelManager &channelManager, IKaaClientContext &context)
 
- Public Member Functions inherited from kaa::IKaaTransport
virtual ~IKaaTransport ()
 
- Public Member Functions inherited from kaa::INotificationTransport
virtual ~INotificationTransport ()
 

Additional Inherited Members

- Protected Member Functions inherited from kaa::AbstractKaaTransport< TransportType::NOTIFICATION >
void syncByType (TransportType transportType=Type)
 
void syncAll ()
 
void syncAck (TransportType transportType=Type)
 
- Protected Attributes inherited from kaa::AbstractKaaTransport< TransportType::NOTIFICATION >
const TransportType type_
 
IKaaChannelManagerchannelManager_
 
IKaaClientContextcontext_
 

Detailed Description

Definition at line 35 of file NotificationTransport.hpp.

Constructor & Destructor Documentation

kaa::NotificationTransport::NotificationTransport ( IKaaChannelManager manager,
IKaaClientContext context 
)

Member Function Documentation

virtual NotificationSyncRequestPtr kaa::NotificationTransport::createEmptyNotificationRequest ( )
virtual

Creates a new empty Notification request.

Returns
new empty Notification request.
See Also
NotificationSyncRequest

Implements kaa::INotificationTransport.

virtual NotificationSyncRequestPtr kaa::NotificationTransport::createNotificationRequest ( )
virtual

Creates a new Notification request.

Returns
new Notification request.
See Also
NotificationSyncRequest

Implements kaa::INotificationTransport.

virtual void kaa::NotificationTransport::onNotificationResponse ( const NotificationSyncResponse &  response)
virtual

Updates the state of the Notification manager according to the given response.

Parameters
responsethe response from the server.
See Also
NotificationSyncResponse

Implements kaa::INotificationTransport.

virtual void kaa::NotificationTransport::onSubscriptionChanged ( SubscriptionCommands &&  commands)
virtual

Updates the subscription state of optional topic

Parameters
commandsthe info about optional topic subscription.
See Also
SubscriptionCommand
SubscriptionCommands

Implements kaa::INotificationTransport.

virtual void kaa::NotificationTransport::setNotificationProcessor ( INotificationProcessor processor)
inlinevirtual

Sets the given Notification processor.

Parameters
processorthe Notification processor which to be set.
See Also
INotificationProcessor

Implements kaa::INotificationTransport.

Definition at line 49 of file NotificationTransport.hpp.

virtual void kaa::NotificationTransport::sync ( )
inlinevirtual

Sets the specific IKaaChannelManager for the current transport.

Parameters
channelManagermanager to be set.

Implements kaa::IKaaTransport.

Definition at line 55 of file NotificationTransport.hpp.


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