client-cpp  0.6.3
IKaaChannelManager.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014 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 IKAACHANNELMANAGER_HPP_
18 #define IKAACHANNELMANAGER_HPP_
19 
20 #include <list>
21 
25 
26 namespace kaa {
27 
28 class IIServerInfo;
29 
34 public:
35 
44  virtual void setChannel(TransportType type, IDataChannelPtr channel) = 0;
45 
53  virtual void addChannel(IDataChannelPtr channel) = 0;
54 
62  virtual void removeChannel(const std::string& id) = 0;
63 
71  virtual void removeChannel(IDataChannelPtr channel) = 0;
72 
80  virtual std::list<IDataChannelPtr> getChannels() = 0;
81 
93 
103  virtual IDataChannelPtr getChannel(const std::string& channelId) = 0;
104 
112  virtual void onServerFailed(ITransportConnectionInfoPtr connectionInfo) = 0;
113 
121  virtual void onTransportConnectionInfoUpdated(ITransportConnectionInfoPtr connectionInfo) = 0;
122 
126  virtual void clearChannelList() = 0;
127 
135  virtual void setConnectivityChecker(ConnectivityCheckerPtr checker) = 0;
136 
141  virtual void shutdown() = 0;
142 
147  virtual void pause() = 0;
148 
153  virtual void resume() = 0;
154 
155  virtual ~IKaaChannelManager() {}
156 };
157 
158 } // namespace kaa
159 
160 
161 #endif /* IKAACHANNELMANAGER_HPP_ */
virtual void onTransportConnectionInfoUpdated(ITransportConnectionInfoPtr connectionInfo)=0
virtual void setConnectivityChecker(ConnectivityCheckerPtr checker)=0
std::shared_ptr< IConnectivityChecker > ConnectivityCheckerPtr
virtual IDataChannelPtr getChannelByTransportType(TransportType type)=0
virtual void addChannel(IDataChannelPtr channel)=0
virtual void pause()=0
virtual void onServerFailed(ITransportConnectionInfoPtr connectionInfo)=0
virtual void clearChannelList()=0
virtual void removeChannel(const std::string &id)=0
virtual std::list< IDataChannelPtr > getChannels()=0
virtual IDataChannelPtr getChannel(const std::string &channelId)=0
virtual void shutdown()=0
virtual void setChannel(TransportType type, IDataChannelPtr channel)=0
virtual void resume()=0
std::shared_ptr< ITransportConnectionInfo > ITransportConnectionInfoPtr