1 /***************************************************************************
2 * dbusnotificationprotocol.h *
4 * Copyright (C) 2008 Jason Stubbs <jasonbstubbs@gmail.com> *
5 * Copyright (C) 2008 Dmitry Suzdalev <dimsuz@gmail.com> *
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. *
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. *
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"
30 #include <Plasma/DataEngine>
35 class DBusNotification
;
37 class DBusNotificationProtocol
: public Protocol
42 DBusNotificationProtocol(QObject
*parent
);
43 ~DBusNotificationProtocol();
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
);
53 Plasma::DataEngine
*m_engine
;
54 QHash
<QString
, DBusNotification
*> m_notifications
;