2 * Copyright 2002, Marcus Overhagen. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef NOTIFICATION_MANAGER_H
6 #define NOTIFICATION_MANAGER_H
10 #include <MediaNode.h>
11 #include <Messenger.h>
24 class NotificationManager
{
26 NotificationManager();
27 ~NotificationManager();
31 void EnqueueMessage(BMessage
* message
);
33 void CleanupTeam(team_id team
);
36 void RequestNotifications(BMessage
* message
);
37 void CancelNotifications(BMessage
* message
);
38 void SendNotifications(BMessage
* message
);
41 static int32
worker_thread(void* arg
);
44 Queue fNotificationQueue
;
45 thread_id fNotificationThreadId
;
47 List
<Notification
> fNotificationList
;
50 #endif // NOTIFICATION_MANAGER_H