2003-09-16 19:28:03 +00:00
|
|
|
/*****************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
|
|
|
|
Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
|
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
#ifndef KWIN_NOTIFICATIONS_H
|
|
|
|
#define KWIN_NOTIFICATIONS_H
|
|
|
|
|
2005-05-30 13:31:33 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <qstring.h>
|
2005-10-07 12:00:29 +00:00
|
|
|
#include <qlist.h>
|
2005-05-30 13:31:33 +00:00
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
namespace KWinInternal
|
|
|
|
{
|
|
|
|
|
2005-05-30 13:31:33 +00:00
|
|
|
class Client;
|
|
|
|
|
2003-09-16 19:28:03 +00:00
|
|
|
class Notify
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
enum Event
|
|
|
|
{
|
|
|
|
Activate,
|
|
|
|
Close,
|
|
|
|
Minimize,
|
|
|
|
UnMinimize,
|
|
|
|
Maximize,
|
|
|
|
UnMaximize,
|
|
|
|
OnAllDesktops,
|
|
|
|
NotOnAllDesktops,
|
|
|
|
New,
|
|
|
|
Delete,
|
|
|
|
TransNew,
|
|
|
|
TransDelete,
|
|
|
|
ShadeUp,
|
|
|
|
ShadeDown,
|
|
|
|
MoveStart,
|
|
|
|
MoveEnd,
|
|
|
|
ResizeStart,
|
|
|
|
ResizeEnd,
|
2005-05-30 13:31:33 +00:00
|
|
|
DemandAttentionCurrent,
|
|
|
|
DemandAttentionOther,
|
2003-09-16 19:28:03 +00:00
|
|
|
DesktopChange = 100
|
|
|
|
};
|
|
|
|
|
2006-01-02 16:27:55 +00:00
|
|
|
static bool raise( Event, const QString& message = QString(), Client* c = NULL );
|
2005-05-30 13:31:33 +00:00
|
|
|
static bool makeDemandAttention( Event );
|
2005-10-07 12:00:29 +00:00
|
|
|
static void sendPendingEvents();
|
2005-05-30 13:31:33 +00:00
|
|
|
private:
|
|
|
|
static QString eventToName( Event );
|
2005-10-07 12:00:29 +00:00
|
|
|
struct EventData
|
|
|
|
{
|
|
|
|
QString event;
|
|
|
|
QString message;
|
|
|
|
long window;
|
|
|
|
};
|
|
|
|
static QList< EventData > pending_events;
|
2003-09-16 19:28:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|