2 * Copyright (C) 2023 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 "video/dialogs/GUIDialogVideoManager.h"
18 enum class VideoAssetType
;
20 class CGUIDialogVideoManagerExtras
: public CGUIDialogVideoManager
23 CGUIDialogVideoManagerExtras();
24 ~CGUIDialogVideoManagerExtras() override
= default;
26 void SetVideoAsset(const std::shared_ptr
<CFileItem
>& item
) override
;
28 * \brief Open the Manage Extras dialog for a video
29 * \param item video to manage
30 * \return true: the video or another item was modified, a containing list should be refreshed.
33 static bool ManageVideoExtras(const std::shared_ptr
<CFileItem
>& item
);
34 static std::string
GenerateVideoExtra(const std::string
& extrasRoot
,
35 const std::string
& extrasPath
);
38 bool OnMessage(CGUIMessage
& message
) override
;
40 VideoAssetType
GetVideoAssetType() override
;
41 int GetHeadingId() override
{ return 40025; } // Extras:
43 void UpdateButtons() override
;
47 * \brief Add an extra to the video, using GUI user-provided information.
48 * \return true if an extra was added, false otherwise.
51 static std::string
GenerateVideoExtra(const std::string
& extrasPath
);