aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/LogicCommands.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-12-13 05:48:00 (GMT)
committermarkt <markt>2007-12-13 05:48:00 (GMT)
commit8b7464046cea5e521ac46811591b0fce0c45aca1 (patch)
tree09df752f426a249ae15375a626a98436c8727593 /src/FbTk/LogicCommands.hh
parentdaca07edafc2e75eb9ee04d35fe80759308a8583 (diff)
downloadfluxbox-8b7464046cea5e521ac46811591b0fce0c45aca1.zip
fluxbox-8b7464046cea5e521ac46811591b0fce0c45aca1.tar.bz2
added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register
Diffstat (limited to 'src/FbTk/LogicCommands.hh')
-rw-r--r--src/FbTk/LogicCommands.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/LogicCommands.hh b/src/FbTk/LogicCommands.hh
index 4f20864..3eb3e8c 100644
--- a/src/FbTk/LogicCommands.hh
+++ b/src/FbTk/LogicCommands.hh
@@ -27,6 +27,7 @@
27#include "Command.hh" 27#include "Command.hh"
28#include "RefCount.hh" 28#include "RefCount.hh"
29 29
30#include <string>
30#include <vector> 31#include <vector>
31 32
32namespace FbTk { 33namespace FbTk {
@@ -43,7 +44,8 @@ public:
43 } else 44 } else
44 if (*m_f) m_f->execute(); 45 if (*m_f) m_f->execute();
45 } 46 }
46 47 static Command *parse(const std::string &cmd, const std::string &args,
48 bool trusted);
47private: 49private:
48 RefCount<BoolCommand> m_cond; 50 RefCount<BoolCommand> m_cond;
49 RefCount<Command> m_t, m_f; 51 RefCount<Command> m_t, m_f;