fixed start/stop of jsonapi in GUI

This commit is contained in:
csoler 2019-11-16 14:30:36 +01:00
parent a304ec20ef
commit 6878a7773d
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
6 changed files with 89 additions and 71 deletions

View file

@ -20,6 +20,8 @@
*******************************************************************************/
#pragma once
#include <string>
class RsJsonAPI
{
public:
@ -59,6 +61,12 @@ public:
*/
virtual bool requestNewTokenAutorization(const std::string& token)=0;
//=============================================================================================//
// Utility methods //
//=============================================================================================//
static bool parseToken(const std::string& clear_token,std::string& user,std::string& passwd);
//=============================================================================================//
// API methods that SHOULD NOT be accessible through http //
//=============================================================================================//
@ -91,7 +99,7 @@ public:
* @param[in] token decoded
* @return tru if authorized, false otherwise
*/
virtual bool isAuthTokenValid(const std::string& token);
virtual bool isAuthTokenValid(const std::string& token)=0;
};