void NotifyConfigurationUiHandler::init()
{
    connect(m_notifierRepository, SIGNAL(notifierRegistered(Notifier *)), this, SLOT(notifierRegistered(Notifier *)));
    connect(
        m_notifierRepository, SIGNAL(notifierUnregistered(Notifier *)), this, SLOT(notifierUnregistered(Notifier *)));

    connect(
        m_notificationEventRepository, SIGNAL(notificationEventAdded(NotificationEvent)), this,
        SLOT(notificationEventAdded(NotificationEvent)));
    connect(
        m_notificationEventRepository, SIGNAL(notificationEventRemoved(NotificationEvent)), this,
        SLOT(notificationEventRemoved(NotificationEvent)));
}
void NotificationEventRepository::addNotificationEvent(NotificationEvent event)
{
	auto it = std::find(std::begin(m_events), std::end(m_events), event);
	if (it == std::end(m_events))
	{
		m_events.push_back(event);
		emit notificationEventAdded(event);
	}
}