2016-06-05 01:32:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Project64-core/Notification.h>
|
|
|
|
|
|
|
|
class CNotificationImp :
|
|
|
|
public CNotification
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CNotificationImp(void);
|
2016-09-17 01:43:32 +00:00
|
|
|
virtual ~CNotificationImp();
|
2016-06-05 01:32:57 +00:00
|
|
|
|
2021-03-13 10:16:19 +00:00
|
|
|
// Error messages
|
2016-06-05 01:32:57 +00:00
|
|
|
void DisplayError(const char * Message) const;
|
|
|
|
void DisplayError(LanguageStringID StringID) const;
|
|
|
|
|
|
|
|
void FatalError(const char * Message) const;
|
|
|
|
void FatalError(LanguageStringID StringID) const;
|
|
|
|
|
2021-03-13 10:16:19 +00:00
|
|
|
// User feedback
|
2019-04-22 21:31:10 +00:00
|
|
|
void DisplayWarning(const char * Message) const;
|
|
|
|
void DisplayWarning(LanguageStringID StringID) const;
|
|
|
|
|
2016-06-05 01:32:57 +00:00
|
|
|
void DisplayMessage(int DisplayTime, const char * Message) const;
|
|
|
|
void DisplayMessage(int DisplayTime, LanguageStringID StringID) const;
|
|
|
|
|
|
|
|
void DisplayMessage2(const char * Message) const;
|
|
|
|
|
2021-03-13 10:16:19 +00:00
|
|
|
// Ask a yes/no question to the user, yes = true, no = false
|
2016-06-05 01:32:57 +00:00
|
|
|
bool AskYesNoQuestion(const char * Question) const;
|
|
|
|
void BreakPoint(const char * FileName, int32_t LineNumber);
|
|
|
|
|
|
|
|
void AppInitDone(void);
|
|
|
|
bool ProcessGuiMessages(void) const;
|
|
|
|
void ChangeFullScreen(void) const;
|
|
|
|
|
|
|
|
private:
|
2021-04-13 00:07:11 +00:00
|
|
|
CNotificationImp(const CNotificationImp&);
|
|
|
|
CNotificationImp& operator=(const CNotificationImp&);
|
2016-06-05 01:32:57 +00:00
|
|
|
|
|
|
|
mutable time_t m_NextMsg;
|
|
|
|
};
|
|
|
|
|
2021-03-13 10:16:19 +00:00
|
|
|
CNotificationImp & Notify(void);
|