NotifierNotificationSink::NotifierNotificationSink(QObject *parent) :
    NotificationSink(parent),
    ngfAdapter(new NGFAdapter),
    additionsDisabled(false),
    ngfEventId(0),
    notifierEnabled(false)
{
#ifdef HAVE_QMSYSTEM
    connect(&displayState, SIGNAL(displayStateChanged(MeeGo::QmDisplayState::DisplayState)),
        this, SLOT(updateStatusOfLedFeedback()));
#endif
}
LEDNotificationSink::LEDNotificationSink(QObject *parent) : NotificationSink(parent),
    notifierEnabled(false)
{
    m_interface = new QDBusInterface(MCE_SERVICE, MCE_REQUEST_PATH, MCE_REQUEST_IF,
	                                 QDBusConnection::systemBus(), this);
	
    configItem = new MGConfItem(GCONF_LED_KEY);

#ifdef HAVE_QMSYSTEM
	connect(&displayState, SIGNAL(displayStateChanged(MeeGo::QmDisplayState::DisplayState)),
	this, SLOT(updateStatusOfLedFeedback()));
#endif
}
void LEDNotificationSink::setNotifierEnabled(bool enabled)
{
	notifierEnabled = enabled;
	updateStatusOfLedFeedback();
}
void NotifierNotificationSink::setNotifierEnabled(bool enabled)
{
    emit notifierSinkActive(enabled);
    notifierEnabled = enabled;
    updateStatusOfLedFeedback();
}