iw4x-client/src/Components/Modules/News.hpp
2017-01-20 14:37:52 +01:00

27 lines
434 B
C++

#pragma once
namespace Components
{
class News : public Component
{
public:
News();
~News();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() override { return "News"; };
#endif
bool unitTest() override;
private:
static std::thread Thread;
static bool Terminate;
static void CheckForUpdate();
static void ExitProcessStub(unsigned int exitCode);
static const char* GetNewsText();
};
}