aboutsummaryrefslogtreecommitdiff
path: root/src/AtomHandler.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/AtomHandler.hh')
-rw-r--r--src/AtomHandler.hh67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/AtomHandler.hh b/src/AtomHandler.hh
new file mode 100644
index 0000000..45b7914
--- /dev/null
+++ b/src/AtomHandler.hh
@@ -0,0 +1,67 @@
1// AtomHandler for fluxbox
2// Copyright (c) 2002-2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3// 2003 Simon Bowden (rathnor at users.sourceforge.net)
4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation
7// the rights to use, copy, modify, merge, publish, distribute, sublicense,
8// and/or sell copies of the Software, and to permit persons to whom the
9// Software is furnished to do so, subject to the following conditions:
10//
11// The above copyright notice and this permission notice shall be included in
12// all copies or substantial portions of the Software.
13//
14// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE.
21
22// $Id: AtomHandler.hh,v 1.12 2003/07/28 15:06:33 rathnor Exp $
23
24#ifndef ATOMHANDLER_HH
25#define ATOMHANDLER_HH
26
27#include <X11/Xlib.h>
28
29class FluxboxWindow;
30class WinClient;
31class BScreen;
32
33class AtomHandler {
34public:
35 virtual ~AtomHandler() { }
36
37 virtual void initForScreen(BScreen &screen) = 0;
38 virtual void setupFrame(FluxboxWindow &win) = 0;
39 virtual void setupClient(WinClient &winclient) = 0;
40
41 virtual void updateClientList(BScreen &screen) = 0;
42 virtual void updateWorkspaceNames(BScreen &screen) = 0;
43 virtual void updateCurrentWorkspace(BScreen &screen) = 0;
44 virtual void updateWorkspaceCount(BScreen &screen) = 0;
45
46 virtual void updateFrameClose(FluxboxWindow &win) = 0;
47 virtual void updateClientClose(WinClient &winclient) = 0;
48 virtual void updateWorkspace(FluxboxWindow &win) = 0;
49 virtual void updateState(FluxboxWindow &win) = 0;
50 virtual void updateHints(FluxboxWindow &win) = 0;
51 virtual void updateLayer(FluxboxWindow &win) = 0;
52
53 virtual bool checkClientMessage(const XClientMessageEvent &ce,
54 BScreen * screen, WinClient * const winclient) = 0;
55
56 virtual bool propertyNotify(WinClient &winclient, Atom the_property) = 0;
57
58 /// should this object be updated or not?
59 bool update() const { return m_update; }
60protected:
61 void disableUpdate() { m_update = false; }
62 void enableUpdate() { m_update = true; }
63private:
64 bool m_update; ///< do we get update or not
65};
66
67#endif // ATOMHANDLER_HH