client-cpp  0.7.0
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 {
35 public:
36 
45  virtual void setChannel(TransportType type, IDataChannelPtr channel) = 0;
46 
54  virtual void addChannel(IDataChannelPtr channel) = 0;
55 
63  virtual void removeChannel(const std::string& id) = 0;
64 
72  virtual void removeChannel(IDataChannelPtr channel) = 0;
73 
81  virtual std::list<IDataChannelPtr> getChannels() = 0;
82 
94 
104  virtual IDataChannelPtr getChannel(const std::string& channelId) = 0;
105 
113  virtual void onServerFailed(ITransportConnectionInfoPtr connectionInfo) = 0;
114 
122  virtual void onTransportConnectionInfoUpdated(ITransportConnectionInfoPtr connectionInfo) = 0;
123 
127  virtual void clearChannelList() = 0;
128 
136  virtual void setConnectivityChecker(ConnectivityCheckerPtr checker) = 0;
137 
142  virtual void shutdown() = 0;
143 
148  virtual void pause() = 0;
149 
154  virtual void resume() = 0;
155 
156  virtual ~IKaaChannelManager() {}
157 };
158 
160 
161 } // namespace kaa
162 
163 
164 #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
IKaaChannelManager * IKaaChannelManagerPtr
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