diff options
Diffstat (limited to 'src/Command.h')
| -rw-r--r-- | src/Command.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/Command.h b/src/Command.h index 87cdd825..49f4b3d4 100644 --- a/src/Command.h +++ b/src/Command.h @@ -71,9 +71,20 @@ public: void setStatusRealtime() { this->status = STATUS_REALTIME; } - void transitStatus(); + bool statusMatch(Command::STATUS statusFilter) const + { + return statusFilter <= status; + } - bool statusMatch(Command::STATUS statusFilter) const; + void transitStatus() + { + switch(status) { + case STATUS_REALTIME: + break; + default: + status = STATUS_INACTIVE; + } + } }; typedef deque<Command*> Commands; |
