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

« back to all changes in this revision

Viewing changes to .pc/message-indicator/0001-Adds-support-for-Message-Indicator.diff/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 <QObject>
 
16
 
 
17
 
 
18
class ChatWindow;
 
19
class Application;
 
20
class MainWindow;
 
21
 
 
22
namespace Konversation
 
23
{
 
24
 
 
25
    class NotificationHandler : public QObject
 
26
    {
 
27
        Q_OBJECT
 
28
 
 
29
        public:
 
30
            explicit NotificationHandler(Application* parent = 0);
 
31
            ~NotificationHandler();
 
32
 
 
33
        public slots:
 
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);
 
53
 
 
54
        protected:
 
55
            void startTrayNotification(ChatWindow* chatWin);
 
56
 
 
57
        private:
 
58
            MainWindow* m_mainWindow;
 
59
    };
 
60
 
 
61
}
 
62
#endif