DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
notifications.h
Go to the documentation of this file.
1
#ifndef ENGINE_NOTIFICATIONS_H
2
#define ENGINE_NOTIFICATIONS_H
3
4
#include "
kernel.h
"
5
6
class
INotifications
:
public
IInterface
7
{
8
MACRO_INTERFACE
(
"notifications"
)
9
public:
10
virtual
void
Init
(const
char
*pAppname) = 0;
11
void
Shutdown
() override = 0;
12
virtual
void
Notify
(const
char
*pTitle, const
char
*pMessage) = 0;
13
};
14
15
INotifications
*
CreateNotifications
();
16
17
#endif
// ENGINE_NOTIFICATIONS_H
IInterface::IInterface
IInterface()
Definition
kernel.h:19
INotifications
Definition
notifications.h:7
INotifications::Shutdown
void Shutdown() override=0
INotifications::Notify
virtual void Notify(const char *pTitle, const char *pMessage)=0
INotifications::Init
virtual void Init(const char *pAppname)=0
kernel.h
MACRO_INTERFACE
#define MACRO_INTERFACE(Name)
Definition
kernel.h:25
CreateNotifications
INotifications * CreateNotifications()
Definition
notifications.cpp:41
src
engine
notifications.h
Generated by
1.18.0