IBR-DTNSuite
0.8
|
#include <Notifier.h>
Public Member Functions | |
Notifier (std::string cmd) | |
virtual | ~Notifier () |
void | raiseEvent (const dtn::core::Event *evt) |
void | notify (std::string title, std::string msg) |
virtual const std::string | getName () const |
Protected Member Functions | |
virtual void | componentUp () |
virtual void | componentDown () |
Definition at line 19 of file Notifier.h.
dtn::daemon::Notifier::Notifier | ( | std::string | cmd | ) |
Definition at line 20 of file Notifier.cpp.
dtn::daemon::Notifier::~Notifier | ( | ) | [virtual] |
Definition at line 24 of file Notifier.cpp.
void dtn::daemon::Notifier::componentDown | ( | ) | [protected, virtual] |
Implements dtn::daemon::IntegratedComponent.
Definition at line 33 of file Notifier.cpp.
References dtn::core::NodeEvent::className, and dtn::core::EventReceiver::unbindEvent().
void dtn::daemon::Notifier::componentUp | ( | ) | [protected, virtual] |
Implements dtn::daemon::IntegratedComponent.
Definition at line 28 of file Notifier.cpp.
References dtn::core::EventReceiver::bindEvent(), and dtn::core::NodeEvent::className.
const std::string dtn::daemon::Notifier::getName | ( | ) | const [virtual] |
Implements dtn::daemon::Component.
Definition at line 72 of file Notifier.cpp.
void dtn::daemon::Notifier::notify | ( | std::string | title, |
std::string | msg | ||
) |
Definition at line 63 of file Notifier.cpp.
Referenced by raiseEvent().
void dtn::daemon::Notifier::raiseEvent | ( | const dtn::core::Event * | evt | ) | [virtual] |
Implements dtn::core::EventReceiver.
Definition at line 38 of file Notifier.cpp.
References dtn::core::NodeEvent::getAction(), dtn::core::NodeEvent::getNode(), dtn::core::NODE_AVAILABLE, dtn::core::NODE_UNAVAILABLE, notify(), and dtn::core::Node::toString().