kodi
PeripheralBusApplication.h
1 /*
2  * Copyright (C) 2015-2024 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 "peripherals/bus/PeripheralBus.h"
12 
13 namespace PERIPHERALS
14 {
24 {
25 public:
26  explicit CPeripheralBusApplication(CPeripherals& manager);
27  ~CPeripheralBusApplication(void) override = default;
28 
29  // implementation of CPeripheralBus
30  void Initialise(void) override;
31  void GetDirectory(const std::string& strPath, CFileItemList& items) const override;
32 
36  std::string MakeLocation(unsigned int controllerIndex) const;
37 
38 protected:
39  // implementation of CPeripheralBus
40  bool PerformDeviceScan(PeripheralScanResults& results) override;
41 };
42 } // namespace PERIPHERALS
Definition: PeripheralBusApplication.h:23
Definition: PeripheralTypes.h:356
Definition: RetroPlayerInput.h:15
Represents a list of files.
Definition: FileItem.h:702
bool PerformDeviceScan(PeripheralScanResults &results) override
Scan for devices on this bus and add them to the results list. This will have to be implemented for e...
Definition: PeripheralBusApplication.cpp:32
void GetDirectory(const std::string &strPath, CFileItemList &items) const override
Get all fileitems for a path.
Definition: PeripheralBusApplication.cpp:75
Definition: PeripheralBus.h:36
std::string MakeLocation(unsigned int controllerIndex) const
Get the location for the specified controller index.
Definition: PeripheralBusApplication.cpp:80
void Initialise(void) override
Initialise this bus and start a polling thread if this bus needs polling.
Definition: PeripheralBusApplication.cpp:26
Definition: Peripherals.h:56