Collection of nodes that can be connected to this port.
More...
#include <PortNode.h>
|
| CPortNode (const CPortNode &other) |
|
| CPortNode (CPortNode &&other)=default |
|
CPortNode & | operator= (const CPortNode &rhs) |
|
CPortNode & | operator= (CPortNode &&rhs) noexcept |
|
bool | IsConnected () const |
| Connection state of the port. More...
|
|
void | SetConnected (bool bConnected) |
|
const CControllerNode & | GetActiveController () const |
| The controller that is active on this port. More...
|
|
CControllerNode & | GetActiveController () |
|
void | SetActiveController (unsigned int controllerIndex) |
|
bool | SetActiveController (const std::string &controllerId) |
|
PORT_TYPE | GetPortType () const |
| The port type. More...
|
|
void | SetPortType (PORT_TYPE type) |
|
const std::string & | GetPortID () const |
| The hardware or controller port ID. More...
|
|
void | SetPortID (std::string portId) |
|
const std::string & | GetAddress () const |
| Address given to the node by the implementation.
|
|
void | SetAddress (std::string address) |
|
bool | IsForceConnected () const |
| If true, prevents a disconnection option from being shown for this port.
|
|
void | SetForceConnected (bool forceConnected) |
|
const ControllerNodeVec & | GetCompatibleControllers () const |
| Return the controller profiles that are compatible with this port. More...
|
|
ControllerNodeVec & | GetCompatibleControllers () |
|
void | SetCompatibleControllers (ControllerNodeVec controllers) |
|
bool | IsControllerAccepted (const std::string &controllerId) const |
| Check to see if a controller is compatible with this tree. More...
|
|
bool | IsControllerAccepted (const std::string &portAddress, const std::string &controllerId) const |
| Check to see if a controller is compatible with this tree. More...
|
|
void | GetInputPorts (std::vector< std::string > &inputPorts) const |
| Get a list of ports that accept player input. More...
|
|
Collection of nodes that can be connected to this port.
◆ GetActiveController()
The controller that is active on this port.
- Returns
- The active controller, or invalid if port is disconnected
◆ GetCompatibleControllers()
const ControllerNodeVec& KODI::GAME::CPortNode::GetCompatibleControllers |
( |
| ) |
const |
|
inline |
Return the controller profiles that are compatible with this port.
- Returns
- The controller profiles, or empty if this port doesn't support any controller profiles
◆ GetInputPorts()
void CPortNode::GetInputPorts |
( |
std::vector< std::string > & |
inputPorts | ) |
const |
Get a list of ports that accept player input.
- Parameters
-
[out] | inputPorts | The list of input ports |
◆ GetPortID()
const std::string& KODI::GAME::CPortNode::GetPortID |
( |
| ) |
const |
|
inline |
The hardware or controller port ID.
- Returns
- The port ID of the hardware port or controller port, or empty if the port is only identified by its type
◆ GetPortType()
PORT_TYPE KODI::GAME::CPortNode::GetPortType |
( |
| ) |
const |
|
inline |
The port type.
- Returns
- The port type, if known
◆ IsConnected()
bool KODI::GAME::CPortNode::IsConnected |
( |
| ) |
const |
|
inline |
Connection state of the port.
- Returns
- True if a controller is connected, false otherwise
◆ IsControllerAccepted() [1/2]
bool CPortNode::IsControllerAccepted |
( |
const std::string & |
controllerId | ) |
const |
Check to see if a controller is compatible with this tree.
- Parameters
-
controllerId | The ID of the controller |
- Returns
- True if the controller is compatible with the tree, false otherwise
◆ IsControllerAccepted() [2/2]
bool CPortNode::IsControllerAccepted |
( |
const std::string & |
portAddress, |
|
|
const std::string & |
controllerId |
|
) |
| const |
Check to see if a controller is compatible with this tree.
- Parameters
-
portAddress | The port address |
controllerId | The ID of the controller |
- Returns
- True if the controller is compatible with the tree, false otherwise
The documentation for this class was generated from the following files:
- xbmc/games/ports/types/PortNode.h
- xbmc/games/ports/types/PortNode.cpp