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

KDEUI

ksystemtrayicon.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 1999 Matthias Ettrich <ettrich@kde.org>
00003    Copyright (C) 2007      by Charles Connell <charles@connells.org>
00004    Copyright (C) 2008 Lukas Appelhans <l.appelhans@gmx.de>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License version 2 as published by the Free Software Foundation.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 #ifndef KSYSTEMTRAY_H
00021 #define KSYSTEMTRAY_H
00022 
00023 #include <kdeui_export.h>
00024 #include <kglobal.h>
00025 
00026 #include <QtGui/QSystemTrayIcon>
00027 
00028 class KActionCollection;
00029 class KSystemTrayIconPrivate;
00030 class QAction;
00031 class QMovie;
00032 
00056 class KDEUI_EXPORT KSystemTrayIcon : public QSystemTrayIcon //krazy:exclude=qclasses
00057 {
00058     Q_OBJECT
00059 public:
00073     explicit KSystemTrayIcon( QWidget* parent = 0 );
00074 
00079     explicit KSystemTrayIcon( const QString& icon, QWidget* parent = 0 );
00080 
00085     explicit KSystemTrayIcon( const QIcon& icon, QWidget* parent = 0 );
00086 
00092     explicit KSystemTrayIcon(QMovie* movie, QWidget* parent);
00093 
00097     ~KSystemTrayIcon();
00098 
00105     void setMovie(QMovie* movie);
00106 
00113     const QMovie* movie() const;
00114 
00119     KActionCollection* actionCollection();
00120 
00124     QWidget *parentWidget() const;
00125 
00132     bool parentWidgetTrayClose() const;
00133 
00140     static QIcon loadIcon(const QString &icon, const KComponentData &componentData = KGlobal::mainComponent());
00141 
00152     void setContextMenuTitle(QAction *action);
00153 
00158     QAction *contextMenuTitle() const;
00159 
00160 Q_SIGNALS:
00165     void quitSelected();
00166 
00167 public Q_SLOTS:
00168     void toggleActive();
00169 
00170 private Q_SLOTS:
00171     void contextMenuAboutToShow();
00172     void minimizeRestoreAction();
00173     void maybeQuit();
00174     void activateOrHide( QSystemTrayIcon::ActivationReason reasonCalled );
00175 
00176 private:
00177     void init( QWidget* );
00178     void minimizeRestore( bool restore );
00179 
00180     KSystemTrayIconPrivate* const d;
00181 
00182 Q_PRIVATE_SLOT(d, void _k_slotNewFrame())
00183 };
00184 
00185 #endif
00186 

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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