Applets
plasmoidtask.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * plasmoidtask.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 PLASMOIDTASK_H 00024 #define PLASMOIDTASK_H 00025 00026 #include "../../core/task.h" 00027 00028 00029 namespace SystemTray 00030 { 00031 00032 00033 class PlasmoidTask : public Task 00034 { 00035 Q_OBJECT 00036 00037 public: 00038 PlasmoidTask(QString appletName); 00039 virtual ~PlasmoidTask(); 00040 00041 bool isValid() const; 00042 virtual bool isEmbeddable() const; 00043 virtual QString name() const; 00044 virtual QString typeId() const; 00045 virtual QIcon icon() const; 00046 00047 signals: 00048 void taskDeleted(QString typeId); 00049 00050 protected: 00051 virtual QGraphicsWidget* createWidget(Plasma::Applet *applet); 00052 00053 private: 00054 class Private; 00055 Private* const d; 00056 }; 00057 00058 } 00059 00060 #endif