client-cpp  0.0.1-SNAPSHOT
INotificationManager.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 INOTIFICATIONMANAGER_HPP_
18 #define INOTIFICATIONMANAGER_HPP_
19 
20 #include <map>
21 #include <list>
22 #include <string>
23 
26 
27 namespace kaa {
28 
30  enum Action {
31  ADD = 0,
33  };
34 
37 };
38 
39 typedef std::list<std::string> TopicNames;
40 typedef std::multimap<std::string/*topic's id*/, TopicSubscriberInfo> TopicSubscribers;
41 
47 public:
48 
58  virtual void addMandatoryTopicsListener(INotificationListener* listener) = 0;
59 
67  virtual void removeMandatoryTopicsListener(INotificationListener* listener) = 0;
68 
76  virtual void addTopicsListener(INotificationTopicsListener* listener) = 0;
77 
85  virtual void removeTopicsListener(INotificationTopicsListener* listener) = 0;
86 
98  virtual void updateTopicSubscriptions(const TopicSubscribers& subscribers) = 0;
99 
107  virtual const std::map<std::string, Topic>& getTopics() = 0;
108 
110 };
111 
112 } /* namespace kaa */
113 
114 #endif /* INOTIFICATIONMANAGER_HPP_ */
virtual const std::map< std::string, Topic > & getTopics()=0
virtual void removeTopicsListener(INotificationTopicsListener *listener)=0
virtual void removeMandatoryTopicsListener(INotificationListener *listener)=0
std::multimap< std::string, TopicSubscriberInfo > TopicSubscribers
std::list< std::string > TopicNames
INotificationListener * lisnener_
virtual void updateTopicSubscriptions(const TopicSubscribers &subscribers)=0
virtual void addTopicsListener(INotificationTopicsListener *listener)=0
virtual void addMandatoryTopicsListener(INotificationListener *listener)=0