diff options
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 |