Debian Codegraph @

CodeLite/ServiceProvider.h

raw
1 #ifndef SERVICEPROVIDER_H
2 #define SERVICEPROVIDER_H
3
4 #include <wx/event.h>
5 #include "codelite_exports.h"
6 #include <unordered_map>
7 #include <wx/string.h>
8 #include <vector>
9
10 enum class eServiceType {
11 kUnknown = -1,
12 kCodeCompletion,
13 };
14
15 class WXDLLIMPEXP_CL ServiceProvider : public wxEvtHandler
16 {
17 wxString m_name;
18 eServiceType m_type = eServiceType::kUnknown;
19 int m_priority = 50;
20
21 public:
22 typedef std::vector<ServiceProvider*> Vec_t;
23
24 public:
25 ServiceProvider(const wxString& name, eServiceType type);
26 virtual ~ServiceProvider();
27 void SetName(const wxString& name) { this->m_name = name; }
28 void SetPriority(int priority);
29 void SetType(const eServiceType& type) { this->m_type = type; }
30 const wxString& GetName() const { return m_name; }
31 int GetPriority() const { return m_priority; }
32 const eServiceType& GetType() const { return m_type; }
33 };
34
35 #endif // SERVICEPROVIDER_H