![]() |
AntiMicroX
|
Main XML config reader class. More...
#include <xmlconfigreader.h>
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 QXmlStreamReader * | getXml () |
| QString const & | getFileName () |
| const QFile * | getConfigFile () |
| const InputDevice * | getJoystick () |
| QStringList const & | getDeviceTypes () |
Protected Member Functions | |
| void | initDeviceTypes () |
Private Attributes | |
| QXmlStreamReader * | xml |
| QString | fileName |
| QFile * | configFile |
| InputDevice * | m_joystick |
| QStringList | deviceTypes |
Main XML config reader class.
|
explicit |
Main XML config writer class.
| XMLConfigReader::~XMLConfigReader | ( | ) |
|
slot |
Read input device config from the current XML file into the InputDevice object.
| [in,out] | joystick | InputDevice into which the config is read |
| QStringList const & XMLConfigReader::getDeviceTypes | ( | ) |
| const InputDevice * XMLConfigReader::getJoystick | ( | ) |
| const QXmlStreamReader * XMLConfigReader::getXml | ( | ) |
| bool XMLConfigReader::hasError | ( | ) |
|
protected |
| bool XMLConfigReader::read | ( | ) |
Sets the filename of the to be read XML file.
| void XMLConfigReader::setJoystick | ( | InputDevice * | joystick | ) |
|
private |
|
private |
|
private |
|
private |
|
private |