AntiMicroX
Public Slots | Signals | Public Member Functions | Private Attributes
InputDeviceXml Class Reference

Generic InputDevice XML serialization/deserialization helper class Reads data from the supplied InputDevice object and writes it to XML or reads data from an QXmlStreamReader and writes it to the InputDevice object. More...

#include <inputdevicexml.h>

Inheritance diagram for InputDeviceXml:
[legend]
Collaboration diagram for InputDeviceXml:
[legend]

Public Slots

void readConfig (QXmlStreamReader *xml)
 Deserializes the given XML stream into an InputDevice object. More...
 
void writeConfig (QXmlStreamWriter *xml)
 Serializes an InputDevice object into the the given XML stream. More...
 

Signals

void readConfigSig (QXmlStreamReader *xml)
 

Public Member Functions

 InputDeviceXml (InputDevice *inputDevice, QObject *parent=nullptr)
 

Private Attributes

InputDevicem_inputDevice
 
QMutex m_mutex_read_config
 

Detailed Description

Generic InputDevice XML serialization/deserialization helper class Reads data from the supplied InputDevice object and writes it to XML or reads data from an QXmlStreamReader and writes it to the InputDevice object.

After serializing or deserializing the device data, it reads/writes all SetJoysticks.

Constructor & Destructor Documentation

◆ InputDeviceXml()

InputDeviceXml::InputDeviceXml ( InputDevice inputDevice,
QObject *  parent = nullptr 
)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ readConfig

void InputDeviceXml::readConfig ( QXmlStreamReader *  xml)
slot

Deserializes the given XML stream into an InputDevice object.

Parameters
[in]xmlThe XML stream to read from
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readConfigSig

void InputDeviceXml::readConfigSig ( QXmlStreamReader *  xml)
signal
Here is the caller graph for this function:

◆ writeConfig

void InputDeviceXml::writeConfig ( QXmlStreamWriter *  xml)
slot

Serializes an InputDevice object into the the given XML stream.

Parameters
[in,out]xmlThe XML stream to write to
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ m_inputDevice

InputDevice* InputDeviceXml::m_inputDevice
private

◆ m_mutex_read_config

QMutex InputDeviceXml::m_mutex_read_config
private

The documentation for this class was generated from the following files: