blob: e35703785b906d758058b49631b45e344a51b9b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <KNotification>
#include "notifications.h"
DcNotifications::DcNotifications(QObject *parent)
: QObject{parent}
{
}
void
DcNotifications::send(QString event, QString pfpPath, QString title, QString message) {
KNotification *newMess = new KNotification(event);
newMess->setPixmap(QPixmap(pfpPath));
newMess->setIconName("chat.delta.KDeltaChat");
newMess->setComponentName("kdeltachat");
newMess->setTitle(title);
newMess->setText(message);
newMess->sendEvent();
}
|