|
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 () | |
| void | Clear () |
| 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. | |
| void | GetKeyboardPorts (std::vector< std::string > &keyboardPorts) const |
| Get a list of ports that accept keyboard input. | |
| void | GetMousePorts (std::vector< std::string > &mousePorts) const |
| Get a list of ports that accept mouse input. | |
| bool | Serialize (tinyxml2::XMLElement &portElement) const |
| bool | Deserialize (const tinyxml2::XMLElement &portElement) |
| std::string | GetDigest (UTILITY::CDigest::Type digestType) const |
Collection of nodes that can be connected to this port.
|
default |
|
inline |
|
default |
|
default |
| void CPortNode::Clear | ( | ) |
| bool CPortNode::Deserialize | ( | const tinyxml2::XMLElement & | portElement | ) |
| 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.
| std::string CPortNode::GetDigest | ( | UTILITY::CDigest::Type | digestType | ) | const |
| 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 |
| void CPortNode::GetKeyboardPorts | ( | std::vector< std::string > & | keyboardPorts | ) | const |
Get a list of ports that accept keyboard input.
| [out] | keyboardPorts | The list of keyboard ports |
| void CPortNode::GetMousePorts | ( | std::vector< std::string > & | mousePorts | ) | const |
Get a list of ports that accept mouse input.
| [out] | mousePorts | The list of mouse 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::Serialize | ( | tinyxml2::XMLElement & | portElement | ) | const |
| bool CPortNode::SetActiveController | ( | const std::string & | controllerId | ) |
| void CPortNode::SetAddress | ( | std::string | address | ) |
| void CPortNode::SetCompatibleControllers | ( | ControllerNodeVec | controllers | ) |
| void CPortNode::SetPortID | ( | std::string | portId | ) |