Applets
plasmoidtaskprotocol.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * plasmoidprotocol.h * 00003 * * 00004 * Copyright (C) 2008 Jason Stubbs <jasonbstubbs@gmail.com> * 00005 * Copyright (C) 2008 Sebastian Kügler <sebas@kde.org> * 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 PLASMOIDTASKPROTOCOL_H 00024 #define PLASMOIDTASKPROTOCOL_H 00025 00026 #include "../../core/protocol.h" 00027 00028 #include <QHash> 00029 00030 namespace SystemTray 00031 { 00032 00033 class PlasmoidTask; 00034 00035 class PlasmoidProtocol : public Protocol 00036 { 00037 Q_OBJECT 00038 00039 public: 00040 PlasmoidProtocol(QObject * parent); 00041 ~PlasmoidProtocol(); 00042 00043 void init(); 00044 00045 private slots: 00046 void cleanupTask(QString typeId); 00047 void newTask(QString appletName); 00048 00049 private: 00050 QHash<QString, PlasmoidTask*> m_tasks; 00051 }; 00052 00053 } 00054 00055 00056 #endif