add more spacing
[personal-kdebase.git] / workspace / plasma / applets / systemtray / protocols / notifications / dbusnotificationprotocol.h
blob9c2af4084518845c26a587378d8924ede56b9a54
1 /***************************************************************************
2 * dbusnotificationprotocol.h *
3 * *
4 * Copyright (C) 2008 Jason Stubbs <jasonbstubbs@gmail.com> *
5 * Copyright (C) 2008 Dmitry Suzdalev <dimsuz@gmail.com> *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
21 ***************************************************************************/
23 #ifndef DBUSNOTIFICATIONPROTOCOL_H
24 #define DBUSNOTIFICATIONPROTOCOL_H
26 #include "../../core/protocol.h"
28 #include <QHash>
30 #include <Plasma/DataEngine>
32 namespace SystemTray
35 class DBusNotification;
37 class DBusNotificationProtocol : public Protocol
39 Q_OBJECT
41 public:
42 DBusNotificationProtocol(QObject *parent);
43 ~DBusNotificationProtocol();
44 void init();
46 private slots:
47 void prepareNotification(const QString &source);
48 void dataUpdated(const QString &source, const Plasma::DataEngine::Data &data);
49 void removeNotification(const QString &source);
50 void relayAction(const QString &source, const QString &actionId);
52 private:
53 Plasma::DataEngine *m_engine;
54 QHash<QString, DBusNotification*> m_notifications;
60 #endif