not quite so much needs to be delayed to the init() function
[personal-kdebase.git] / workspace / plasma / applets / systemtray / protocols / plasmoid / plasmoidtaskprotocol.h
blobe90a7484091dcda9e0d816d7d7a848087adcdd68
1 /***************************************************************************
2 * plasmoidprotocol.h *
3 * *
4 * Copyright (C) 2008 Jason Stubbs <jasonbstubbs@gmail.com> *
5 * Copyright (C) 2008 Sebastian Kügler <sebas@kde.org> *
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 PLASMOIDTASKPROTOCOL_H
24 #define PLASMOIDTASKPROTOCOL_H
26 #include "../../core/protocol.h"
28 #include <QHash>
30 namespace SystemTray
33 class PlasmoidTask;
35 class PlasmoidProtocol : public Protocol
37 Q_OBJECT
39 public:
40 PlasmoidProtocol(QObject * parent);
41 ~PlasmoidProtocol();
43 void init();
45 private slots:
46 void cleanupTask(QString typeId);
47 void newTask(QString appletName);
49 private:
50 QHash<QString, PlasmoidTask*> m_tasks;
56 #endif