Debian Codegraph @

CodeLite/LSP/DocumentSymbolsRequest.hpp

raw
1 #ifndef DOCUMDENET_SYMBOLS_REQUEST_HPP
2 #define DOCUMDENET_SYMBOLS_REQUEST_HPP
3
4 #include "LSP/Request.h"
5 #include "LSP/basic_types.h"
6
7 #include <vector>
8 #include <wx/filename.h>
9
10 namespace LSP
11 {
12 class WXDLLIMPEXP_CL DocumentSymbolsRequest : public LSP::Request
13 {
14 public:
15 enum eDocumentSymbolsContext {
16 CONTEXT_NONE = 0,
17 CONTEXT_SEMANTIC_HIGHLIGHT = 1 << 0,
18 CONTEXT_QUICK_OUTLINE = 1 << 1,
19 CONTEXT_OUTLINE_VIEW = 1 << 2,
20 };
21
22 private:
23 size_t m_context = CONTEXT_NONE;
24
25 private:
26 void QueueEvent(wxEvtHandler* owner, const std::vector<LSP::SymbolInformation>& symbols, const wxString& filename,
27 const wxEventType& event_type);
28
29 public:
30 explicit DocumentSymbolsRequest(const wxString& filename, size_t context);
31 virtual ~DocumentSymbolsRequest();
32 void OnResponse(const LSP::ResponseMessage& response, wxEvtHandler* owner);
33 };
34 }; // namespace LSP
35 #endif // DOCUMDENET_SYMBOLS_REQUEST_HPP