fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
Static Public Member Functions | List of all members
RunTasks Class Reference

#include <runtasks.h>

Static Public Member Functions

static void AddPublicEvents (const std::string &sType, const std::string &sMessage, const nlohmann::json &jsonMeta)
 
static void UpdateUserLocation (int userid, const std::string &sLastip)
 
static void UpdateMaxScoreGame (int gameid)
 
static void UpdateUserRating (int nUserID)
 
static void UpdateQuestSolved (int nQuestID)
 
static void MailSend (const std::string &sTo, const std::string &sSubject, const std::string &sContent)
 
static void NotifyToAll (const nlohmann::json &jsonMessage)
 
static void LXDAsyncOperation (void(*func)(const std::string &, std::string &, int &), const std::string &sName, const std::string &sCMD, ModelRequest *pRequest)
 
static void waitForDone ()
 

Member Function Documentation

◆ AddPublicEvents()

void RunTasks::AddPublicEvents ( const std::string &  sType,
const std::string &  sMessage,
const nlohmann::json &  jsonMeta 
)
static

◆ LXDAsyncOperation()

void RunTasks::LXDAsyncOperation ( void(*)(const std::string &, std::string &, int &)  func,
const std::string &  sName,
const std::string &  sCMD,
ModelRequest pRequest 
)
static

◆ MailSend()

void RunTasks::MailSend ( const std::string &  sTo,
const std::string &  sSubject,
const std::string &  sContent 
)
static

◆ NotifyToAll()

void RunTasks::NotifyToAll ( const nlohmann::json &  jsonMessage)
static

◆ UpdateMaxScoreGame()

void RunTasks::UpdateMaxScoreGame ( int  gameid)
static

◆ UpdateQuestSolved()

void RunTasks::UpdateQuestSolved ( int  nQuestID)
static

◆ UpdateUserLocation()

void RunTasks::UpdateUserLocation ( int  userid,
const std::string &  sLastip 
)
static

◆ UpdateUserRating()

void RunTasks::UpdateUserRating ( int  nUserID)
static

◆ waitForDone()

void RunTasks::waitForDone ( )
static

The documentation for this class was generated from the following files: