![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Collection of nodes that can be connected to this port. More...
#include <PortNode.h>
Public Member Functions | |
CPortNode ()=default | |
CPortNode (const CPortNode &other) | |
CPortNode (CPortNode &&other)=default | |
CPortNode & | operator= (const CPortNode &rhs) |
CPortNode & | operator= (CPortNode &&rhs) noexcept |
~CPortNode () | |
bool | IsConnected () const |
Connection state of the port. | |
void | SetConnected (bool bConnected) |
const CControllerNode & | GetActiveController () const |
The controller that is active on this port. | |
CControllerNode & | GetActiveController () |
void | SetActiveController (unsigned int controllerIndex) |
bool | SetActiveController (const std::string &controllerId) |
PORT_TYPE | GetPortType () const |
The port type. | |
void | SetPortType (PORT_TYPE type) |
const std::string & | GetPortID () const |
The hardware or controller port ID. | |
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. | |
ControllerNodeVec & | GetCompatibleControllers () |
void | SetCompatibleControllers (ControllerNodeVec controllers) |
bool | IsControllerAccepted (const std::string &controllerId) const |
Check to see if a controller is compatible with this tree. | |
bool | IsControllerAccepted (const std::string &portAddress, const std::string &controllerId) const |
Check to see if a controller is compatible with this tree. | |
void | GetInputPorts (std::vector< std::string > &inputPorts) const |
Get a list of ports that accept player input. | |
Collection of nodes that can be connected to this port.
|
default |
|
inline |
|
default |
|
default |
CControllerNode & CPortNode::GetActiveController | ( | ) |
const CControllerNode & CPortNode::GetActiveController | ( | ) | const |
The controller that is active on this port.
|
inline |
Address given to the node by the implementation.
|
inline |
|
inline |
Return the controller profiles that are compatible with this port.
void CPortNode::GetInputPorts | ( | std::vector< std::string > & | inputPorts | ) | const |
Get a list of ports that accept player input.
[out] | inputPorts | The list of input ports |
|
inline |
The hardware or controller port ID.
|
inline |
The port type.
|
inline |
Connection state of the port.
bool CPortNode::IsControllerAccepted | ( | const std::string & | controllerId | ) | const |
Check to see if a controller is compatible with this tree.
controllerId | The ID of the controller |
bool CPortNode::IsControllerAccepted | ( | const std::string & | portAddress, |
const std::string & | controllerId ) const |
Check to see if a controller is compatible with this tree.
portAddress | The port address |
controllerId | The ID of the controller |
|
inline |
If true, prevents a disconnection option from being shown for this port.
bool CPortNode::SetActiveController | ( | const std::string & | controllerId | ) |
void CPortNode::SetAddress | ( | std::string | address | ) |
void CPortNode::SetCompatibleControllers | ( | ControllerNodeVec | controllers | ) |
void CPortNode::SetPortID | ( | std::string | portId | ) |