Debian Codegraph @

xbmc/video/guilib/VideoSelectActionProcessor.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2023 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include "video/guilib/VideoPlayActionProcessor.h"
12
13 #include <memory>
14
15 class CFileItem;
16
17 namespace VIDEO
18 {
19 namespace GUILIB
20 {
21 class CVideoSelectActionProcessorBase : public CVideoPlayActionProcessorBase
22 {
23 public:
24 explicit CVideoSelectActionProcessorBase(const std::shared_ptr<CFileItem>& item)
25 : CVideoPlayActionProcessorBase(item)
26 {
27 }
28
29 ~CVideoSelectActionProcessorBase() override = default;
30
31 static Action GetDefaultSelectAction();
32
33 protected:
34 Action GetDefaultAction() override;
35 bool Process(Action action) override;
36
37 virtual bool OnPlayPartSelected(unsigned int part) = 0;
38 virtual bool OnQueueSelected() = 0;
39 virtual bool OnInfoSelected() = 0;
40 virtual bool OnChooseSelected() = 0;
41
42 private:
43 CVideoSelectActionProcessorBase() = delete;
44 unsigned int ChooseStackItemPartNumber() const;
45 };
46 } // namespace GUILIB
47 } // namespace VIDEO