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

libtaskmanager

taskitem.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   This program is distributed in the hope that it will be useful,       *
00009  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00010  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00011  *   GNU General Public License for more details.                          *
00012  *                                                                         *
00013  *   You should have received a copy of the GNU General Public License     *
00014  *   along with this program; if not, write to the                         *
00015  *   Free Software Foundation, Inc.,                                       *
00016  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
00017  ***************************************************************************/
00018 
00019 #ifndef TASKITEM_H
00020 #define TASKITEM_H
00021 
00022 #include <taskmanager/abstractgroupableitem.h>
00023 #include <taskmanager/startup.h>
00024 #include <taskmanager/task.h>
00025 #include <taskmanager/taskmanager_export.h>
00026 
00027 #include <QtGui/QIcon>
00028 
00029 namespace TaskManager
00030 {
00031 
00032 
00036 class TASKMANAGER_EXPORT TaskItem : public AbstractGroupableItem
00037 {
00038     Q_OBJECT
00039 public:
00041     TaskItem(QObject *parent, TaskPtr item);
00043     TaskItem(QObject *parent, StartupPtr item);
00044     ~TaskItem();
00046     void setTaskPointer(TaskPtr);
00048     TaskPtr task() const;
00049 
00050     StartupPtr startup() const;
00051     bool isGroupItem() const { return false; }
00052 
00053     QIcon icon() const;
00054     QString name() const;
00055 
00056     bool isOnCurrentDesktop() const;
00057     bool isOnAllDesktops() const;
00058     int desktop() const;
00059     bool isShaded() const;
00060     bool isMaximized() const;
00061     bool isMinimized() const;
00062     bool isFullScreen() const;
00063     bool isKeptBelowOthers() const;
00064     bool isAlwaysOnTop() const;
00065     bool isActive() const;
00066     bool demandsAttention() const;
00067     bool isActionSupported(NET::Action) const;
00068     void addMimeData(QMimeData *mimeData) const;
00069 
00070 public Q_SLOTS:
00071     void toDesktop(int);
00072 
00073     void setShaded(bool);
00074     void toggleShaded();
00075 
00076     void setMaximized(bool);
00077     void toggleMaximized();
00078 
00079     void setMinimized(bool);
00080     void toggleMinimized();
00081 
00082     void setFullScreen(bool);
00083     void toggleFullScreen();
00084 
00085     void setKeptBelowOthers(bool);
00086     void toggleKeptBelowOthers();
00087 
00088     void setAlwaysOnTop(bool);
00089     void toggleAlwaysOnTop();
00090 
00091     void close();
00092 
00093 Q_SIGNALS:
00095     void gotTaskPointer();
00096 
00097 private:
00098     class Private;
00099     Private * const d;
00100 };
00101 
00102 } // TaskManager namespace
00103 
00104 #endif

libtaskmanager

Skip menu "libtaskmanager"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

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