summaryrefslogtreecommitdiff
path: root/src/Command.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Command.h')
-rw-r--r--src/Command.h15
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;