client-cpp  0.10.0
INotificationTransport.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 INOTIFICATIONTRANSPORT_HPP_
18 #define INOTIFICATIONTRANSPORT_HPP_
19 
20 #include <list>
21 #include <memory>
22 
23 #include "kaa/gen/EndpointGen.hpp"
24 
25 namespace kaa {
26 
27 typedef std::list<SubscriptionCommand> SubscriptionCommands;
28 typedef std::shared_ptr<NotificationSyncRequest> NotificationSyncRequestPtr;
29 
32 
37 public:
38 
47 
56 
64  virtual void onNotificationResponse(const NotificationSyncResponse& response) = 0;
65 
73  virtual void onSubscriptionChanged(SubscriptionCommands&& commands) = 0;
74 
82  virtual void setNotificationProcessor(INotificationProcessor* processor) = 0;
83 
85 };
86 
87 } /* namespace kaa */
88 
89 #endif /* INOTIFICATIONTRANSPORT_HPP_ */
virtual void onSubscriptionChanged(SubscriptionCommands &&commands)=0
The public interface to topic subscription and notification delivery subsystems.
virtual NotificationSyncRequestPtr createNotificationRequest()=0
virtual void setNotificationProcessor(INotificationProcessor *processor)=0
std::list< SubscriptionCommand > SubscriptionCommands
virtual void onNotificationResponse(const NotificationSyncResponse &response)=0
virtual NotificationSyncRequestPtr createEmptyNotificationRequest()=0
std::shared_ptr< NotificationSyncRequest > NotificationSyncRequestPtr