fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
add_public_events_task.h
Go to the documentation of this file.
1 #ifndef ADD_PUBLIC_EVENTS_TASK_H
2 #define ADD_PUBLIC_EVENTS_TASK_H
3 
4 #include <QRunnable>
5 #include <string>
6 #include <json.hpp>
7 
8 class AddPublicEventsTask : public QRunnable {
9  void run();
10  public:
12  const std::string &sType,
13  const std::string &sMessage,
14  const nlohmann::json &jsonMeta
15  );
17  private:
18  std::string m_sMessage;
19  std::string m_sType;
20  nlohmann::json m_jsonMeta;
21  std::string TAG;
22 };
23 
24 #endif // ADD_PUBLIC_EVENTS_TASK_H
~AddPublicEventsTask()
Definition: add_public_events_task.cpp:24
std::string m_sType
Definition: add_public_events_task.h:19
std::string TAG
Definition: add_public_events_task.h:21
std::string m_sMessage
Definition: add_public_events_task.h:18
void run()
Definition: add_public_events_task.cpp:28
AddPublicEventsTask(const std::string &sType, const std::string &sMessage, const nlohmann::json &jsonMeta)
Definition: add_public_events_task.cpp:13
Definition: add_public_events_task.h:8
nlohmann::json m_jsonMeta
Definition: add_public_events_task.h:20