client-cpp  0.0.1-SNAPSHOT
kaa::INotificationManager Class Referenceabstract

#include <INotificationManager.hpp>

+ Inheritance diagram for kaa::INotificationManager:

Public Member Functions

virtual void addMandatoryTopicsListener (INotificationListener *listener)=0
 
virtual void removeMandatoryTopicsListener (INotificationListener *listener)=0
 
virtual void addTopicsListener (INotificationTopicsListener *listener)=0
 
virtual void removeTopicsListener (INotificationTopicsListener *listener)=0
 
virtual void updateTopicSubscriptions (const TopicSubscribers &subscribers)=0
 
virtual const std::map
< std::string, Topic > & 
getTopics ()=0
 
virtual ~INotificationManager ()
 

Detailed Description

Interface for the notification manager Responsible for the subscription of custom listeners on topic updates

Definition at line 46 of file INotificationManager.hpp.

Constructor & Destructor Documentation

virtual kaa::INotificationManager::~INotificationManager ( )
inlinevirtual

Definition at line 109 of file INotificationManager.hpp.

Member Function Documentation

virtual void kaa::INotificationManager::addMandatoryTopicsListener ( INotificationListener listener)
pure virtual

Registers listener for all mandatory topics' updates. If there is no specific listener for some mandatory topic, notifications with that topic will be caught by this handler.

Parameters
listenerthe listener to receive notification.
See also
AbstractNotificationListener

Implemented in kaa::NotificationManager.

virtual void kaa::INotificationManager::addTopicsListener ( INotificationTopicsListener listener)
pure virtual

Adds listener of topics' list updates.

Parameters
listenerthe listener to receive updates.
See also
NotificationTopicListListener

Implemented in kaa::NotificationManager.

virtual const std::map<std::string, Topic>& kaa::INotificationManager::getTopics ( )
pure virtual

Retrieves the current set of topics.

Returns
the set of "topic's id/topic" pairs.
See also
Topic

Implemented in kaa::NotificationManager.

virtual void kaa::INotificationManager::removeMandatoryTopicsListener ( INotificationListener listener)
pure virtual

Removes listener of mandatory topics' updates.

Parameters
listenerthe listener which is no longer needs updates.
See also
AbstractNotificationListener

Implemented in kaa::NotificationManager.

virtual void kaa::INotificationManager::removeTopicsListener ( INotificationTopicsListener listener)
pure virtual

Removes listener of topics' list updates.

Parameters
listenerlistener the listener which is no longer needs updates.
See also
NotificationTopicListListener

Implemented in kaa::NotificationManager.

virtual void kaa::INotificationManager::updateTopicSubscriptions ( const TopicSubscribers subscribers)
pure virtual

Updates (subscribes/unsubscribes) info about topic's subscriptions. May consist of several subscribers for the same topic.

Exceptions
KaaExceptionwhen topic isn't found or bad subscription info was passed (empty id or null subscriber).
Parameters
subscriberscollections of pairs topic id/subscriber info.
See also
NotificationListenerInfo

Implemented in kaa::NotificationManager.


The documentation for this class was generated from the following file: