Make UEFI boot-platform build again
[haiku.git] / src / servers / media / AppManager.h
blob4b57095105bb2b36d683169c7bd31cc05088305a
1 /*
2 * Copyright 2002, Marcus Overhagen. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef APP_MANAGER_H
6 #define APP_MANAGER_H
9 #include <map>
11 #include <Locker.h>
12 #include <Messenger.h>
15 class AppManager : BLocker {
16 public:
17 AppManager();
18 ~AppManager();
20 status_t RegisterTeam(team_id team,
21 const BMessenger& messenger);
22 status_t UnregisterTeam(team_id team);
23 bool HasTeam(team_id team);
25 team_id AddOnServerTeam();
27 status_t SendMessage(team_id team, BMessage* message);
29 void Dump();
31 void NotifyRosters();
33 private:
34 void _CleanupTeam(team_id team);
36 private:
37 typedef std::map<team_id, BMessenger> AppMap;
39 AppMap fMap;
43 #endif // APP_MANAGER_H