aboutsummaryrefslogtreecommitdiff
path: root/notifications.cpp
blob: 712e37e3520b788faf68331c588db2d84f395d85 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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();

}
//newMess->setPixmap(QPixmap(":/res/chat.delta.KDeltaChat.png"));