~ubuntu-branches/ubuntu/lucid/lastfm/lucid

« back to all changes in this revision

Viewing changes to src/libMoose/QtOverrides/QSystemTrayIcon

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2008-07-14 16:46:20 UTC
  • mfrom: (1.1.7 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080714164620-67hoz9fs177wpgmr
Tags: 1:1.5.1.31879.dfsg-1ubuntu1
* Merge from Debian unstable (LP: #248100), remaining changes:
  - debian/rules: add dh_icons call
  + debian/control:
    - switch iceweasel to firefox in Recommends field
    - modify debhelper version to >= 5.0.51~
    - modify Maintainer to Ubuntu MOTU Developers

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright 2008 Last.fm Ltd.                                           *
 
3
 *                                                                         *
 
4
 *   This program is free software; you can redistribute it and/or modify  *
 
5
 *   it under the terms of the GNU General Public License as published by  *
 
6
 *   the Free Software Foundation; either version 2 of the License, or     *
 
7
 *   (at your option) any later version.                                   *
 
8
 *                                                                         *
 
9
 *   This program is distributed in the hope that it will be useful,       *
 
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
12
 *   GNU General Public License for more details.                          *
 
13
 *                                                                         *
 
14
 *   You should have received a copy of the GNU General Public License     *
 
15
 *   along with this program; if not, write to the                         *
 
16
 *   Free Software Foundation, Inc.,                                       *
 
17
 *   51 Franklin Steet, Fifth Floor, Boston, MA  02110-1301, USA.          *
 
18
 ***************************************************************************/
 
19
 
 
20
#ifndef QT_OVERRIDES_SYSTEM_TRAY_ICON_H
 
21
#define QT_OVERRIDES_SYSTEM_TRAY_ICON_H
 
22
 
 
23
#include <qsystemtrayicon.h>
 
24
 
 
25
#ifdef Q_OS_MAC
 
26
 
 
27
 
 
28
namespace Moose
 
29
{
 
30
    /** @author Max Howell <max@last.fm>
 
31
      */
 
32
    class QSystemTrayIcon : public ::QSystemTrayIcon
 
33
    {
 
34
    public:
 
35
        QSystemTrayIcon( QObject* parent ) : ::QSystemTrayIcon( parent )
 
36
        {}
 
37
 
 
38
        void showMessage( const QString& title,
 
39
                          const QString& text,
 
40
                          MessageIcon icon = Information,
 
41
                          int millisecondsTimeoutHint = 10000 );
 
42
    };
 
43
}
 
44
 
 
45
 
 
46
#define QSystemTrayIcon Moose::QSystemTrayIcon
 
47
 
 
48
#endif
 
49
#endif