client-cpp  0.7.0
INotificationListener.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2015 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 INOTIFICATIONLISTENER_HPP_
18 #define INOTIFICATIONLISTENER_HPP_
19 
20 #include <string>
21 
22 #include "kaa/notification/gen/NotificationDefinitions.hpp"
23 
24 namespace kaa {
25 
33 public:
41  virtual void onNotification(const std::string& topicId, const KaaNotification& notification) = 0;
42 
44 };
45 
46 } /* namespace kaa */
47 
48 #endif /* INOTIFICATIONLISTENER_HPP_ */
The listener which receives notifications on the specified topic.
virtual void onNotification(const std::string &topicId, const KaaNotification &notification)=0
Callback is used when the new notification on the specified topic is received.