ddnet/src/engine/client/notifications.h
Robert Müller 013b8dffa5 Add INotifications kernel interface
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.
2023-12-16 18:15:43 +01:00

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