OpenCPN Partial API docs
|
Base interface for local server command handling. More...
#include "model/local_api.h"
Public Member Functions | |
virtual void | SetGetRestApiEndpointCb (std::function< std::string()> cb) |
Set callback returning the rest server root endpoint. | |
Static Public Member Functions | |
static LocalServerApi & | GetInstance () |
static void | ReleaseInstance () |
Release Instance. | |
Public Attributes | |
EventVar | on_raise |
Notified on the Raise command. | |
EventVar | on_quit |
Notified on the Quit command. | |
std::function< bool(const std::string &)> | open_file_cb |
Callback invoked on open command with a file path argument. | |
std::function< std::string()> | get_rest_api_endpoint_cb |
Protected Member Functions | |
~LocalServerApi ()=default | |
Destroy the Local Server Api object. | |
Base interface for local server command handling.
Definition at line 65 of file local_api.h.
|
inlineprotected |
Definition at line 90 of file local_api.h.
|
static |
Definition at line 90 of file ipc_factories.cpp.
|
static |
Release Instance.
Definition at line 94 of file ipc_factories.cpp.
|
inlinevirtual |
Set callback returning the rest server root endpoint.
Definition at line 83 of file local_api.h.
std::function<std::string()> LocalServerApi::get_rest_api_endpoint_cb |
Definition at line 87 of file local_api.h.
EventVar LocalServerApi::on_quit |
Notified on the Quit command.
Definition at line 77 of file local_api.h.
EventVar LocalServerApi::on_raise |
Notified on the Raise command.
Definition at line 74 of file local_api.h.
std::function<bool(const std::string&)> LocalServerApi::open_file_cb |
Callback invoked on open command with a file path argument.
Definition at line 80 of file local_api.h.