Debian Codegraph @

CodeLite/LSP/GotoDeclarationRequest.h

raw
1 #ifndef GOTO_DECLARATION_REQUEST_H
2 #define GOTO_DECLARATION_REQUEST_H
3
4 #include "LSP/Request.h"
5 #include "basic_types.h"
6 #include <wx/filename.h>
7
8 namespace LSP
9 {
10 class WXDLLIMPEXP_CL GotoDeclarationRequest : public LSP::Request
11 {
12 wxString m_filename;
13 size_t m_line = 0;
14 size_t m_column = 0;
15 bool m_for_add_missing_header = false;
16
17 public:
18 explicit GotoDeclarationRequest(const wxString& filename, size_t line, size_t column, bool for_add_missing_header);
19 virtual ~GotoDeclarationRequest();
20
21 void SetColumn(size_t column) { this->m_column = column; }
22 void SetFilename(const wxString& filename) { this->m_filename = filename; }
23 void SetLine(size_t line) { this->m_line = line; }
24 size_t GetColumn() const { return m_column; }
25 const wxString& GetFilename() const { return m_filename; }
26 size_t GetLine() const { return m_line; }
27 void OnResponse(const LSP::ResponseMessage& response, wxEvtHandler* owner);
28 bool IsPositionDependantRequest() const { return true; }
29 bool IsValidAt(const wxString& filename, size_t line, size_t col) const;
30 };
31 }; // namespace LSP
32 #endif // GOTO_DECLARATION_REQUEST_H