• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • 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 
00060 class KDEUI_EXPORT KSystemTrayIcon : public QSystemTrayIcon //krazy:exclude=qclasses
00061 {
00062     Q_OBJECT
00063 public:
00077     explicit KSystemTrayIcon( QWidget* parent = 0 );
00078 
00083     explicit KSystemTrayIcon( const QString& icon, QWidget* parent = 0 );
00084 
00089     explicit KSystemTrayIcon( const QIcon& icon, QWidget* parent = 0 );
00090 
00096     explicit KSystemTrayIcon(QMovie* movie, QWidget* parent);
00097 
00101     ~KSystemTrayIcon();
00102 
00109     void setMovie(QMovie* movie);
00110 
00117     const QMovie* movie() const;
00118 
00123     KActionCollection* actionCollection();
00124 
00128     QWidget *parentWidget() const;
00129 
00136     bool parentWidgetTrayClose() const;
00137 
00144     static QIcon loadIcon(const QString &icon, const KComponentData &componentData = KGlobal::mainComponent());
00145 
00156     void setContextMenuTitle(QAction *action);
00157 
00162     QAction *contextMenuTitle() const;
00163 
00164 Q_SIGNALS:
00169     void quitSelected();
00170 
00171 public Q_SLOTS:
00172     void toggleActive();
00173 
00174 private Q_SLOTS:
00175     void contextMenuAboutToShow();
00176     void minimizeRestoreAction();
00177     void maybeQuit();
00178     void activateOrHide( QSystemTrayIcon::ActivationReason reasonCalled );
00179 
00180 private:
00181     void init( QWidget* );
00182     void minimizeRestore( bool restore );
00183 
00184     KSystemTrayIconPrivate* const d;
00185 
00186 Q_PRIVATE_SLOT(d, void _k_slotNewFrame())
00187 };
00188 
00189 #endif
00190 

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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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