aboutsummaryrefslogtreecommitdiff
path: root/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chat.cpp')
-rw-r--r--chat.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/chat.cpp b/chat.cpp
index 32c72c3..6b28b9e 100644
--- a/chat.cpp
+++ b/chat.cpp
@@ -76,3 +76,15 @@ DcChat::getVisibility()
{
return dc_chat_get_visibility(m_chat);
}
+
+void
+DcChat::notifyNewMess()
+{
+ KNotification *newMess = new KNotification("onIncomingMessage");
+ newMess->setPixmap(QPixmap(getProfileImage()));
+ newMess->setIconName("chat.delta.KDeltaChat");
+ newMess->setComponentName("kdeltachat");
+ newMess->setTitle(getName());
+ newMess->setText("has sent you a message");
+ newMess->sendEvent();
+}