aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Command.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Command.hh')
-rw-r--r--src/FbTk/Command.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FbTk/Command.hh b/src/FbTk/Command.hh
index 391aa78..5d38cb8 100644
--- a/src/FbTk/Command.hh
+++ b/src/FbTk/Command.hh
@@ -31,6 +31,14 @@ public:
31 virtual void execute() = 0; 31 virtual void execute() = 0;
32}; 32};
33 33
34/// Interface class for boolean commands
35class BoolCommand: public Command {
36public:
37 virtual ~BoolCommand() { }
38 virtual void execute() { bool_execute(); }
39 virtual bool bool_execute() = 0;
40};
41
34} // end namespace FbTk 42} // end namespace FbTk
35 43
36#endif // FBTK_COMMAND_HH 44#endif // FBTK_COMMAND_HH