Changeset 14647 for trunk/FACT++
- Timestamp:
- 11/18/12 15:19:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/RemoteControl.h
r14566 r14647 174 174 bool JsSetState(int s) { if (!fImp || fImp->GetCurrentState()<2) return false; SetSection(s-4); return true; } 175 175 int JsGetState(const string &n) const { return fImp ? fImp->GetStateIndex(n) : StateMachineImp::kSM_NotAvailable; } 176 State JsGetCurrentState() const 177 { 178 if (!fImp) 179 return State(); 180 const int idx = fImp->GetCurrentState(); 181 return State(idx, fImp->GetStateName(idx), fImp->GetStateDescription(idx)); 182 } 176 183 State JsState(const std::string &server) { return fImp ? fImp->GetServerState(server) : State(-256, string()); } 177 184 bool JsNewState(int s, const string &n, const string &c)
Note:
See TracChangeset
for help on using the changeset viewer.