util: replace EventEmitter with Signal in NotificationSubscriber
refs #2350
Breaks: nfd:commit:04cf5a99d93d8f64571753260e71ade90332f860
Breaks: nlsr:commit:c2e51f6b6b85a602275dd59bfaaa0fa0403e0978
Change-Id: I54e9b8b8f8d172826616b33e8363cd27a1c53917
diff --git a/src/util/notification-subscriber.hpp b/src/util/notification-subscriber.hpp
index 32d9d6a..ca997b7 100644
--- a/src/util/notification-subscriber.hpp
+++ b/src/util/notification-subscriber.hpp
@@ -1,6 +1,6 @@
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
- * Copyright (c) 2013-2014 Regents of the University of California.
+ * Copyright (c) 2013-2015 Regents of the University of California.
*
* This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
*
@@ -48,8 +48,8 @@
#ifndef NDN_UTIL_NOTIFICATION_SUBSCRIBER_HPP
#define NDN_UTIL_NOTIFICATION_SUBSCRIBER_HPP
-#include "event-emitter.hpp"
#include "../face.hpp"
+#include "signal.hpp"
#include "concepts.hpp"
#include <boost/concept_check.hpp>
@@ -135,15 +135,15 @@
/** \brief fires when a Notification is received
* \note Removing all handlers will cause the subscriber to stop.
*/
- EventEmitter<Notification> onNotification;
+ signal::Signal<NotificationSubscriber, Notification> onNotification;
/** \brief fires when no Notification is received within .getInterestLifetime period
*/
- EventEmitter<> onTimeout;
+ signal::Signal<NotificationSubscriber> onTimeout;
/** \brief fires when a Data packet in the Notification Stream cannot be decoded as Notification
*/
- EventEmitter<Data> onDecodeError;
+ signal::Signal<NotificationSubscriber, Data> onDecodeError;
private:
void