client-cpp  0.8.1
IUserAttachCallback.hpp
Go to the documentation of this file.
1 
17 #ifndef IUSERATTACHCALLBACK_HPP_
18 #define IUSERATTACHCALLBACK_HPP_
19 
20 #include <string>
21 #include <memory>
22 
23 #include "kaa/gen/EndpointGen.hpp"
24 
25 namespace kaa {
26 
32 public:
33 
37  virtual void onAttachSuccess() = 0;
38 
47  virtual void onAttachFailed(UserAttachErrorCode errorCode, const std::string& reason) = 0;
48 
49  virtual ~IUserAttachCallback() {}
50 };
51 
52 typedef std::shared_ptr<IUserAttachCallback> IUserAttachCallbackPtr;
53 
54 } /* namespace kaa */
55 
56 #endif /* IUSERATTACHCALLBACK_HPP_ */
virtual void onAttachSuccess()=0
Callback is used when the current endpoint has successfully attached itself to the user...
Interface to the listener notifies of the result of whether the current endpoint has successfully att...
virtual void onAttachFailed(UserAttachErrorCode errorCode, const std::string &reason)=0
Callback is used when the current endpoint has failed to attach itself to the user.
std::shared_ptr< IUserAttachCallback > IUserAttachCallbackPtr