AntiMicroX
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Private Attributes
XMLConfigWriter Class Reference

#include <xmlconfigwriter.h>

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

Public Slots

void write (InputDeviceXml *joystickXml)
 Write input device config from the current object into XML file.
 

Public Member Functions

 XMLConfigWriter (QObject *parent=nullptr)
 
 ~XMLConfigWriter ()
 
void setFileName (QString filename)
 Sets the filename of the to be written XML file.
 
bool hasError ()
 
const QString getErrorString ()
 
const QXmlStreamWritergetXml ()
 
QString constgetFileName ()
 
const QFilegetConfigFile ()
 
const InputDevicegetJoystick ()
 

Private Attributes

QXmlStreamWriterxml
 
QString fileName
 
QFileconfigFile
 
InputDevicem_joystick
 
InputDeviceXmlm_joystickXml
 
bool writerError
 
QString writerErrorString
 

Constructor & Destructor Documentation

◆ XMLConfigWriter()

XMLConfigWriter::XMLConfigWriter ( QObject *  parent = nullptr)
explicit

◆ ~XMLConfigWriter()

XMLConfigWriter::~XMLConfigWriter ( )

Member Function Documentation

◆ getConfigFile()

const QFile * XMLConfigWriter::getConfigFile ( )

◆ getErrorString()

const QString XMLConfigWriter::getErrorString ( )
Here is the caller graph for this function:

◆ getFileName()

QString const & XMLConfigWriter::getFileName ( )

◆ getJoystick()

const InputDevice * XMLConfigWriter::getJoystick ( )

◆ getXml()

const QXmlStreamWriter * XMLConfigWriter::getXml ( )

◆ hasError()

bool XMLConfigWriter::hasError ( )
Here is the caller graph for this function:

◆ setFileName()

void XMLConfigWriter::setFileName ( QString  filename)

Sets the filename of the to be written XML file.

Here is the caller graph for this function:

◆ write

void XMLConfigWriter::write ( InputDeviceXml joystickXml)
slot

Write input device config from the current object into XML file.

Parameters
[in]joystickXmlInputDeviceXml which gets serialized
Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ configFile

QFile* XMLConfigWriter::configFile
private

◆ fileName

QString XMLConfigWriter::fileName
private

◆ m_joystick

InputDevice* XMLConfigWriter::m_joystick
private

◆ m_joystickXml

InputDeviceXml* XMLConfigWriter::m_joystickXml
private

◆ writerError

bool XMLConfigWriter::writerError
private

◆ writerErrorString

QString XMLConfigWriter::writerErrorString
private

◆ xml

QXmlStreamWriter* XMLConfigWriter::xml
private

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