void Ut_UnlockNotificationSink::testWhenPrivacyModeOnAndGenericTextIdPresentAndCatalogueNotPresentThenSummaryIsEmpty()
{
    sink->setLockedState(true);
    gMGConfPrivateNotificationValue = true;

    NotificationParameters params;
    params.add(NotificationWidgetParameterFactory::genericTextIdKey(), "translationid");

    Notification notification(100, GID, UID, params, Notification::ApplicationEvent, -1);

    sink->addNotification(notification);

    QCOMPARE(gUnlockMissedEventsStub->stubCallCount ("addNotification"), 1);
    QCOMPARE(gUnlockMissedEventsStub->stubLastCallTo("addNotification").parameter<QString>(1), QString(""));
}
void Ut_UnlockNotificationSink::testWhenPrivacyModeOffThenSummaryIsFromNotification()
{
    sink->setLockedState(true);

    QString notificationSummary("notificationsummary");

    NotificationParameters params;
    params.add(NotificationWidgetParameterFactory::summaryKey(), notificationSummary);

    Notification notification(100, GID, UID, params, Notification::ApplicationEvent, -1);

    sink->addNotification(notification);

    QCOMPARE(gUnlockMissedEventsStub->stubCallCount ("addNotification"), 1);
    QCOMPARE(gUnlockMissedEventsStub->stubLastCallTo("addNotification").parameter<QString>(1), notificationSummary);
}
QString LEDNotificationSink::determineFeedbackId(const NotificationParameters &parameters)
{
    QString feedbackId = parameters.value(FeedbackParameterFactory::feedbackIdKey()).toString();
    return feedbackId;
}
QString LEDNotificationSink::determineGenericTextCatalogue(const NotificationParameters &parameters)
{
    QString feedbackId = parameters.value(TWITTER_FEEDBACK_PARAMETER).toString();
    return feedbackId;
}
bool NotifierNotificationSink::isUnseen(const Notification &notification)
{
    NotificationParameters parameters = notification.parameters();
    QVariant unseenVariant = parameters.value(GenericNotificationParameterFactory::unseenKey());
    return unseenVariant.toBool();
}