teleport/client/tp_assist_win/ts_cfg.h

41 lines
573 B
C
Raw Normal View History

2016-12-06 17:05:56 +00:00
#ifndef __TS_CFG_H__
#define __TS_CFG_H__
#include <ex.h>
#include <vector>
#include <json/json.h>
class TsCfg
{
public:
TsCfg();
virtual ~TsCfg();
bool init(void);
bool save(const ex_astr& new_value);
Json::Value& get_root() { return m_root; }
2016-12-06 17:05:56 +00:00
2017-10-11 00:53:01 +00:00
ex_wstr ssh_app;
ex_wstr ssh_cmdline;
ex_wstr scp_app;
ex_wstr scp_cmdline;
ex_wstr telnet_app;
ex_wstr telnet_cmdline;
2016-12-06 17:05:56 +00:00
ex_wstr rdp_name;
ex_wstr rdp_app;
ex_wstr rdp_cmdline;
protected:
bool _load(const ex_astr& str_json);
protected:
Json::Value m_root;
};
extern TsCfg g_cfg;
2016-12-06 17:05:56 +00:00
#endif // __TS_CFG_H__