2 * Copyright (C) 2012-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
11 #include "events/EventLog.h"
12 #include "utils/Job.h"
19 class CPVREventLogJob
: public CJob
22 CPVREventLogJob() = default;
24 CPVREventLogJob(bool bNotifyUser
,
26 const std::string
& label
,
27 const std::string
& msg
,
28 const std::string
& icon
);
30 ~CPVREventLogJob() override
= default;
31 const char* GetType() const override
{ return "pvr-eventlog-job"; }
33 void AddEvent(bool bNotifyUser
,
35 const std::string
& label
,
36 const std::string
& msg
,
37 const std::string
& icon
);
39 bool DoWork() override
;
45 EventLevel m_eLevel
{EventLevel::Information
};
50 Event(bool bNotifyUser
,
52 const std::string
& label
,
53 const std::string
& msg
,
54 const std::string
& icon
)
55 : m_bNotifyUser(bNotifyUser
), m_eLevel(elevel
), m_label(label
), m_msg(msg
), m_icon(icon
)
60 std::vector
<Event
> m_events
;