• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Applets

dbusnotificationprotocol.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   dbusnotificationprotocol.h                                            *
00003  *                                                                         *
00004  *   Copyright (C) 2008 Jason Stubbs <jasonbstubbs@gmail.com>              *
00005  *   Copyright (C) 2008 Dmitry Suzdalev <dimsuz@gmail.com>                 *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; if not, write to the                         *
00019  *   Free Software Foundation, Inc.,                                       *
00020  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
00021  ***************************************************************************/
00022 
00023 #ifndef DBUSNOTIFICATIONPROTOCOL_H
00024 #define DBUSNOTIFICATIONPROTOCOL_H
00025 
00026 #include "../../core/protocol.h"
00027 
00028 #include <QHash>
00029 
00030 #include <Plasma/DataEngine>
00031 
00032 namespace SystemTray
00033 {
00034 
00035 class DBusNotification;
00036 
00037 class DBusNotificationProtocol : public Protocol
00038 {
00039     Q_OBJECT
00040 
00041 public:
00042     DBusNotificationProtocol(QObject *parent);
00043     ~DBusNotificationProtocol();
00044     void init();
00045 
00046 private slots:
00047     void prepareNotification(const QString &source);
00048     void dataUpdated(const QString &source, const Plasma::DataEngine::Data &data);
00049     void removeNotification(const QString &source);
00050     void relayAction(const QString &source, const QString &actionId);
00051 
00052 private:
00053     Plasma::DataEngine *m_engine;
00054     QHash<QString, DBusNotification*> m_notifications;
00055 };
00056 
00057 }
00058 
00059 
00060 #endif

Applets

Skip menu "Applets"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal