kodi
IActivePortList.h
1 /*
2  * Copyright (C) 2021-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 "games/GameTypes.h"
12 #include "games/controllers/ControllerTypes.h"
13 
14 namespace KODI
15 {
16 namespace GAME
17 {
18 
36 {
37 public:
38  virtual ~IActivePortList() = default;
39 
48  virtual bool Initialize(GameClientPtr gameClient) = 0;
49 
53  virtual void Deinitialize() = 0;
54 
58  virtual void Refresh() = 0;
59 };
60 
61 } // namespace GAME
62 } // namespace KODI
virtual bool Initialize(GameClientPtr gameClient)=0
Initialize resources.
A list populated by input ports on a game console.
Definition: IActivePortList.h:35
virtual void Deinitialize()=0
Deinitialize resources.
Definition: AudioDecoder.h:18
virtual void Refresh()=0
Refresh the contents of the list.
std::shared_ptr< CGameClient > GameClientPtr
Smart pointer to a game client (CGameClient)
Definition: GameTypes.h:29