haiku/src/servers/media/NotificationManager.h
beveloper 1d616657b9 changed the notification support
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-02 12:01:37 +00:00

28 lines
508 B
C++

class Queue;
class NotificationManager
{
public:
NotificationManager();
~NotificationManager();
void EnqueueMessage(BMessage *msg);
void CleanupTeam(team_id team);
private:
void RequestNotifications(BMessage *msg);
void CancelNotifications(BMessage *msg);
void SendNotifications(BMessage *msg);
void BroadcastMessages(BMessage *msg);
void WorkerThread();
static int32 worker_thread(void *arg);
private:
Queue * fNotificationQueue;
thread_id fNotificationThreadId;
BLocker * fLocker;
};