2015-12-06 09:59:58 +00:00
|
|
|
#pragma once
|
|
|
|
|
2016-01-13 07:23:22 +00:00
|
|
|
#include <Project64-core/Multilanguage.h>
|
2015-12-06 09:59:58 +00:00
|
|
|
|
|
|
|
#ifndef _MSC_VER
|
|
|
|
#define __interface struct
|
|
|
|
#endif
|
|
|
|
|
|
|
|
__interface CNotification
|
|
|
|
{
|
|
|
|
public:
|
2021-04-02 07:34:27 +00:00
|
|
|
// Error messages
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual void DisplayError(const char * Message) const = 0;
|
2015-12-06 09:59:58 +00:00
|
|
|
virtual void DisplayError(LanguageStringID StringID) const = 0;
|
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual void FatalError(const char * Message) const = 0;
|
2015-12-06 09:59:58 +00:00
|
|
|
virtual void FatalError(LanguageStringID StringID) const = 0;
|
|
|
|
|
2021-04-02 07:34:27 +00:00
|
|
|
// User feedback
|
2019-03-18 01:04:05 +00:00
|
|
|
virtual void DisplayWarning(const char * Message) const = 0;
|
|
|
|
virtual void DisplayWarning(LanguageStringID StringID) const = 0;
|
|
|
|
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual void DisplayMessage(int DisplayTime, const char * Message) const = 0;
|
2015-12-06 09:59:58 +00:00
|
|
|
virtual void DisplayMessage(int DisplayTime, LanguageStringID StringID) const = 0;
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual void DisplayMessage2(const char * Message) const = 0;
|
2015-12-06 09:59:58 +00:00
|
|
|
|
2021-04-02 07:34:27 +00:00
|
|
|
// Ask a yes/no question to the user, yes = true, no = false
|
2015-12-23 20:04:36 +00:00
|
|
|
virtual bool AskYesNoQuestion(const char * Question) const = 0;
|
2015-12-06 09:59:58 +00:00
|
|
|
|
2015-12-09 11:37:58 +00:00
|
|
|
virtual void BreakPoint(const char * FileName, int32_t LineNumber) = 0;
|
2015-12-06 09:59:58 +00:00
|
|
|
|
|
|
|
virtual void AppInitDone(void) = 0;
|
|
|
|
virtual bool ProcessGuiMessages(void) const = 0;
|
|
|
|
virtual void ChangeFullScreen(void) const = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern CNotification * g_Notify;
|