client-cpp  0.8.1
LoggingTransport.hpp
Go to the documentation of this file.
1 
17 #ifndef LOGGINGTRANSPORT_HPP_
18 #define LOGGINGTRANSPORT_HPP_
19 
20 #include "kaa/KaaDefaults.hpp"
21 
25 
26 namespace kaa {
27 
28 class ILogProcessor;
29 
30 class LoggingTransport : public AbstractKaaTransport<TransportType::LOGGING>, public ILoggingTransport {
31 public:
32  LoggingTransport(IKaaChannelManager &manager, ILogProcessor& logProcessor, IKaaClientContext &context);
33 
34  virtual void sync();
35 
36  virtual std::shared_ptr<LogSyncRequest> createLogSyncRequest();
37  virtual void onLogSyncResponse(const LogSyncResponse& response);
38 
39 private:
40  ILogProcessor& logProcessor_;
41 };
42 
43 } // namespace kaa
44 
45 #endif /* LOGGINGTRANSPORT_HPP_ */
virtual void sync()
virtual void onLogSyncResponse(const LogSyncResponse &response)
LoggingTransport(IKaaChannelManager &manager, ILogProcessor &logProcessor, IKaaClientContext &context)
virtual std::shared_ptr< LogSyncRequest > createLogSyncRequest()