Index: trunk/FACT++/src/RemoteControl.h
===================================================================
--- trunk/FACT++/src/RemoteControl.h	(revision 14646)
+++ trunk/FACT++/src/RemoteControl.h	(revision 14647)
@@ -174,4 +174,11 @@
     bool  JsSetState(int s)                   { if (!fImp || fImp->GetCurrentState()<2) return false; SetSection(s-4); return true; }
     int   JsGetState(const string &n) const   { return fImp ? fImp->GetStateIndex(n) : StateMachineImp::kSM_NotAvailable; }
+    State JsGetCurrentState() const
+    {
+        if (!fImp)
+            return State();
+        const int idx = fImp->GetCurrentState();
+        return State(idx, fImp->GetStateName(idx), fImp->GetStateDescription(idx));
+    }
     State JsState(const std::string &server)  { return fImp ? fImp->GetServerState(server) : State(-256, string()); }
     bool  JsNewState(int s, const string &n, const string &c)
