aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-09-07 20:33:33 (GMT)
committerfluxgen <fluxgen>2002-09-07 20:33:33 (GMT)
commite562b1568eb2951137a21b307af366782c473bca (patch)
treeaf324e1b801d3bc967579dc4289b7bf885cb7831 /src
parente9cd9e763d85940d4fbf770537fcde64d202c2f6 (diff)
downloadfluxbox_pavel-e562b1568eb2951137a21b307af366782c473bca.zip
fluxbox_pavel-e562b1568eb2951137a21b307af366782c473bca.tar.bz2
atom handler interface
Diffstat (limited to 'src')
-rw-r--r--src/AtomHandler.hh51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/AtomHandler.hh b/src/AtomHandler.hh
new file mode 100644
index 0000000..d1c6d8d
--- /dev/null
+++ b/src/AtomHandler.hh
@@ -0,0 +1,51 @@
1// AtomHandler for fluxbox
2// Copyright (c) 2002 Henrik Kinnunen (fluxgen@fluxbox.org)
3//
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.1 2002/09/07 20:33:33 fluxgen Exp $
23
24#ifndef ATOMHANDLER_HH
25#define ATOMHANDLER_HH
26
27#include <X11/Xlib.h>
28
29class FluxboxWindow;
30class BScreen;
31
32class AtomHandler {
33public:
34 virtual ~AtomHandler() { }
35 virtual void initForScreen(const BScreen &screen) = 0;
36 virtual void updateClientList(const BScreen &screen) = 0;
37 virtual void updateWorkspaceNames(const BScreen &screen) = 0;
38 virtual void updateCurrentWorkspace(const BScreen &screen) = 0;
39 virtual void updateWorkspaceCount(const BScreen &screen) = 0;
40 virtual void updateState(FluxboxWindow *win) = 0;
41 virtual void updateHints(FluxboxWindow *win) = 0;
42 virtual bool checkClientMessage(const XClientMessageEvent &ce, BScreen *screen, FluxboxWindow *win) = 0;
43 bool update() const { return m_update; }
44protected:
45 void disableUpdate() { m_update = false; }
46 void enableUpdate() { m_update = true; }
47private:
48 bool m_update; ///< do we get update or not
49};
50
51#endif // ATOMHANDLER_HH