1 | /* |
2 | Copyright (C) 2010 by Sjors Gielen <dazjorz@dazjorz.com> |
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, or (at your option) |
7 | 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 Free Software |
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | |
18 | */ |
19 | |
20 | #ifndef NOTIFYBYPOPUPGROWL_H |
21 | #define NOTIFYBYPOPUPGROWL_H |
22 | |
23 | #include <QPixmap> |
24 | #include <QString> |
25 | |
26 | /** |
27 | * @brief Display a notification using Growl. |
28 | * |
29 | * Currently, this class uses QSystemTrayIcon to actually display the |
30 | * notification. Inside the Growl project, a protocol is being developed |
31 | * to display notifications; this protocol is currently only implemented |
32 | * (partly) in the Windows version of Growl. Once it is finished, it will be |
33 | * implemented in KNotify and used instead. |
34 | * (The normal Growl API is written in Objective C. It's possible to use it, |
35 | * but it's a lot harder than just waiting for GNTP to stabilize.) |
36 | */ |
37 | class |
38 | { |
39 | public: |
40 | static bool (); |
41 | static QStringList (); |
42 | static void ( const QPixmap *icon, int timeout, |
43 | const QString &title, const QString &message ); |
44 | }; |
45 | |
46 | #endif // NOTIFYBYPOPUPGROWL_H |
47 | |