Merge pull request #26359 from garbear/fix-settings-crop
[xbmc.git] / xbmc / addons / gui / GUIHelpers.h
blob63310aed5b6bb16228e62fcc17323be103187f74
1 /*
2 * Copyright (C) 2005-2020 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.
7 */
9 #pragma once
11 #include <memory>
13 namespace ADDON
16 class IAddon;
18 namespace GUI
21 class CHelpers
23 public:
24 /*!
25 * @brief This shows an Yes/No dialog with information about the add-on if it is
26 * not in the normal status.
28 * This asks the user whether he really wants to use the add-on and informs with
29 * text why the other status is.
31 * @note The dialog is currently displayed for @ref AddonLifecycleState::BROKEN
32 * and @ref AddonLifecycleState::DEPRECATED.
34 * @param[in] addon Class of the add-on to be checked
35 * @return True if user activation is desired, false if not
37 static bool DialogAddonLifecycleUseAsk(const std::shared_ptr<const IAddon>& addon);
40 } /* namespace GUI */
41 } /* namespace ADDON */