xbmc
PeripheralBusApplication.h
1 /*
2  * Copyright (C) 2015-2018 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 {
22 {
23 public:
24  explicit CPeripheralBusApplication(CPeripherals& manager);
25  ~CPeripheralBusApplication(void) override = default;
26 
27  // implementation of CPeripheralBus
28  void Initialise(void) override;
29  void GetDirectory(const std::string& strPath, CFileItemList& items) const override;
30 
34  std::string MakeLocation(unsigned int controllerIndex) const;
35 
36 protected:
37  // implementation of CPeripheralBus
38  bool PerformDeviceScan(PeripheralScanResults& results) override;
39 };
40 } // namespace PERIPHERALS
Definition: PeripheralBusApplication.h:21
Definition: PeripheralTypes.h:348
Definition: RetroPlayerInput.h:15
Represents a list of files.
Definition: FileItem.h:713
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:34
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:49