client-cpp  0.8.1
ConfigurationTransport.hpp
Go to the documentation of this file.
1 
17 #ifndef CONFIGURATIONTRANSPORT_HPP_
18 #define CONFIGURATIONTRANSPORT_HPP_
19 
20 #include "kaa/KaaDefaults.hpp"
21 
26 
27 namespace kaa {
28 
29 class IKaaChannelManager;
30 class IConfigurationProcessor;
31 class IConfigurationHashContainer;
32 
33 class ConfigurationTransport : public AbstractKaaTransport<TransportType::CONFIGURATION>,
35 public:
37 
38  virtual void sync();
39 
40  virtual std::shared_ptr<ConfigurationSyncRequest> createConfigurationRequest();
41  virtual void onConfigurationResponse(const ConfigurationSyncResponse &response);
42 
44  {
45  hashContainer_ = container;
46  }
47 
49  {
50  configurationProcessor_ = processor;
51  }
52 
53 private:
54  IConfigurationProcessor *configurationProcessor_;
55  IConfigurationHashContainer *hashContainer_;
56 };
57 
58 } // namespace kaa
59 
60 #endif /* CONFIGURATIONTRANSPORT_HPP_ */
virtual void setConfigurationProcessor(IConfigurationProcessor *processor)
virtual void onConfigurationResponse(const ConfigurationSyncResponse &response)
ConfigurationTransport(IKaaChannelManager &channelManager, IKaaClientContext &context)
virtual std::shared_ptr< ConfigurationSyncRequest > createConfigurationRequest()
virtual void setConfigurationHashContainer(IConfigurationHashContainer *container)