client-cpp  0.7.0
kaa::EventTransport Class Reference

#include <EventTransport.hpp>

+ Inheritance diagram for kaa::EventTransport:
+ Collaboration diagram for kaa::EventTransport:

Public Member Functions

 EventTransport (IEventDataProcessor &eventManager, IKaaChannelManager &channelManager, IKaaClientStateStoragePtr state)
 
std::shared_ptr< EventSyncRequest > createEventRequest (std::int32_t requestId)
 
void onEventResponse (const EventSyncResponse &response)
 
void onSyncResponseId (std::int32_t requestId)
 
void sync ()
 
- Public Member Functions inherited from kaa::AbstractKaaTransport< TransportType::EVENT >
virtual ~AbstractKaaTransport ()
 
 AbstractKaaTransport (IKaaChannelManager &channelManager)
 
virtual void setClientState (IKaaClientStateStoragePtr status)
 
- Public Member Functions inherited from kaa::IKaaTransport
virtual ~IKaaTransport ()
 
- Public Member Functions inherited from kaa::IEventTransport
virtual ~IEventTransport ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 32 of file EventTransport.hpp.

Constructor & Destructor Documentation

kaa::EventTransport::EventTransport ( IEventDataProcessor eventManager,
IKaaChannelManager channelManager,
IKaaClientStateStoragePtr  state 
)

Member Function Documentation

std::shared_ptr<EventSyncRequest> kaa::EventTransport::createEventRequest ( std::int32_t  requestId)
virtual

Creates the Event request.

Returns
new Event request.
See also
EventSyncRequest

Implements kaa::IEventTransport.

void kaa::EventTransport::onEventResponse ( const EventSyncResponse &  response)
virtual

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

Parameters
responsethe response from the server.
See also
EventSyncResponse

Implements kaa::IEventTransport.

void kaa::EventTransport::onSyncResponseId ( std::int32_t  requestId)
virtual

Implements kaa::IEventTransport.

void kaa::EventTransport::sync ( )
virtual

Sets the specific IKaaChannelManager for the current transport.

Parameters
channelManagermanager to be set.

Implements kaa::IKaaTransport.


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