2015-12-30 18:55:08 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class News : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
News();
|
2016-08-15 10:40:30 -04:00
|
|
|
~News();
|
|
|
|
|
2016-09-16 05:04:28 -04:00
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
2016-11-20 08:09:07 -05:00
|
|
|
const char* getName() { return "News"; };
|
2016-08-15 10:40:30 -04:00
|
|
|
#endif
|
|
|
|
|
2016-11-20 08:09:07 -05:00
|
|
|
bool unitTest();
|
2015-12-30 18:55:08 -05:00
|
|
|
|
|
|
|
private:
|
2016-06-02 09:11:31 -04:00
|
|
|
static std::thread Thread;
|
2016-08-30 18:23:17 -04:00
|
|
|
static bool Terminate;
|
|
|
|
|
|
|
|
static void CheckForUpdate();
|
|
|
|
static void ExitProcessStub(unsigned int exitCode);
|
2016-10-03 12:30:37 -04:00
|
|
|
|
|
|
|
static const char* GetNewsText();
|
2015-12-30 18:55:08 -05:00
|
|
|
};
|
|
|
|
}
|