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

Applets

systemtray.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   systemtray.h                                                          *
00003  *                                                                         *
00004  *   Copyright (C) 2007 Alexander Rodin <rodin.alexander@gmail.com>        *
00005  *   Copyright (C) 2007 Jason Stubbs <jasonbstubbs@gmail.com>              *
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 SYSTEMTRAY_H
00024 #define SYSTEMTRAY_H
00025 
00026 // Own
00027 #include "systemtraywidget.h"
00028 
00029 // Qt
00030 #include <QPointer>
00031 
00032 // Plasma
00033 #include <plasma/applet.h>
00034 
00035 class QTimer;
00036 
00037 namespace Plasma
00038 {
00039     class PanelSvg;
00040 }
00041 
00042 class SystemTray: public Plasma::Applet
00043 {
00044 Q_OBJECT
00045 
00046 public:
00047     explicit SystemTray(QObject *parent, const QVariantList &arguments = QVariantList());
00048     ~SystemTray();
00049 
00050     void constraintsEvent(Plasma::Constraints constraints);
00051     void paintInterface(QPainter *painter,
00052                         const QStyleOptionGraphicsItem *option,
00053                         const QRect &contentsRect);
00054 
00055 private slots:
00056     void updateWidgetGeometry();
00057     void startupDelayer();
00058 
00059 private:
00060     void updateWidgetOrientation();
00061 
00062     static const int STARTUP_TIMER_DELAY = 1500;
00063 
00064     Plasma::PanelSvg *m_background;
00065     QTimer *m_startUpDelayShowTimer;
00066     bool m_showOwnBackground;
00067 
00068     // The parent widget might delete this so we guard it
00069     QPointer<SystemTrayWidget> m_systemTrayWidget;
00070 };
00071 
00072 K_EXPORT_PLASMA_APPLET(systemtray, SystemTray)
00073 
00074 #endif // SYSTEMTRAY_H

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
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
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