~ubuntu-branches/ubuntu/saucy/quassel/saucy-proposed

« back to all changes in this revision

Viewing changes to src/qtui/systraynotificationbackend.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-02-17 12:49:50 UTC
  • mto: This revision was merged to the branch mainline in revision 59.
  • Revision ID: james.westby@ubuntu.com-20100217124950-v9hajw5d2xa6fszn
Tags: upstream-0.6~beta1
ImportĀ upstreamĀ versionĀ 0.6~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
*   Copyright (C) 2005-09 by the Quassel Project                          *
3
 
*   devel@quassel-irc.org                                                 *
4
 
*                                                                         *
5
 
*   This program is free software; you can redistribute it and/or modify  *
6
 
*   it under the terms of the GNU General Public License as published by  *
7
 
*   the Free Software Foundation; either version 2 of the License, or     *
8
 
*   (at your option) version 3.                                           *
9
 
*                                                                         *
10
 
*   This program is distributed in the hope that it will be useful,       *
11
 
*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12
 
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13
 
*   GNU General Public License for more details.                          *
14
 
*                                                                         *
15
 
*   You should have received a copy of the GNU General Public License     *
16
 
*   along with this program; if not, write to the                         *
17
 
*   Free Software Foundation, Inc.,                                       *
18
 
*   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19
 
***************************************************************************/
 
2
 *   Copyright (C) 2005-2010 by the Quassel Project                        *
 
3
 *   devel@quassel-irc.org                                                 *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) version 3.                                           *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 
19
 ***************************************************************************/
20
20
 
21
21
#ifndef SYSTRAYNOTIFICATIONBACKEND_H_
22
22
#define SYSTRAYNOTIFICATIONBACKEND_H_
23
23
 
24
 
#include <QSystemTrayIcon>
25
 
 
26
24
#include "abstractnotificationbackend.h"
27
 
 
28
25
#include "settingspage.h"
 
26
#include "systemtray.h"
29
27
 
30
28
class QCheckBox;
31
29
 
39
37
  void close(uint notificationId);
40
38
  virtual SettingsPage *createConfigWidget() const;
41
39
 
 
40
protected:
 
41
  virtual bool eventFilter(QObject *obj, QEvent *event);
 
42
 
42
43
private slots:
43
44
  void showBubble();
44
45
  void closeBubble();
45
46
  void notificationActivated();
46
 
  void notificationActivated(QSystemTrayIcon::ActivationReason);
 
47
  void notificationActivated(SystemTray::ActivationReason);
47
48
 
48
49
  void animateChanged(const QVariant &);
49
50
  void showBubbleChanged(const QVariant &);
54
55
  bool _showBubble;
55
56
  bool _animate;
56
57
  QList<Notification> _notifications;
 
58
  bool _blockActivation;
57
59
};
58
60
 
59
61
class SystrayNotificationBackend::ConfigWidget : public SettingsPage {