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
22
namespace Konversation
25
class NotificationHandler : public QObject
30
explicit NotificationHandler(Application* parent = 0);
31
~NotificationHandler();
34
void message(ChatWindow* chatWin, const QString& fromNick, const QString& message);
35
void nick(ChatWindow* chatWin, const QString& fromNick, const QString& message);
36
void join(ChatWindow* chatWin, const QString& nick);
37
void part(ChatWindow* chatWin, const QString& nick);
38
void quit(ChatWindow* chatWin, const QString& nick);
39
void nickChange(ChatWindow* chatWin, const QString& oldNick, const QString& newNick);
40
void dccIncoming(ChatWindow* chatWin, const QString& fromNick);
41
void dccError(ChatWindow* chatWin, const QString& error);
42
void dccTransferDone(ChatWindow* chatWin, const QString& file);
43
void mode(ChatWindow* chatWin, const QString& nick);
44
void query(ChatWindow* chatWin, const QString& fromNick);
45
void queryMessage(ChatWindow* chatWin, const QString& fromNick, const QString& message);
46
void nickOnline(ChatWindow* chatWin, const QString& nick);
47
void nickOffline(ChatWindow* chatWin, const QString& nick);
48
void kick(ChatWindow* chatWin, const QString& channel,const QString& nick);
49
void dccChat(ChatWindow* chatWin, const QString& nick);
50
void highlight(ChatWindow* chatWin, const QString& fromNick, const QString& message);
51
void connectionFailure(ChatWindow* chatWin, const QString& server);
52
void channelJoin(ChatWindow* chatWin, const QString& channel);
55
void startTrayNotification(ChatWindow* chatWin);
58
MainWindow* m_mainWindow;