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

Applets

task.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   task.h                                                                *
00003  *                                                                         *
00004  *   Copyright (C) 2008 Jason Stubbs <jasonbstubbs@gmail.com>              *
00005  *                                                                         *
00006  *   This program is free software; you can redistribute it and/or modify  *
00007  *   it under the terms of the GNU General Public License as published by  *
00008  *   the Free Software Foundation; either version 2 of the License, or     *
00009  *   (at your option) any later version.                                   *
00010  *                                                                         *
00011  *   This program is distributed in the hope that it will be useful,       *
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00014  *   GNU General Public License for more details.                          *
00015  *                                                                         *
00016  *   You should have received a copy of the GNU General Public License     *
00017  *   along with this program; if not, write to the                         *
00018  *   Free Software Foundation, Inc.,                                       *
00019  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
00020  ***************************************************************************/
00021 
00022 #ifndef SYSTEMTRAYTASK_H
00023 #define SYSTEMTRAYTASK_H
00024 
00025 #include <QtCore/QObject>
00026 
00027 #include <QtGui/QIcon>
00028 
00029 class QGraphicsWidget;
00030 
00031 namespace Plasma
00032 {
00033     class Applet;
00034 } // namespace Plasma
00035 
00036 namespace SystemTray
00037 {
00038 
00045 class Task : public QObject
00046 {
00047     Q_OBJECT
00048 
00049 public:
00050     enum Order { First, Normal, Last };
00051 
00052     virtual ~Task();
00053 
00059     QGraphicsWidget* widget(Plasma::Applet *host);
00060 
00065     QList<QGraphicsWidget*> associatedWidgets() const;
00066 
00074     virtual bool isEmbeddable() const = 0;
00075 
00079     virtual QString name() const = 0;
00080 
00086     virtual QString typeId() const = 0;
00087 
00094     virtual QIcon icon() const = 0;
00095 
00099     virtual bool isHideable() const;
00100 
00104     Order order() const;
00105 
00111     void setOrder(Order order);
00112 
00113 signals:
00117     void changed(SystemTray::Task *task = 0);
00118 
00122     void destroyed(SystemTray::Task *task = 0);
00123 
00124 protected:
00125     Task();
00126 
00135     virtual QGraphicsWidget* createWidget(Plasma::Applet *host) = 0;
00136 
00137 private slots:
00138     void widgetDeleted();
00139 
00140 private:
00141     class Private;
00142     Private* const d;
00143 };
00144 
00145 }
00146 
00147 
00148 #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