2
This program is free software; you can redistribute it and/or modify
3
it under the terms of the GNU General Public License as published by
4
the Free Software Foundation; either version 2 of the License, or
5
(at your option) any later version.
9
copyright: (C) 2004 by Peter Simonsson
12
#ifndef KONVERSATIONNOTIFICATIONHANDLER_H
13
#define KONVERSATIONNOTIFICATIONHANDLER_H
30
namespace Konversation
32
class NotificationHandler : public QObject
37
explicit NotificationHandler(Application* parent = 0);
38
~NotificationHandler();
41
void message(ChatWindow* chatWin, const QString& fromNick, const QString& message);
42
void nick(ChatWindow* chatWin, const QString& fromNick, const QString& message);
43
void join(ChatWindow* chatWin, const QString& nick);
44
void part(ChatWindow* chatWin, const QString& nick);
45
void quit(ChatWindow* chatWin, const QString& nick);
46
void nickChange(ChatWindow* chatWin, const QString& oldNick, const QString& newNick);
47
void dccIncoming(ChatWindow* chatWin, const QString& fromNick);
48
void dccError(ChatWindow* chatWin, const QString& error);
49
void dccTransferDone(ChatWindow* chatWin, const QString& file);
50
void mode(ChatWindow* chatWin, const QString& nick);
51
void query(ChatWindow* chatWin, const QString& fromNick);
52
void queryMessage(ChatWindow* chatWin, const QString& fromNick, const QString& message);
53
void nickOnline(ChatWindow* chatWin, const QString& nick);
54
void nickOffline(ChatWindow* chatWin, const QString& nick);
55
void kick(ChatWindow* chatWin, const QString& channel,const QString& nick);
56
void dccChat(ChatWindow* chatWin, const QString& nick);
57
void highlight(ChatWindow* chatWin, const QString& fromNick, const QString& message);
58
void connectionFailure(ChatWindow* chatWin, const QString& server);
59
void channelJoin(ChatWindow* chatWin, const QString& channel);
62
void startTrayNotification(ChatWindow* chatWin);
63
virtual bool eventFilter(QObject*, QEvent*);
66
void updateIndicateServer();
67
void slotIndicatorDisplay(QIndicate::Indicator*);
68
void slotIndicateServerDisplay();
69
void deleteIndicatorForChatWindow(ChatWindow*);
72
MainWindow* m_mainWindow;
73
QIndicate::Server* m_indicateServer;
74
QHash<ChatWindow*, Indicator*> m_indicatorForChatWindow;
76
void addIndicator(ChatWindow*, const QString& nick);