From 902ebb6393277a4c13282124047dd0ebedd3f0d7 Mon Sep 17 00:00:00 2001 From: TheOneRing Date: Wed, 24 Mar 2010 16:32:27 +0100 Subject: [PATCH] fixed snarl icons --- src/core/notification.cpp | 2 ++ src/plugins/snarlnetwork/parser.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/core/notification.cpp b/src/core/notification.cpp index ec2e7b0..ef9f10f 100644 --- a/src/core/notification.cpp +++ b/src/core/notification.cpp @@ -51,6 +51,8 @@ QString Notification::toSnalrString()const{ out+=QString("#?app="+app); if(!alert.isEmpty()) out+=QString("#?class="+alert); + if(hints.contains("SnarlIcon")) + out+=QString("#?icon="+hints.value("SnarlIcon").value()); out+=QString("#?title="+title+"#?text="+text+"#?timeout="+QString::number(timeout)); return out; } diff --git a/src/plugins/snarlnetwork/parser.cpp b/src/plugins/snarlnetwork/parser.cpp index 2c7c785..4b82a1d 100644 --- a/src/plugins/snarlnetwork/parser.cpp +++ b/src/plugins/snarlnetwork/parser.cpp @@ -87,6 +87,7 @@ SnarlNotification Parser::parse(QString &msg,QTcpSocket* client){ sNotification.notification->text=value; break; case ICON: + sNotification.notification->hints.insert("SnarlIcon",value); sNotification.notification->setIcon(downloadIcon(value)); break; case CLASS: