AntiMicroX
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. More...
 

Public Member Functions

 XMLConfigWriter (QObject *parent=nullptr)
 
 ~XMLConfigWriter ()
 
void setFileName (QString filename)
 Sets the filename of the to be written XML file. More...
 
bool hasError ()
 
const QString getErrorString ()
 
const QXmlStreamWriter * getXml ()
 
const QString & getFileName ()
 
const QFile * getConfigFile ()
 
const InputDevicegetJoystick ()
 

Private Attributes

QXmlStreamWriter * xml
 
QString fileName
 
QFile * configFile
 
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()

const QString & 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: