client-cpp  0.8.1
IEndpointRegistrationManager.hpp
Go to the documentation of this file.
1 
17 #ifndef IENDPOINTREGISTRATIONMANAGER_HPP_
18 #define IENDPOINTREGISTRATIONMANAGER_HPP_
19 
20 
21 #include <list>
22 #include <string>
23 
28 
29 namespace kaa {
30 
38 {
39 public:
40 
51  virtual void attachEndpoint(const std::string& endpointAccessToken
53 
64  virtual void detachEndpoint(const std::string& endpointKeyHash
66 
82  virtual void attachUser(const std::string& userExternalId
83  , const std::string& userAccessToken
85 
100  virtual void attachUser(const std::string& userExternalId
101  , const std::string& userAccessToken
102  , const std::string& userVerifierToken
104 
110  virtual void setAttachStatusListener(IAttachStatusListenerPtr listener) = 0;
111 
117  virtual bool isAttachedToUser() = 0;
118 
120 };
121 
122 }
123 
124 #endif /* IENDPOINTREGISTRATIONMANAGER_HPP_ */
virtual void attachEndpoint(const std::string &endpointAccessToken, IAttachEndpointCallbackPtr listener=IAttachEndpointCallbackPtr())=0
Attaches the specified endpoint to the user to which the current endpoint is attached.
virtual void detachEndpoint(const std::string &endpointKeyHash, IDetachEndpointCallbackPtr listener=IDetachEndpointCallbackPtr())=0
Detaches the specified endpoint from the user to which the current endpoint is attached.
std::shared_ptr< IDetachEndpointCallback > IDetachEndpointCallbackPtr
virtual void setAttachStatusListener(IAttachStatusListenerPtr listener)=0
Sets listener to notify of the current endpoint is attached/detached by another one.
std::shared_ptr< IAttachStatusListener > IAttachStatusListenerPtr
std::shared_ptr< IUserAttachCallback > IUserAttachCallbackPtr
virtual void attachUser(const std::string &userExternalId, const std::string &userAccessToken, IUserAttachCallbackPtr listener=IUserAttachCallbackPtr())=0
Attaches the current endpoint to the specifier user. The user verification is carried out by the defa...
virtual bool isAttachedToUser()=0
Checks if the current endpoint is already attached to some user.
The interface to a module which associates endpoints with users.
std::shared_ptr< IAttachEndpointCallback > IAttachEndpointCallbackPtr