diff options
Diffstat (limited to 'xbmc/events/AddonEvent.h')
-rw-r--r-- | xbmc/events/AddonEvent.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/xbmc/events/AddonEvent.h b/xbmc/events/AddonEvent.h new file mode 100644 index 0000000..84154f1 --- /dev/null +++ b/xbmc/events/AddonEvent.h @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2015-2018 Team Kodi + * This file is part of Kodi - https://kodi.tv + * + * SPDX-License-Identifier: GPL-2.0-or-later + * See LICENSES/README.md for more information. + */ + +#pragma once + +#include "addons/IAddon.h" +#include "events/UniqueEvent.h" + +class CAddonEvent : public CUniqueEvent +{ +public: + CAddonEvent(const ADDON::AddonPtr& addon, const CVariant& description); + CAddonEvent(const ADDON::AddonPtr& addon, const CVariant& description, const CVariant& details); + CAddonEvent(const ADDON::AddonPtr& addon, + const CVariant& description, + const CVariant& details, + const CVariant& executionLabel); + CAddonEvent(const ADDON::AddonPtr& addon, EventLevel level, const CVariant& description); + CAddonEvent(const ADDON::AddonPtr& addon, + EventLevel level, + const CVariant& description, + const CVariant& details); + CAddonEvent(const ADDON::AddonPtr& addon, + EventLevel level, + const CVariant& description, + const CVariant& details, + const CVariant& executionLabel); + ~CAddonEvent() override = default; + + const char* GetType() const override { return "AddonEvent"; } + +protected: + ADDON::AddonPtr m_addon; +}; |