22#ifndef SRC_HEADERS_JSONRPC_H_
23#define SRC_HEADERS_JSONRPC_H_
28#include <giomm/init.h>
29#include <giomm/socketservice.h>
30#include "jsonrpc_methods.h"
84 std::bitset<END_OF_FLAGS>
flags;
89 void exec(Glib::ustring cmd);
99 void listen(
const Glib::ustring& tp);
141 virtual bool on_incoming(
const Glib::RefPtr<Gio::SocketConnection>& connection,
142 const Glib::RefPtr<Glib::Object>& source_object);
160 void display(
const Glib::ustring& bank,
const Glib::ustring& preset);
169 std::vector<ChangedPlugin>& vec);
175 TunerSwitcher& tunerswitcher, sigc::slot<void> quit_mainloop_,
176 const Glib::ustring& host,
int *port);
unsigned int current_offset
void call(gx_system::JsonWriter &jw, const methodnames *mn, JsonArray ¶ms)
gx_system::JsonStringParser jp
bool on_data_in(Glib::IOCondition cond)
bool is_activated(msg_type n)
Glib::RefPtr< Gio::SocketConnection > connection
void send_notify_begin(gx_system::JsonStringWriter &jw, const char *method)
void activate(int n, bool v)
friend class UiBuilderVirt
void write_error(gx_system::JsonWriter &jw, int code, const char *message)
void update_maxlevel(const std::string &id, float v)
void error_response(gx_system::JsonWriter &jw, int code, const Glib::ustring &message)
void exec(Glib::ustring cmd)
void notify(gx_system::JsonStringWriter &jw, const methodnames *mn, JsonArray ¶ms)
std::list< std::string > outgoing
void write_error(gx_system::JsonWriter &jw, int code, Glib::ustring &message)
void listen(const Glib::ustring &tp)
void error_response(gx_system::JsonWriter &jw, int code, const char *message)
void send_notify_end(gx_system::JsonStringWriter &jw, bool send_out=true)
bool on_data_out(Glib::IOCondition cond)
CmdConnection(GxService &serv, const Glib::RefPtr< Gio::SocketConnection > &connection_)
bool find_token(const Glib::ustring &token, msg_type *start, msg_type *end)
bool request(gx_system::JsonStringParser &jp, gx_system::JsonStringWriter &jw, bool batch_start)
void unlisten(const Glib::ustring &tp)
std::bitset< END_OF_FLAGS > flags
void send(gx_system::JsonStringWriter &jw)
@ f_parameter_change_notify
std::map< string, float > maxlevel
void process(gx_system::JsonStringParser &jp)
sigc::connection save_conn
void send_rack_changed(bool stereo, CmdConnection *cmd)
void ladspaloader_write_changes(gx_system::JsonWriter &jw, std::vector< ChangedPlugin > &changed_plugins)
void broadcast(gx_system::JsonStringWriter &jw, CmdConnection::msg_type n, CmdConnection *sender=0)
GxService(gx_preset::GxSettings &settings_, gx_jack::GxJack &jack_, TunerSwitcher &tunerswitcher, sigc::slot< void > quit_mainloop_, const Glib::ustring &host, int *port)
void serialize_parameter_change(gx_system::JsonWriter &jw)
void on_rack_unit_changed(bool stereo)
void create_bluetooth_sockets(const Glib::ustring &host)
void on_selection_done(bool v)
void ladspaloader_update_plugins(gx_system::JsonWriter *jw, CmdConnection *cmd)
void remove_connection(CmdConnection *p)
bool broadcast_listeners(CmdConnection::msg_type n, CmdConnection *sender=0)
void on_presetlist_changed()
void on_param_value_changed(gx_engine::Parameter *p)
void on_engine_state_change(gx_engine::GxEngineState state)
std::map< std::string, float > maxlevel
std::map< std::string, bool > * preg_map
static void add_changed_plugin(gx_engine::Plugin *pl, gx_engine::PluginChange::pc v, std::vector< ChangedPlugin > &vec)
gx_system::JsonStringWriter * jwc
std::queue< broadcast_data > broadcast_list
void on_tuner_freq_changed()
gx_preset::GxSettings & settings
void on_log_message(const string &msg, GxLogger::MsgType tp, bool plugged)
void display(const Glib::ustring &bank, const Glib::ustring &preset)
TunerSwitcher & tuner_switcher
std::list< CmdConnection * > connection_list
virtual bool on_incoming(const Glib::RefPtr< Gio::SocketConnection > &connection, const Glib::RefPtr< Glib::Object > &source_object)
void on_param_insert_remove(gx_engine::Parameter *p, bool insert)
void connect_value_changed_signal(gx_engine::Parameter *p)
float update_maxlevel(const std::string &id, bool reset=false)
bool idle_broadcast_handler()
void set_display_state(TunerSwitcher::SwitcherState newstate)
void on_midi_value_changed(int ctl, int value)
sigc::slot< void > quit_mainloop
JsonValue * operator[](unsigned int i)
void append(gx_system::JsonParser &jp)
virtual int getInt() const
virtual gx_system::JsonSubParser getSubParser() const
virtual const Glib::ustring & getString() const
virtual double getFloat() const
void send_notify_begin(const char *method)
const char * engine_state_to_string(gx_engine::GxEngineState s)
gx_engine::GxEngineState string_to_engine_state(const std::string &s)
gx_engine::PluginChange::pc status
ChangedPlugin(const std::string &id_, gx_engine::PluginChange::pc status_)
gx_system::JsonStringWriter * jw
CmdConnection::msg_type n