| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 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 |
} |
| 47 |
} |