Changeset View
Changeset View
Standalone View
Standalone View
libnotificationmanager/notification.cpp
Show First 20 Lines • Show All 526 Lines • ▼ Show 20 Line(s) | |||||
527 | 527 | | |||
528 | QString Notification::body() const | 528 | QString Notification::body() const | ||
529 | { | 529 | { | ||
530 | return d->body; | 530 | return d->body; | ||
531 | } | 531 | } | ||
532 | 532 | | |||
533 | void Notification::setBody(const QString &body) | 533 | void Notification::setBody(const QString &body) | ||
534 | { | 534 | { | ||
535 | d->rawBody = body; | ||||
535 | d->body = Private::sanitize(body.trimmed()); | 536 | d->body = Private::sanitize(body.trimmed()); | ||
536 | } | 537 | } | ||
537 | 538 | | |||
539 | QString Notification::rawBody() const | ||||
540 | { | ||||
541 | return d->rawBody; | ||||
542 | } | ||||
543 | | ||||
538 | QString Notification::icon() const | 544 | QString Notification::icon() const | ||
539 | { | 545 | { | ||
540 | return d->icon; | 546 | return d->icon; | ||
541 | } | 547 | } | ||
542 | 548 | | |||
543 | void Notification::setIcon(const QString &icon) | 549 | void Notification::setIcon(const QString &icon) | ||
544 | { | 550 | { | ||
545 | d->loadImagePath(icon); | 551 | d->loadImagePath(icon); | ||
▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Line(s) | 750 | { | |||
745 | return d->dismissed; | 751 | return d->dismissed; | ||
746 | } | 752 | } | ||
747 | 753 | | |||
748 | void Notification::setDismissed(bool dismissed) | 754 | void Notification::setDismissed(bool dismissed) | ||
749 | { | 755 | { | ||
750 | d->dismissed = dismissed; | 756 | d->dismissed = dismissed; | ||
751 | } | 757 | } | ||
752 | 758 | | |||
759 | QVariantMap Notification::hints() const | ||||
760 | { | ||||
761 | return d->hints; | ||||
762 | } | ||||
763 | | ||||
764 | void Notification::setHints(const QVariantMap &hints) | ||||
765 | { | ||||
766 | d->hints = hints; | ||||
767 | } | ||||
768 | | ||||
753 | void Notification::processHints(const QVariantMap &hints) | 769 | void Notification::processHints(const QVariantMap &hints) | ||
754 | { | 770 | { | ||
755 | d->processHints(hints); | 771 | d->processHints(hints); | ||
756 | } | 772 | } |