client-cpp  0.8.1
IProfileTransport.hpp
Go to the documentation of this file.
1 
17 #ifndef IPROFILETRANSPORT_HPP_
18 #define IPROFILETRANSPORT_HPP_
19 
20 #include <memory>
21 
22 #include "kaa/gen/EndpointGen.hpp"
23 
24 namespace kaa {
25 
27 
28 typedef std::shared_ptr<ProfileSyncRequest> ProfileSyncRequestPtr;
29 
34 {
35 public:
36 
45 
53  virtual void onProfileResponse(const ProfileSyncResponse& response) = 0;
54 
63  virtual void setProfileManager(IProfileManager* manager) = 0;
64 
68  virtual void sync() = 0;
69 
70  virtual ~IProfileTransport() {}
71 };
72 
73 typedef std::shared_ptr<IProfileTransport> IProfileTransportPtr;
74 
75 } /* namespace kaa */
76 
77 #endif /* IPROFILETRANSPORT_HPP_ */
virtual ProfileSyncRequestPtr createProfileRequest()=0
virtual void onProfileResponse(const ProfileSyncResponse &response)=0
virtual void setProfileManager(IProfileManager *manager)=0
std::shared_ptr< IProfileTransport > IProfileTransportPtr
std::shared_ptr< ProfileSyncRequest > ProfileSyncRequestPtr
virtual void sync()=0