~ubuntu-branches/ubuntu/raring/konversation/raring-proposed

« back to all changes in this revision

Viewing changes to .pc/debian-changes-1.3.1-1ubuntu2/src/notificationhandler.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-08-11 17:53:27 UTC
  • Revision ID: james.westby@ubuntu.com-20100811175327-vj8gal6554f0cdck
Tags: 1.3.1-1ubuntu2
* Add back correct debian/patches/series file, adds back in
  kubuntu_01_default_channels.diff message-indicator/0001-Adds-
  support-for-Message-Indicator.diff LP: #616422
* Remove obsolete debian/patches/kubuntu/ directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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.
 
6
*/
 
7
 
 
8
/*
 
9
  copyright: (C) 2004 by Peter Simonsson
 
10
  email:     psn@linux.se
 
11
*/
 
12
#ifndef KONVERSATIONNOTIFICATIONHANDLER_H
 
13
#define KONVERSATIONNOTIFICATIONHANDLER_H
 
14
 
 
15
#include <QHash>
 
16
#include <QObject>
 
17
 
 
18
 
 
19
class ChatWindow;
 
20
class Application;
 
21
class MainWindow;
 
22
 
 
23
namespace QIndicate
 
24
{
 
25
    class Server;
 
26
    class Indicator;
 
27
}
 
28
class Indicator;
 
29
 
 
30
namespace Konversation
 
31
{
 
32
    class NotificationHandler : public QObject
 
33
    {
 
34
        Q_OBJECT
 
35
 
 
36
        public:
 
37
            explicit NotificationHandler(Application* parent = 0);
 
38
            ~NotificationHandler();
 
39
 
 
40
        public slots:
 
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);
 
60
 
 
61
        protected:
 
62
            void startTrayNotification(ChatWindow* chatWin);
 
63
            virtual bool eventFilter(QObject*, QEvent*);
 
64
 
 
65
        private slots:
 
66
            void updateIndicateServer();
 
67
            void slotIndicatorDisplay(QIndicate::Indicator*);
 
68
            void slotIndicateServerDisplay();
 
69
            void deleteIndicatorForChatWindow(ChatWindow*);
 
70
 
 
71
        private:
 
72
            MainWindow* m_mainWindow;
 
73
            QIndicate::Server* m_indicateServer;
 
74
            QHash<ChatWindow*, Indicator*> m_indicatorForChatWindow;
 
75
 
 
76
            void addIndicator(ChatWindow*, const QString& nick);
 
77
    };
 
78
 
 
79
}
 
80
#endif