diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2010-09-13 20:04:24 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2010-09-13 20:04:24 (GMT) |
commit | deb6a1ebf43f458b720abbc6a7180e9a8e04771a (patch) | |
tree | ecff64e1eb70e43ff15b93de2f98953cfadd0067 /src/AtomHandler.hh | |
parent | f6af17aa58701cdb579cca52ac83edf289e118e7 (diff) | |
download | fluxbox_pavel-deb6a1ebf43f458b720abbc6a7180e9a8e04771a.zip fluxbox_pavel-deb6a1ebf43f458b720abbc6a7180e9a8e04771a.tar.bz2 |
code simplification
we do not need a std::map just to store an attribute on an AtomHandler,
it makes housekeeping just more annoying.
Diffstat (limited to 'src/AtomHandler.hh')
-rw-r--r-- | src/AtomHandler.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/AtomHandler.hh b/src/AtomHandler.hh index aa38ed2..6e517d0 100644 --- a/src/AtomHandler.hh +++ b/src/AtomHandler.hh | |||
@@ -23,6 +23,7 @@ | |||
23 | #ifndef ATOMHANDLER_HH | 23 | #ifndef ATOMHANDLER_HH |
24 | #define ATOMHANDLER_HH | 24 | #define ATOMHANDLER_HH |
25 | 25 | ||
26 | #include <string> | ||
26 | #include <X11/Xlib.h> | 27 | #include <X11/Xlib.h> |
27 | 28 | ||
28 | class FluxboxWindow; | 29 | class FluxboxWindow; |
@@ -61,6 +62,10 @@ public: | |||
61 | 62 | ||
62 | /// should this object be updated or not? | 63 | /// should this object be updated or not? |
63 | bool update() const { return m_update; } | 64 | bool update() const { return m_update; } |
65 | |||
66 | void setName(const std::string& name) { m_name = name; } | ||
67 | const std::string& getName() const { return m_name; } | ||
68 | |||
64 | protected: | 69 | protected: |
65 | AtomHandler():m_update(true) { } | 70 | AtomHandler():m_update(true) { } |
66 | 71 | ||
@@ -68,6 +73,7 @@ protected: | |||
68 | void enableUpdate() { m_update = true; } | 73 | void enableUpdate() { m_update = true; } |
69 | private: | 74 | private: |
70 | bool m_update; ///< do we get update or not | 75 | bool m_update; ///< do we get update or not |
76 | std::string m_name; ///< name of atomhandler | ||
71 | }; | 77 | }; |
72 | 78 | ||
73 | #endif // ATOMHANDLER_HH | 79 | #endif // ATOMHANDLER_HH |