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

KWin

notifications.h

Go to the documentation of this file.
00001 /********************************************************************
00002  KWin - the KDE window manager
00003  This file is part of the KDE project.
00004 
00005 Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
00006 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
00007 
00008 This program is free software; you can redistribute it and/or modify
00009 it under the terms of the GNU General Public License as published by
00010 the Free Software Foundation; either version 2 of the License, or
00011 (at your option) any later version.
00012 
00013 This program is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 GNU General Public License for more details.
00017 
00018 You should have received a copy of the GNU General Public License
00019 along with this program.  If not, see <http://www.gnu.org/licenses/>.
00020 *********************************************************************/
00021 
00022 #ifndef KWIN_NOTIFICATIONS_H
00023 #define KWIN_NOTIFICATIONS_H
00024 
00025 #include <knotification.h>
00026 #include <stdlib.h>
00027 #include <QString>
00028 #include <QList>
00029 
00030 namespace KWin
00031 {
00032 
00033 class Client;
00034 
00035 class Notify
00036     {
00037     public:
00038 
00039         enum Event 
00040             {
00041             Activate,
00042             Close,
00043             Minimize,
00044             UnMinimize,
00045             Maximize,
00046             UnMaximize,
00047             OnAllDesktops,
00048             NotOnAllDesktops,
00049             New,
00050             Delete,
00051             TransNew,
00052             TransDelete,
00053             ShadeUp,
00054             ShadeDown,
00055             MoveStart,
00056             MoveEnd,
00057             ResizeStart,
00058             ResizeEnd,
00059             DemandAttentionCurrent,
00060             DemandAttentionOther,
00061             CompositingSlow,
00062             DesktopChange = 100
00063             };
00064 
00065         static bool raise( Event, const QString& message = QString(), Client* c = NULL );
00066         static void sendPendingEvents();
00067     private:
00068         struct EventData
00069             {
00070             QString event;
00071             QString message;
00072             long window;
00073             KNotification::NotificationFlags flags;
00074             };
00075         static QList< EventData > pending_events;
00076     };
00077 
00078 } // namespace
00079 
00080 #endif

KWin

Skip menu "KWin"
  • 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