KWin
notifications.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KWIN_NOTIFICATIONS_H
00023 #define KWIN_NOTIFICATIONS_H
00024
00025 #include <stdlib.h>
00026 #include <QString>
00027 #include <QList>
00028
00029 namespace KWin
00030 {
00031
00032 class Client;
00033
00034 class Notify
00035 {
00036 public:
00037
00038 enum Event
00039 {
00040 Activate,
00041 Close,
00042 Minimize,
00043 UnMinimize,
00044 Maximize,
00045 UnMaximize,
00046 OnAllDesktops,
00047 NotOnAllDesktops,
00048 New,
00049 Delete,
00050 TransNew,
00051 TransDelete,
00052 ShadeUp,
00053 ShadeDown,
00054 MoveStart,
00055 MoveEnd,
00056 ResizeStart,
00057 ResizeEnd,
00058 DemandAttentionCurrent,
00059 DemandAttentionOther,
00060 DesktopChange = 100
00061 };
00062
00063 static bool raise( Event, const QString& message = QString(), Client* c = NULL );
00064 static void sendPendingEvents();
00065 private:
00066 static QString eventToName( Event );
00067 struct EventData
00068 {
00069 QString event;
00070 QString message;
00071 long window;
00072 };
00073 static QList< EventData > pending_events;
00074 };
00075
00076 }
00077
00078 #endif