aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorkspaceCmd.hh')
-rw-r--r--src/WorkspaceCmd.hh28
1 files changed, 24 insertions, 4 deletions
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh
index a530ae8..4f4545d 100644
--- a/src/WorkspaceCmd.hh
+++ b/src/WorkspaceCmd.hh
@@ -32,17 +32,37 @@
32 32
33#include "FbTk/RefCount.hh" 33#include "FbTk/RefCount.hh"
34 34
35class WindowHelperCmd;
36
37class WindowListCmd: public FbTk::Command { 35class WindowListCmd: public FbTk::Command {
38public: 36public:
39 WindowListCmd(FbTk::RefCount<WindowHelperCmd> cmd, const std::string &pat): 37 WindowListCmd(FbTk::RefCount<FbTk::Command> cmd, const std::string &pat):
40 m_cmd(cmd), m_pat(pat.c_str()) { } 38 m_cmd(cmd), m_pat(pat.c_str()) { }
41 39
42 void execute(); 40 void execute();
43 41
44private: 42private:
45 FbTk::RefCount<WindowHelperCmd> m_cmd; 43 FbTk::RefCount<FbTk::Command> m_cmd;
44 ClientPattern m_pat;
45};
46
47class SomeCmd: public FbTk::BoolCommand {
48public:
49 SomeCmd(FbTk::RefCount<FbTk::BoolCommand> cmd): m_cmd(cmd) { }
50
51 bool bool_execute();
52
53private:
54 FbTk::RefCount<FbTk::BoolCommand> m_cmd;
55 ClientPattern m_pat;
56};
57
58class EveryCmd: public FbTk::BoolCommand {
59public:
60 EveryCmd(FbTk::RefCount<FbTk::BoolCommand> cmd): m_cmd(cmd) { }
61
62 bool bool_execute();
63
64private:
65 FbTk::RefCount<FbTk::BoolCommand> m_cmd;
46 ClientPattern m_pat; 66 ClientPattern m_pat;
47}; 67};
48 68