client-cpp  0.8.1
BootstrapTransport.hpp
Go to the documentation of this file.
1 
17 #ifndef BOOTSTRAPTRANSPORT_HPP_
18 #define BOOTSTRAPTRANSPORT_HPP_
19 
22 
23 namespace kaa {
24 
25 class IBootstrapManager;
26 class IKaaChannelManager;
27 struct BootstrapSyncRequest;
28 struct BootstrapSyncResponse;
29 
30 class BootstrapTransport : public AbstractKaaTransport<TransportType::BOOTSTRAP>
31  , public IBootstrapTransport
32 {
33 public:
34  BootstrapTransport(IKaaChannelManager& channelManager, IBootstrapManager &bootstrapManager, IKaaClientContext &context);
35 
36  virtual void sync();
37 
38  virtual std::shared_ptr<BootstrapSyncRequest> createBootstrapSyncRequest();
39  virtual void onBootstrapResponse(const BootstrapSyncResponse& response);
40 private:
41  std::uint32_t requestId_;
42 
43  IBootstrapManager & bootstrapManager_;
44 };
45 
46 } // namespace kaa
47 
48 
49 #endif /* BOOTSTRAPTRANSPORT_HPP_ */
BootstrapTransport(IKaaChannelManager &channelManager, IBootstrapManager &bootstrapManager, IKaaClientContext &context)
virtual std::shared_ptr< BootstrapSyncRequest > createBootstrapSyncRequest()
virtual void onBootstrapResponse(const BootstrapSyncResponse &response)