1 /***************************************************************************
4 * Copyright (C) 2008 Jason Stubbs <jasonbstubbs@gmail.com> *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
20 ***************************************************************************/
22 #ifndef SYSTEMTRAYPROTOCOL_H
23 #define SYSTEMTRAYPROTOCOL_H
25 #include <QtCore/QObject>
39 * @short System tray protocol base class
41 * To support a new system tray protocol, this class and Task should be
42 * subclassed and the subclass of this class registered with the global
43 * Manager. The Protocol subclass should emit taskCreated() for each new
46 class Protocol
: public QObject
50 explicit Protocol(QObject
*parent
);
52 virtual void init() = 0;
56 * Signals that a new task has been created
58 void taskCreated(SystemTray::Task
*task
);
61 * Signals that a new notification has been created
63 void jobCreated(SystemTray::Job
*job
);
66 * Signals that a new notification has been created
68 void notificationCreated(SystemTray::Notification
*notification
);