#ifndef GOTO_DECLARATION_REQUEST_H #define GOTO_DECLARATION_REQUEST_H #include "LSP/Request.h" #include "basic_types.h" #include namespace LSP { class WXDLLIMPEXP_CL GotoDeclarationRequest : public LSP::Request { wxString m_filename; size_t m_line = 0; size_t m_column = 0; bool m_for_add_missing_header = false; public: explicit GotoDeclarationRequest(const wxString& filename, size_t line, size_t column, bool for_add_missing_header); virtual ~GotoDeclarationRequest(); void SetColumn(size_t column) { this->m_column = column; } void SetFilename(const wxString& filename) { this->m_filename = filename; } void SetLine(size_t line) { this->m_line = line; } size_t GetColumn() const { return m_column; } const wxString& GetFilename() const { return m_filename; } size_t GetLine() const { return m_line; } void OnResponse(const LSP::ResponseMessage& response, wxEvtHandler* owner); bool IsPositionDependantRequest() const { return true; } bool IsValidAt(const wxString& filename, size_t line, size_t col) const; }; }; // namespace LSP #endif // GOTO_DECLARATION_REQUEST_H