Debian Codegraph @

xbmc/events/EventLogManager.h

raw
1 /*
2 * Copyright (C) 2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include "threads/CriticalSection.h"
12
13 #include <map>
14 #include <memory>
15
16 class CEventLog;
17
18 class CEventLogManager
19 {
20 public:
21 CEventLog &GetEventLog(unsigned int profileId);
22
23 private:
24 std::map<unsigned int, std::unique_ptr<CEventLog>> m_eventLogs;
25 CCriticalSection m_eventMutex;
26 };