1d616657b9
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1341 a95241bf-73f2-0310-859d-f6bbb57e9c96
28 lines
508 B
C++
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;
|
|
};
|