21#ifndef KICAD_API_SERVER_H
22#define KICAD_API_SERVER_H
29#include <wx/filename.h>
71 std::string SocketPath()
const;
73 const std::string&
Token()
const {
return m_token; }
84 void onApiRequest( std::string* aRequest );
90 void handleApiEvent( wxCommandEvent& aEvent );
92 void log(
const std::string& aOutput );
94 std::unique_ptr<KINNG_REQUEST_SERVER>
m_server;
wxDECLARE_EVENT(API_REQUEST_EVENT, wxCommandEvent)
std::unique_ptr< API_HANDLER_COMMON > m_commonHandler
static wxString s_logFileName
std::set< API_HANDLER * > m_handlers
const std::string & Token() const
void SetReadyToReply(bool aReady=true)
std::unique_ptr< KINNG_REQUEST_SERVER > m_server