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

Main XML config reader class. More...

#include <xmlconfigreader.h>

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

Public Slots

void configJoystick (InputDevice *joystick)
 Read input device config from the current XML file into the InputDevice object.
 

Public Member Functions

 XMLConfigReader (QObject *parent=nullptr)
 Main XML config writer class.
 
 ~XMLConfigReader ()
 
void setJoystick (InputDevice *joystick)
 
void setFileName (QString filename)
 Sets the filename of the to be read XML file.
 
const QString getErrorString ()
 
bool hasError ()
 
bool read ()
 
const QXmlStreamReadergetXml ()
 
QString constgetFileName ()
 
const QFilegetConfigFile ()
 
const InputDevicegetJoystick ()
 
QStringList constgetDeviceTypes ()
 

Protected Member Functions

void initDeviceTypes ()
 

Private Attributes

QXmlStreamReaderxml
 
QString fileName
 
QFileconfigFile
 
InputDevicem_joystick
 
QStringList deviceTypes
 

Detailed Description

Main XML config reader class.

Constructor & Destructor Documentation

◆ XMLConfigReader()

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

Main XML config writer class.

Here is the call graph for this function:

◆ ~XMLConfigReader()

XMLConfigReader::~XMLConfigReader ( )

Member Function Documentation

◆ configJoystick

void XMLConfigReader::configJoystick ( InputDevice joystick)
slot

Read input device config from the current XML file into the InputDevice object.

Parameters
[in,out]joystickInputDevice into which the config is read
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getConfigFile()

const QFile * XMLConfigReader::getConfigFile ( )

◆ getDeviceTypes()

QStringList const & XMLConfigReader::getDeviceTypes ( )

◆ getErrorString()

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

◆ getFileName()

QString const & XMLConfigReader::getFileName ( )

◆ getJoystick()

const InputDevice * XMLConfigReader::getJoystick ( )

◆ getXml()

const QXmlStreamReader * XMLConfigReader::getXml ( )

◆ hasError()

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

◆ initDeviceTypes()

void XMLConfigReader::initDeviceTypes ( )
protected
Here is the caller graph for this function:

◆ read()

bool XMLConfigReader::read ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setFileName()

void XMLConfigReader::setFileName ( QString  filename)

Sets the filename of the to be read XML file.

Here is the caller graph for this function:

◆ setJoystick()

void XMLConfigReader::setJoystick ( InputDevice joystick)

Field Documentation

◆ configFile

QFile* XMLConfigReader::configFile
private

◆ deviceTypes

QStringList XMLConfigReader::deviceTypes
private

◆ fileName

QString XMLConfigReader::fileName
private

◆ m_joystick

InputDevice* XMLConfigReader::m_joystick
private

◆ xml

QXmlStreamReader* XMLConfigReader::xml
private

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