From 25da12e98285c44279d24ee77a08bd5f563d8ad0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Mar 2013 15:59:51 +0300 Subject: Add new notifications in some other classes. --- src/net/ea/chathandler.cpp | 24 +++++++++--------------- src/net/ea/tradehandler.cpp | 1 - 2 files changed, 9 insertions(+), 16 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/chathandler.cpp b/src/net/ea/chathandler.cpp index b2c6154b3..9f67bfbcf 100644 --- a/src/net/ea/chathandler.cpp +++ b/src/net/ea/chathandler.cpp @@ -26,6 +26,7 @@ #include "configuration.h" #include "guildmanager.h" #include "localplayer.h" +#include "notifymanager.h" #include "playerrelations.h" #include "gui/chatwindow.h" @@ -353,14 +354,9 @@ void ChatHandler::processMVP(Net::MessageIn &msg) { const Being *const being = actorSpriteManager->findBeing(id); if (!being) - { - localChatTab->chatLog(_("MVP player."), BY_SERVER); - } + NotifyManager::notify(NotifyManager::MVP_PLAYER, ""); else - { - localChatTab->chatLog(_("MVP player: ") - + being->getName(), BY_SERVER); - } + NotifyManager::notify(NotifyManager::MVP_PLAYER, being->getName()); } } @@ -378,12 +374,11 @@ void ChatHandler::processIgnoreAllResponse(Net::MessageIn &msg) switch (fail) { case 0: - localChatTab->chatLog(_("All whispers ignored."), - BY_SERVER); + NotifyManager::notify(NotifyManager::WHISPERS_IGNORED); break; default: - localChatTab->chatLog(_("All whispers ignore failed."), - BY_SERVER); + NotifyManager::notify(NotifyManager:: + WHISPERS_IGNORE_FAILED); break; } break; @@ -393,12 +388,11 @@ void ChatHandler::processIgnoreAllResponse(Net::MessageIn &msg) switch (fail) { case 0: - localChatTab->chatLog(_("All whispers unignored."), - BY_SERVER); + NotifyManager::notify(NotifyManager::WHISPERS_UNIGNORED); break; default: - localChatTab->chatLog(_("All whispers unignore failed."), - BY_SERVER); + NotifyManager::notify(NotifyManager:: + WHISPERS_UNIGNORE_FAILED); break; } break; diff --git a/src/net/ea/tradehandler.cpp b/src/net/ea/tradehandler.cpp index 12f29c4e7..3a401349a 100644 --- a/src/net/ea/tradehandler.cpp +++ b/src/net/ea/tradehandler.cpp @@ -22,7 +22,6 @@ #include "net/ea/tradehandler.h" -#include "depricatedevent.h" #include "inventory.h" #include "item.h" #include "logger.h" -- cgit v1.2.3-70-g09d2