35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
|
#pragma once
|
||
|
|
||
|
#include "Multilanguage.h"
|
||
|
|
||
|
#ifndef _MSC_VER
|
||
|
#define __interface struct
|
||
|
#endif
|
||
|
|
||
|
__interface CNotification
|
||
|
{
|
||
|
public:
|
||
|
//Error Messages
|
||
|
virtual void DisplayError(const wchar_t * Message) const = 0;
|
||
|
virtual void DisplayError(LanguageStringID StringID) const = 0;
|
||
|
|
||
|
virtual void FatalError(const wchar_t * Message) const = 0;
|
||
|
virtual void FatalError(LanguageStringID StringID) const = 0;
|
||
|
|
||
|
//User Feedback
|
||
|
virtual void DisplayMessage(int DisplayTime, const wchar_t * Message) const = 0;
|
||
|
virtual void DisplayMessage(int DisplayTime, LanguageStringID StringID) const = 0;
|
||
|
virtual void DisplayMessage2(const wchar_t * Message) const = 0;
|
||
|
|
||
|
// Ask a Yes/No Question to the user, yes = true, no = false
|
||
|
virtual bool AskYesNoQuestion(const wchar_t * Question) const = 0;
|
||
|
|
||
|
virtual void BreakPoint(const wchar_t * FileName, int LineNumber) = 0;
|
||
|
|
||
|
virtual void AppInitDone(void) = 0;
|
||
|
virtual bool ProcessGuiMessages(void) const = 0;
|
||
|
virtual void ChangeFullScreen(void) const = 0;
|
||
|
};
|
||
|
|
||
|
extern CNotification * g_Notify;
|