client-cpp  0.10.0
IEndpointRegistrationManager.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2016 CyberVision, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
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