client-cpp  0.7.0
kaa::UserTransport Class Reference

#include <UserTransport.hpp>

+ Inheritance diagram for kaa::UserTransport:
+ Collaboration diagram for kaa::UserTransport:

Public Member Functions

 UserTransport (IRegistrationProcessor &manager, IKaaChannelManager &channelManager)
 
std::shared_ptr< UserSyncRequest > createUserRequest ()
 
void onUserResponse (const UserSyncResponse &response)
 
void sync ()
 
void syncProfile ()
 
- Public Member Functions inherited from kaa::AbstractKaaTransport< TransportType::USER >
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::IUserTransport
virtual ~IUserTransport ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 28 of file UserTransport.hpp.

Constructor & Destructor Documentation

kaa::UserTransport::UserTransport ( IRegistrationProcessor manager,
IKaaChannelManager channelManager 
)

Member Function Documentation

std::shared_ptr<UserSyncRequest> kaa::UserTransport::createUserRequest ( )
virtual

Creates new User update request.

Returns
new User update request.
See also
UserSyncRequest

Implements kaa::IUserTransport.

void kaa::UserTransport::onUserResponse ( const UserSyncResponse &  response)
virtual

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

Parameters
responsethe response from the server.
See also
UserSyncResponse

Implements kaa::IUserTransport.

void kaa::UserTransport::sync ( )
virtual

Sets the specific IKaaChannelManager for the current transport.

Parameters
channelManagermanager to be set.

Implements kaa::IKaaTransport.

void kaa::UserTransport::syncProfile ( )

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