mirror of
https://github.com/ddnet/ddnet.git
synced 2024-10-20 15:58:18 +00:00
013b8dffa5
Add a proper kernel interface `INotifications` for the notifications component instead of using a C style interface. Add parameter for the application name when initializing notifications to avoid hardcoding the application name. The implementation for macOS is kept in Objective-C and a TODO is added, as the API we are currently using appears to be deprecated.
15 lines
346 B
C++
15 lines
346 B
C++
#ifndef ENGINE_CLIENT_NOTIFICATIONS_H
|
|
#define ENGINE_CLIENT_NOTIFICATIONS_H
|
|
|
|
#include <engine/notifications.h>
|
|
|
|
class CNotifications : public INotifications
|
|
{
|
|
public:
|
|
void Init(const char *pAppname) override;
|
|
void Shutdown() override;
|
|
void Notify(const char *pTitle, const char *pMessage) override;
|
|
};
|
|
|
|
#endif // ENGINE_CLIENT_NOTIFICATIONS_H
|