|
|
|
|
@ -165,6 +165,11 @@ void NotificationsService::NotifyAsync(
|
|
|
|
|
mNotificationMap[nId]->setSuppressSound(it.data().value.toBool(&ok));
|
|
|
|
|
if(!ok) errStr += " suppress-sound";
|
|
|
|
|
}
|
|
|
|
|
else if (it.key()=="resident")
|
|
|
|
|
{
|
|
|
|
|
mNotificationMap[nId]->setResident(it.data().value.toBool(&ok));
|
|
|
|
|
if(!ok) errStr += " resident";
|
|
|
|
|
}
|
|
|
|
|
else if (it.key()=="transient")
|
|
|
|
|
{
|
|
|
|
|
mNotificationMap[nId]->setTransient(it.data().value.toBool(&ok));
|
|
|
|
|
@ -191,6 +196,8 @@ void NotificationsService::NotifyAsync(
|
|
|
|
|
mNotificationMap[nId]->setActions(actions);
|
|
|
|
|
if(mNotificationMap[nId]->isTransient() && timeout == 0)
|
|
|
|
|
timeout = -1; // use server defined timeout (transient bypasses persistence on the server)
|
|
|
|
|
if(mNotificationMap[nId]->isResident() && timeout != 0)
|
|
|
|
|
timeout = 0; // resident takes advantage of persistence)
|
|
|
|
|
mNotificationMap[nId]->setTimeout(timeout);
|
|
|
|
|
mNotificationMap[nId]->adjustSize();
|
|
|
|
|
mNotificationMap[nId]->raise();
|
|
|
|
|
|