2 * Copyright (C) 2015-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/UniqueEvent.h"
13 class CNotificationEvent
: public CUniqueEvent
16 CNotificationEvent(const CVariant
& label
, const CVariant
& description
, EventLevel level
= EventLevel::Information
)
17 : CUniqueEvent(label
, description
, level
)
19 CNotificationEvent(const CVariant
& label
, const CVariant
& description
, const std::string
& icon
, EventLevel level
= EventLevel::Information
)
20 : CUniqueEvent(label
, description
, icon
, level
)
22 CNotificationEvent(const CVariant
& label
, const CVariant
& description
, const std::string
& icon
, const CVariant
& details
, EventLevel level
= EventLevel::Information
)
23 : CUniqueEvent(label
, description
, icon
, details
, level
)
25 CNotificationEvent(const CVariant
& label
, const CVariant
& description
, const std::string
& icon
, const CVariant
& details
, const CVariant
& executionLabel
, EventLevel level
= EventLevel::Information
)
26 : CUniqueEvent(label
, description
, icon
, details
, executionLabel
, level
)
28 ~CNotificationEvent() override
= default;
30 const char* GetType() const override
{ return "NotificationEvent"; }
32 bool CanExecute() const override
{ return false; }
33 bool Execute() const override
{ return true; }